public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* The Emacs keybindings of "C-x [space]" described in a maybe still widely referred tutorial are outdated.
@ 2022-04-07  1:59 Hongyi Zhao
  2022-04-07 10:53 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Hongyi Zhao @ 2022-04-07  1:59 UTC (permalink / raw)
  To: gdb

I've noticed the "An Introduction to GDB in Emacs" here [1].

The above introduction says the following:

```
Set a breakpoint by going to the source line of the program you're
debugging, and typing:

C-x [space]

(That's the space bar.) GDB will tell you that you've just set a breakpoint.
```

But I noticed the following key binding by running `C-h k C-x [space]
RET` on my machine:

```
rectangle-mark-mode is an autoloaded, interactive and compiled
function defined in rect.el.gz.

Signature
(rectangle-mark-mode &optional ARG)

Documentation
Toggle the region as rectangular.

This is a minor mode.  If called interactively, toggle the
Rectangle-Mark mode mode.  If the prefix argument is positive,
enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle.  Enable the
mode if ARG is nil, omitted, or is a positive number.  Disable the
mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer,
evaluate rectangle-mark-mode.

The mode's hook is called both when the mode is enabled and when it is
disabled.

Activates the region if needed.  Only lasts until the region is deactivated.

View in manual

Key Bindings
ctl-x-map SPC
global-map C-x SPC
```

[1] https://courses.cs.washington.edu/courses/cse378/97au/help/gdb-emacs.html

Regards,
-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The Emacs keybindings of "C-x [space]" described in a maybe still widely referred tutorial are outdated.
  2022-04-07  1:59 The Emacs keybindings of "C-x [space]" described in a maybe still widely referred tutorial are outdated Hongyi Zhao
@ 2022-04-07 10:53 ` Eli Zaretskii
  2022-04-07 11:50   ` Hongyi Zhao
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2022-04-07 10:53 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: gdb

> Date: Thu, 7 Apr 2022 09:59:39 +0800
> From: Hongyi Zhao via Gdb <gdb@sourceware.org>
> 
> I've noticed the "An Introduction to GDB in Emacs" here [1].
> 
> The above introduction says the following:
> 
> ```
> Set a breakpoint by going to the source line of the program you're
> debugging, and typing:
> 
> C-x [space]
> 
> (That's the space bar.) GDB will tell you that you've just set a breakpoint.
> ```

It turns out that site has nothing to do with the GDB project.  So we
cannot fix that.  The site was last updated 25 years ago, so it is not
surprising its information is outdated.

(I'm sorry I didn't notice originally that you were talking about this
URL.  I thought you were quoting from the GDB manual.)

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The Emacs keybindings of "C-x [space]" described in a maybe still widely referred tutorial are outdated.
  2022-04-07 10:53 ` Eli Zaretskii
@ 2022-04-07 11:50   ` Hongyi Zhao
  0 siblings, 0 replies; 3+ messages in thread
From: Hongyi Zhao @ 2022-04-07 11:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb

On Thu, Apr 7, 2022 at 6:53 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > Date: Thu, 7 Apr 2022 09:59:39 +0800
> > From: Hongyi Zhao via Gdb <gdb@sourceware.org>
> >
> > I've noticed the "An Introduction to GDB in Emacs" here [1].
> >
> > The above introduction says the following:
> >
> > ```
> > Set a breakpoint by going to the source line of the program you're
> > debugging, and typing:
> >
> > C-x [space]
> >
> > (That's the space bar.) GDB will tell you that you've just set a breakpoint.
> > ```
>
> It turns out that site has nothing to do with the GDB project.  So we
> cannot fix that.  The site was last updated 25 years ago, so it is not
> surprising its information is outdated.
>
> (I'm sorry I didn't notice originally that you were talking about this
> URL.  I thought you were quoting from the GDB manual.)

No worry.

> Thanks.

You're welcome.

Yours Sincerely,
Hongyi

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-07 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07  1:59 The Emacs keybindings of "C-x [space]" described in a maybe still widely referred tutorial are outdated Hongyi Zhao
2022-04-07 10:53 ` Eli Zaretskii
2022-04-07 11:50   ` Hongyi Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).