From: Andreas Schwab Date: Sun, 22 Jun 2003 16:55:47 +0000 (+0000) Subject: (easy-mmode-define-navigation): Avoid X-Git-Tag: ttn-vms-21-2-B4~9585 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8fd9bef2583ac3ba5d305c4561a59feb20f87614;p=emacs.git (easy-mmode-define-navigation): Avoid variable as format argument for error. Don't call symbol-name on string. --- 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)." (let* ((base-name (symbol-name base)) (prev-sym (intern (concat base-name "-prev"))) (next-sym (intern (concat base-name "-next")))) - (unless name (setq name (symbol-name base-name))) + (unless name (setq name base-name)) `(progn (add-to-list 'debug-ignored-errors ,(concat "^No \\(previous\\|next\\) " (regexp-quote name))) @@ -444,7 +444,7 @@ ENDFUN should return the end position (with or without moving point)." (if (not (re-search-forward ,re nil t count)) (if (looking-at ,re) (goto-char (or ,(if endfun `(,endfun)) (point-max))) - (error ,(format "No next %s" name))) + (error "No next %s" ,name)) (goto-char (match-beginning 0)) (when (and (eq (current-buffer) (window-buffer (selected-window))) (interactive-p)) @@ -460,7 +460,7 @@ ENDFUN should return the end position (with or without moving point)." (unless count (setq count 1)) (if (< count 0) (,next-sym (- count)) (unless (re-search-backward ,re nil t count) - (error ,(format "No previous %s" name)))))))) + (error "No previous %s" ,name))))))) (provide 'easy-mmode)