all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: master d94ab49: Fix bootstrap after recent undo-redo change
       [not found] ` <20210930045927.6B4CA20D1E@vcs0.savannah.gnu.org>
@ 2021-09-30 11:04   ` Dmitry Gutov
  2021-09-30 11:33     ` Andreas Schwab
                       ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dmitry Gutov @ 2021-09-30 11:04 UTC (permalink / raw)
  To: emacs-devel, dickmao

On 30.09.2021 07:59, Lars Ingebrigtsen wrote:
> -(define-key global-map (kbd "C-?") 'undo-redo)
> +(define-key global-map "\C-?" 'undo-redo)

Sorry about the breakage.

But "\C-?" and (kbd "C-?") are not the same: the former evaluates to a 
string containing the DEL char.

The latter returns something like [67108927], and that's how we avoided 
trying to bind 'undo-redo' to Backspace. This binding only works in GUI 
Emacs, of course.



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

* Re: master d94ab49: Fix bootstrap after recent undo-redo change
  2021-09-30 11:04   ` master d94ab49: Fix bootstrap after recent undo-redo change Dmitry Gutov
@ 2021-09-30 11:33     ` Andreas Schwab
  2021-09-30 11:35     ` dick
  2021-09-30 11:41     ` Eli Zaretskii
  2 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2021-09-30 11:33 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: dickmao, emacs-devel

On Sep 30 2021, Dmitry Gutov wrote:

> On 30.09.2021 07:59, Lars Ingebrigtsen wrote:
>> -(define-key global-map (kbd "C-?") 'undo-redo)
>> +(define-key global-map "\C-?" 'undo-redo)
>
> Sorry about the breakage.
>
> But "\C-?" and (kbd "C-?") are not the same: the former evaluates to a
> string containing the DEL char.
>
> The latter returns something like [67108927],

You can use [(control ??)] for that.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



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

* Re: master d94ab49: Fix bootstrap after recent undo-redo change
  2021-09-30 11:04   ` master d94ab49: Fix bootstrap after recent undo-redo change Dmitry Gutov
  2021-09-30 11:33     ` Andreas Schwab
@ 2021-09-30 11:35     ` dick
  2021-09-30 11:41     ` Eli Zaretskii
  2 siblings, 0 replies; 5+ messages in thread
From: dick @ 2021-09-30 11:35 UTC (permalink / raw)
  Cc: emacs-devel

DG> But "\C-?" and (kbd "C-?") are not the same

My bad, I will always bungle the keymap incantation, just as with regex.

Someone with the necessary server-side privileges ought to spend a weekend
writing a pipeline that:

1. procmail detects patches
2. git am's them to tip of master
3. runs it in emba, and
4. mails the build result back to the patch author

Or, I dunno, we could make another "NonGNU" exception and requisition a
non-free software vendor to handle this for us.  Ruthless efficiency is
something capitalism excels at.



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

* Re: master d94ab49: Fix bootstrap after recent undo-redo change
  2021-09-30 11:04   ` master d94ab49: Fix bootstrap after recent undo-redo change Dmitry Gutov
  2021-09-30 11:33     ` Andreas Schwab
  2021-09-30 11:35     ` dick
@ 2021-09-30 11:41     ` Eli Zaretskii
  2021-09-30 17:06       ` Dmitry Gutov
  2 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2021-09-30 11:41 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: none, emacs-devel

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Thu, 30 Sep 2021 14:04:28 +0300
> 
> On 30.09.2021 07:59, Lars Ingebrigtsen wrote:
> > -(define-key global-map (kbd "C-?") 'undo-redo)
> > +(define-key global-map "\C-?" 'undo-redo)
> 
> Sorry about the breakage.
> 
> But "\C-?" and (kbd "C-?") are not the same: the former evaluates to a 
> string containing the DEL char.
> 
> The latter returns something like [67108927], and that's how we avoided 
> trying to bind 'undo-redo' to Backspace. This binding only works in GUI 
> Emacs, of course.

Right.  I tried to fix this, please test.



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

* Re: master d94ab49: Fix bootstrap after recent undo-redo change
  2021-09-30 11:41     ` Eli Zaretskii
@ 2021-09-30 17:06       ` Dmitry Gutov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Gutov @ 2021-09-30 17:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: none, emacs-devel

On 30.09.2021 14:41, Eli Zaretskii wrote:
>> From: Dmitry Gutov<dgutov@yandex.ru>
>> Date: Thu, 30 Sep 2021 14:04:28 +0300
>>
>> On 30.09.2021 07:59, Lars Ingebrigtsen wrote:
>>> -(define-key global-map (kbd "C-?") 'undo-redo)
>>> +(define-key global-map "\C-?" 'undo-redo)
>> Sorry about the breakage.
>>
>> But "\C-?" and (kbd "C-?") are not the same: the former evaluates to a
>> string containing the DEL char.
>>
>> The latter returns something like [67108927], and that's how we avoided
>> trying to bind 'undo-redo' to Backspace. This binding only works in GUI
>> Emacs, of course.
> Right.  I tried to fix this, please test.

Thanks! It's working now.



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

end of thread, other threads:[~2021-09-30 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20210930045926.19123.16914@vcs0.savannah.gnu.org>
     [not found] ` <20210930045927.6B4CA20D1E@vcs0.savannah.gnu.org>
2021-09-30 11:04   ` master d94ab49: Fix bootstrap after recent undo-redo change Dmitry Gutov
2021-09-30 11:33     ` Andreas Schwab
2021-09-30 11:35     ` dick
2021-09-30 11:41     ` Eli Zaretskii
2021-09-30 17:06       ` Dmitry Gutov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.