aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-17 16:01:49 +0000
committerRichard M. Stallman1994-11-17 16:01:49 +0000
commit7c7daa220d9fdd567211537f383861996308249a (patch)
tree5e2e430ce04faea612d5f380e526111b73d4a215
parenta9f32bf3e1eb1aabb815c5a285f3c10f7b3acdac (diff)
downloademacs-7c7daa220d9fdd567211537f383861996308249a.tar.gz
emacs-7c7daa220d9fdd567211537f383861996308249a.zip
(set-keymap-parent): Fix bug in case of empty keymap.
(switch-to-other-buffer): Fix one-off error.
-rw-r--r--lisp/emacs-lisp/lucid.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lucid.el b/lisp/emacs-lisp/lucid.el
index 3e49309cb4a..c248348d954 100644
--- a/lisp/emacs-lisp/lucid.el
+++ b/lisp/emacs-lisp/lucid.el
@@ -46,7 +46,7 @@
46 tail)) 46 tail))
47 47
48(defun set-keymap-parent (keymap new-parent) 48(defun set-keymap-parent (keymap new-parent)
49 (let ((tail (cdr keymap))) 49 (let ((tail keymap))
50 (while (and tail (cdr tail) (not (eq (car (cdr tail)) 'keymap))) 50 (while (and tail (cdr tail) (not (eq (car (cdr tail)) 'keymap)))
51 (setq tail (cdr tail))) 51 (setq tail (cdr tail)))
52 (if tail 52 (if tail
@@ -118,7 +118,7 @@ bottom of the buffer stack."
118 (bury-buffer (current-buffer))) 118 (bury-buffer (current-buffer)))
119 (switch-to-buffer 119 (switch-to-buffer
120 (if (<= arg 1) (other-buffer (current-buffer)) 120 (if (<= arg 1) (other-buffer (current-buffer))
121 (nth (1+ arg) 121 (nth arg
122 (apply 'nconc 122 (apply 'nconc
123 (mapcar 123 (mapcar
124 (lambda (buf) 124 (lambda (buf)