diff options
author | David Kastrup <dak@gnu.org> | 2015-07-25 18:54:42 +0200 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2015-08-04 14:34:15 +0200 |
commit | 5022e27dac4c13651941e425dbec5b3a2cecdae4 (patch) | |
tree | 696d748c8abc3aea1bfd5305a8e71dc985053496 /lisp/progmodes/cperl-mode.el | |
parent | 227e996946d4629fa8f6d665564a37668290c87f (diff) | |
download | emacs-5022e27dac4c13651941e425dbec5b3a2cecdae4.tar.gz emacs-5022e27dac4c13651941e425dbec5b3a2cecdae4.tar.bz2 emacs-5022e27dac4c13651941e425dbec5b3a2cecdae4.zip |
; Do not overwrite preexisting contents of unread-command-events
Diffstat (limited to 'lisp/progmodes/cperl-mode.el')
-rw-r--r-- | lisp/progmodes/cperl-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 7d2f3fcb007..826b3ee73a8 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -1042,11 +1042,11 @@ In regular expressions (including character classes): cperl-can-font-lock) (defun cperl-putback-char (c) ; Emacs 19 - (set 'unread-command-events (list c))) ; Avoid undefined warning + (push c unread-command-events)) ; Avoid undefined warning (if (featurep 'xemacs) (defun cperl-putback-char (c) ; XEmacs >= 19.12 - (setq unread-command-events (list (eval '(character-to-event c)))))) + (push (eval '(character-to-event c)) unread-command-events))) (or (fboundp 'uncomment-region) (defun uncomment-region (beg end) |