emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature request: view part of file


From: Štěpán Němec
Subject: Re: feature request: view part of file
Date: Mon, 18 Jun 2012 22:34:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

On Thu, 14 Jun 2012 23:29:58 +0200
Sam Steingold wrote:

> 2. I have this:
>
>     (define-key map [C-+] 'vlf-change-batch-size)
>
> When I do C-+ (by pressing Ctrl, Shift, and the "+=" key to the left of
> backspace), I get "C-+ is undefined".

(kbd "C-+") ; => [67108907]

[?\C-+] is the way to put it more readably in vector notation (i.e., the
issue here is that [C-+] tries to bind a symbol `C-+' ("<C-+>" in `kbd'
speak), whereas you want the character, hence the ?\ prefix; it's
documented somewhere in the elisp manual I think).

-- 
Štěpán



reply via email to

[Prev in Thread] Current Thread [Next in Thread]