Hi, Jerry.
On Sat, Mar 02, 2013 at 08:50:21PM -0700, Jerry James wrote:
I just tried updating to the latest set of packages. Now
c-electric-pound in cc-mode is broken. If I hit '#', I get:
(wrong-type-argument char-or-string-p #<keypress-event #
0xb7a>)
insert(#<keypress-event # 0xb7a>)
(let ((pos ...) (bolp ...)) (beginning-of-line)
(delete-horizontal-space) (insert last-command-event) (and (not bolp)
(goto-char ...)))
(if (c-save-buffer-state nil (or arg ... ... ... ... ...))
(self-insert-command (prefix-numeric-value arg)) (let (... ...)
(beginning-of-line) (delete-horizontal-space) (insert
last-command-event) (and ... ...)))
c-electric-pound(nil)
call-interactively(c-electric-pound)
I think the
(insert last-command-event)
in that function should really be:
(insert (event-key last-command-event))
Yes. `last-command-event' also exists in GNU Emacs, but with a different
meaning, hence the confusion.
Question: since these "last-command-event"s are always printable
characters, would it be OK just to use `last-command-char' here?
Furthermore, there are many comparisons of last-command-event
against
a character in cc-cmds.el and cc-align.el. Those will always be
false, as they are objects of different types. I think that
last-command-event needs to change to (event-key last-command-event)
universally in those two files.
I'll fix them all at the same time.
Regards,
--
Jerry James
http://www.jamezone.org/
--
Alan Mackenzie (Nuremberg, Germany).
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta