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: Stephen J. Turnbull
Subject: Re: feature request: view part of file
Date: Fri, 20 Jul 2012 04:38:07 +0900

Samuel Bronson writes:
 > On Jun 18, 2012, at 4:34 PM, Štěpán Němec wrote:
 > 
 > > (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).
 > 
 > You know, this would be easier with a character type...

Not really.  XEmacs *has* a character type, but that doesn't help us
with this kind of thing, because this is about syntax for describing
keystrokes in Lisp, not about managing characters.  And it's not just
backward compatibility.

Our preferred approach is to use the array of chords of keysyms.  (Eg
the above would be expressed `[(control +)]'.



reply via email to

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