+2007-12-06 D. Goel <deego3@gmail.com>
+
+ * whitespace.el (whitespace-write-file-hook): Ditto.
+
+ * wdired.el (wdired-check-kill-buffer): Ditto.
+
+ * vc.el (vc-update): Ditto.
+
+ * vc-mcvs.el (vc-mcvs-checkin): Ditto.
+
+ * vc-cvs.el (vc-cvs-checkin): Ditto.
+
+ * man.el (Man-bgproc-sentinel): Ditto.
+ (Man-goto-see-also-section): Ditto.
+
+ * ibuffer.el (ibuffer-current-buffer): Ditto.
+
+ * dired.el (dired-move-to-end-of-filename): Ditto.
+
+ * bindings.el (complete-symbol): Ditto.
+
+ * allout.el (allout-write-file-hook-handler): Fix buggy call(s) to `error'.
2007-12-06 D. Goel <deego3@gmail.com>
(condition-case failure
(setq allout-after-save-decrypt
(allout-encrypt-decrypted except-mark))
- (error (progn
+ (error "%s" (progn
(message
"allout-write-file-hook-handler suppressing error %s"
failure)
(if (fboundp 'complete-tag)
(complete-tag)
;; Don't autoload etags if we have no tags table.
- (error (substitute-command-keys
+ (error "%s" (substitute-command-keys
"No tags table loaded; use \\[visit-tags-table] to load one")))))
;; Reduce total amount of space we must allocate during this function
(forward-char -1))))
(or no-error
(not (eq opoint (point)))
- (error (if hidden
+ (error "%s" (if hidden
(substitute-command-keys
"File line is hidden, type \\[dired-hide-subdir] to unhide")
"No file on this line")))
)
((ediff-key-press-event-p event)
(point))
- (t (error nil))))
+ (t (error "Error"))))
(defun ediff-event-buffer (event)
(cond ((ediff-mouse-event-p event)
)
((ediff-key-press-event-p event)
(current-buffer))
- (t (error nil))))
+ (t (error "Error"))))
(defun ediff-event-key (event-or-key)
(ediff-cond-compile-for-xemacs-or-emacs
(when must-be-live
(if (bufferp buf)
(unless (buffer-live-p buf)
- (error (substitute-command-keys "Buffer %s has been killed; use `\\[ibuffer-update]' to update") buf))
+ (error "%s" (substitute-command-keys "Buffer %s has been killed; use `\\[ibuffer-update]' to update") buf))
(error "No buffer on this line")))
buf))
(Man-notify-when-ready Man-buffer))
(if err-mess
- (error err-mess))
+ (error "%s" err-mess))
))))
\f
Actually the section moved to is described by `Man-see-also-regexp'."
(interactive)
(if (not (Man-find-section Man-see-also-regexp))
- (error (concat "No " Man-see-also-regexp
+ (error "%s" (concat "No " Man-see-also-regexp
" section found in the current manpage"))))
(defun Man-possibly-hyphenated-word ()
((re-search-forward "Up-to-date check failed" nil t)
(mapc (lambda (file) (vc-file-setprop file 'vc-state 'needs-merge))
files)
- (error (substitute-command-keys
+ (error "%s" (substitute-command-keys
(concat "Up-to-date check failed: "
"type \\[vc-next-action] to merge in changes"))))
(t
((re-search-forward "Up-to-date check failed" nil t)
(mapc (lambda (file) (vc-file-setprop file 'vc-state 'needs-merge))
files)
- (error (substitute-command-keys
+ (error "%s" (substitute-command-keys
(concat "Up-to-date check failed: "
"type \\[vc-next-action] to merge in changes"))))
(t
(vc-checkout file nil "")
(if (eq (vc-checkout-model file) 'locking)
(if (eq (vc-state file) 'edited)
- (error
+ (error "%s"
(substitute-command-keys
"File is locked--type \\[vc-revert] to discard changes"))
- (error
+ (error "%s"
(substitute-command-keys
"Unexpected file state (%s)--type \\[vc-next-action] to correct")
(vc-state file)))
(if (and
(buffer-modified-p)
(not (y-or-n-p "Buffer changed. Discard changes and kill buffer? ")))
- (error nil)))
+ (error "Error.")))
(defun wdired-next-line (arg)
"Move down lines then position at filename or the current column.
(whitespace-cleanup-internal)
(setq werr (whitespace-buffer)))
(if (and whitespace-abort-on-error werr)
- (error (concat "Abort write due to whitespaces in "
- buffer-file-name))))
+ (error "Abort write due to whitespaces in %s"
+ buffer-file-name)))
nil)
(defun whitespace-unload-function ()