[erlang-questions] Weblog post on Emacs/erlang-mode/Distel

Bill Clementson <>
Wed May 30 19:04:35 CEST 2007


Bill Clementson <> writes:

> Erik Stenman <> writes:
>> By the way, for some reason I can't get
>>   (global-set-key "\C-." 'next-error)
>>   (global-set-key "\C-," 'previous-error)
>> to work in all emacs versions* I'm using, so I have to resort to:
>>   (global-set-key (quote [67108910])  'next-error)     ;; C-.
>>   (global-set-key (quote [67108908]) 'previous-error)  ;; C-,
>>
>> Any Emacs gurus out there with any ideas why this is so?
>>
>> * I'm at my game(windows) computer right now and don't have access to
>> the emacs with problem but I think it was emacs 21.4. In emacs 22.x
>> "\C-." works fine.
>
> Oops, sorry about that - try the following instead:
> (global-set-key [(control .)] 'next-error)
> (global-set-key [(control ,)] 'previous-error)

or the following:
(global-set-key (kbd "C-.") 'next-error)
(global-set-key (kbd "C-,") 'previous-error)

Since I normally use CVS Emacs, I always forget which things didn't
work in earlier versions. From memory, I think the "kbd"-style
keybindings work in earlier versions of emacs; however, I'm not
positive.

--
Bill Clementson




More information about the erlang-questions mailing list