aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2003-06-22 16:55:47 +0000
committerAndreas Schwab2003-06-22 16:55:47 +0000
commit8fd9bef2583ac3ba5d305c4561a59feb20f87614 (patch)
treea7ff74cc7e5bf79e6ce266ec4dcf381b9362a9d2
parentc009ca06edf6f57b34f6e9ec0c9f7c0e47c1c7eb (diff)
downloademacs-8fd9bef2583ac3ba5d305c4561a59feb20f87614.tar.gz
emacs-8fd9bef2583ac3ba5d305c4561a59feb20f87614.zip
(easy-mmode-define-navigation): Avoid
variable as format argument for error. Don't call symbol-name on string.
-rw-r--r--lisp/emacs-lisp/easy-mmode.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 6b9c593915f..9175f692aae 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -431,7 +431,7 @@ ENDFUN should return the end position (with or without moving point)."
431 (let* ((base-name (symbol-name base)) 431 (let* ((base-name (symbol-name base))
432 (prev-sym (intern (concat base-name "-prev"))) 432 (prev-sym (intern (concat base-name "-prev")))
433 (next-sym (intern (concat base-name "-next")))) 433 (next-sym (intern (concat base-name "-next"))))
434 (unless name (setq name (symbol-name base-name))) 434 (unless name (setq name base-name))
435 `(progn 435 `(progn
436 (add-to-list 'debug-ignored-errors 436 (add-to-list 'debug-ignored-errors
437 ,(concat "^No \\(previous\\|next\\) " (regexp-quote name))) 437 ,(concat "^No \\(previous\\|next\\) " (regexp-quote name)))
@@ -444,7 +444,7 @@ ENDFUN should return the end position (with or without moving point)."
444 (if (not (re-search-forward ,re nil t count)) 444 (if (not (re-search-forward ,re nil t count))
445 (if (looking-at ,re) 445 (if (looking-at ,re)
446 (goto-char (or ,(if endfun `(,endfun)) (point-max))) 446 (goto-char (or ,(if endfun `(,endfun)) (point-max)))
447 (error ,(format "No next %s" name))) 447 (error "No next %s" ,name))
448 (goto-char (match-beginning 0)) 448 (goto-char (match-beginning 0))
449 (when (and (eq (current-buffer) (window-buffer (selected-window))) 449 (when (and (eq (current-buffer) (window-buffer (selected-window)))
450 (interactive-p)) 450 (interactive-p))
@@ -460,7 +460,7 @@ ENDFUN should return the end position (with or without moving point)."
460 (unless count (setq count 1)) 460 (unless count (setq count 1))
461 (if (< count 0) (,next-sym (- count)) 461 (if (< count 0) (,next-sym (- count))
462 (unless (re-search-backward ,re nil t count) 462 (unless (re-search-backward ,re nil t count)
463 (error ,(format "No previous %s" name)))))))) 463 (error "No previous %s" ,name)))))))
464 464
465(provide 'easy-mmode) 465(provide 'easy-mmode)
466 466