]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix XEmacs-specific clause in definition of pascal-outline-map.
authorNoah Friedman <friedman@splode.com>
Sat, 29 Feb 2020 22:50:51 +0000 (14:50 -0800)
committerNoah Friedman <friedman@splode.com>
Sat, 29 Feb 2020 22:50:51 +0000 (14:50 -0800)
* lisp/progmodes/pascal.el (pascal-outline-map): Call set-keymap-name
on map, not pascal-outline-map, as the latter is not yet defined.

lisp/progmodes/pascal.el

index 5036b793c55db6ebf1680071af8863d243e48c43..536a16dbb3c34fd228c25aac7e4cca3261631c8d 100644 (file)
@@ -1392,7 +1392,7 @@ The default is a name found in the buffer around point."
 (defvar pascal-outline-map
   (let ((map (make-sparse-keymap)))
     (if (fboundp 'set-keymap-name)
-        (set-keymap-name pascal-outline-map 'pascal-outline-map))
+        (set-keymap-name map 'pascal-outline-map))
     (define-key map "\M-\C-a"  'pascal-outline-prev-defun)
     (define-key map "\M-\C-e"  'pascal-outline-next-defun)
     (define-key map "\C-c\C-d" 'pascal-outline-goto-defun)