diff options
author | Miles Bader <miles@gnu.org> | 2007-12-16 05:08:49 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2007-12-16 05:08:49 +0000 |
commit | d29ee6b1a110cf5d170a10317a96acbbd4a1c68b (patch) | |
tree | 58f3c40766d8d56de7d2b026c29e198764d910aa /lisp/textmodes | |
parent | 7e095e45a3f790e4608c88db9648d248e24901dc (diff) | |
parent | 47854a55680b5809811caf72f66ecbe8289c2855 (diff) | |
download | emacs-d29ee6b1a110cf5d170a10317a96acbbd4a1c68b.tar.gz emacs-d29ee6b1a110cf5d170a10317a96acbbd4a1c68b.tar.bz2 emacs-d29ee6b1a110cf5d170a10317a96acbbd4a1c68b.zip |
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-300
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/artist.el | 4 | ||||
-rw-r--r-- | lisp/textmodes/org-publish.el | 4 | ||||
-rw-r--r-- | lisp/textmodes/org.el | 29 | ||||
-rw-r--r-- | lisp/textmodes/reftex-index.el | 2 | ||||
-rw-r--r-- | lisp/textmodes/reftex-toc.el | 6 | ||||
-rw-r--r-- | lisp/textmodes/reftex.el | 8 | ||||
-rw-r--r-- | lisp/textmodes/texinfmt.el | 5 |
7 files changed, 29 insertions, 29 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index f0442904185..63a9e8f615a 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el @@ -1151,14 +1151,14 @@ PREV-OP-ARG are used when invoked recursively during the build-up." (interactive) (let ((next-op (cdr (cdr (assoc artist-curr-go artist-prev-next-op-alist))))) (artist-select-operation next-op) - (message next-op))) + (message "%s" next-op))) (defun artist-select-prev-op-in-list () "Cyclically select previous drawing mode operation." (interactive) (let ((prev-op (car (cdr (assoc artist-curr-go artist-prev-next-op-alist))))) (artist-select-operation prev-op) - (message prev-op))) + (message "%s" prev-op))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/lisp/textmodes/org-publish.el b/lisp/textmodes/org-publish.el index e98afaf4a6b..807a844c425 100644 --- a/lisp/textmodes/org-publish.el +++ b/lisp/textmodes/org-publish.el @@ -481,7 +481,7 @@ FILENAME is the filename of the file to be published." (plist (org-publish-get-plist-from-filename filename)) (publishing-function (or (plist-get plist :publishing-function) 'org-publish-org-to-html))) (if (not project-name) - (error (format "File %s is not part of any known project." filename))) + (error "File %s is not part of any known project." filename)) (when (org-publish-needed-p filename) (if (listp publishing-function) ;; allow chain of publishing functions @@ -575,7 +575,7 @@ With prefix argument, force publishing all files in project." (let* ((project-name (org-publish-get-project-from-filename (buffer-file-name))) (org-publish-use-timestamps-flag (if force nil t))) (if (not project-name) - (error (format "File %s is not part of any known project." (buffer-file-name)))) + (error "File %s is not part of any known project." (buffer-file-name))) (org-publish project-name)))) diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index 0535f679c40..ebcf060be65 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el @@ -6076,7 +6076,7 @@ If you want to insert the tree as is, just use \\[yank]. If optional TREE is given, use this text instead of the kill ring." (interactive "P") (unless (org-kill-is-subtree-p tree) - (error + (error "%s" (substitute-command-keys "The kill is not a (set of) tree(s) - please use \\[yank] to yank anyway"))) (let* ((txt (or tree (and kill-ring (current-kill 0)))) @@ -7487,7 +7487,7 @@ When TAG is non-nil, don't move trees, but mark them with the ARCHIVE tag." (org-hide-archived-subtrees beg end) (goto-char beg) (if (looking-at (concat ".*:" org-archive-tag ":")) - (message (substitute-command-keys + (message "%s" (substitute-command-keys "Subtree is archived and stays closed. Use \\[org-force-cycle-archived] to cycle it anyway."))))))) (defun org-force-cycle-archived () @@ -9366,7 +9366,8 @@ of the new mark." (goto-line l1))) (if (not (= epos (point-at-eol))) (org-table-align)) (goto-line l) - (and (interactive-p) (message (cdr (assoc new org-recalc-marks)))))) + (and (interactive-p) + (message "%s" (or (cdr (assoc new org-recalc-marks)) ""))))) (defun org-table-maybe-recalculate-line () "Recompute the current line if marked for it, and if we haven't just done it." @@ -12347,7 +12348,7 @@ to read." (move-marker (car org-mark-ring) (or pos (point)) (or buffer (current-buffer))) - (message + (message "%s" (substitute-command-keys "Position saved to mark ring, go back with \\[org-mark-ring-goto]."))) @@ -12429,7 +12430,7 @@ onto the ring." (if (match-string 2 name) ; If there isn't a node, choose "Top" (Info-find-node (match-string 1 name) (match-string 2 name)) (Info-find-node (match-string 1 name) "Top"))) - (message (concat "Could not open: " name)))) + (message "Could not open: %s" name))) (defun org-follow-gnus-link (&optional group article) "Follow a Gnus link to GROUP and ARTICLE." @@ -12553,7 +12554,7 @@ sequences, it will now work." (save-excursion (mh-index-previous-folder) (re-search-forward "^\\(+.*\\)$" nil t) - (message (match-string 1)))) + (message "%s" (match-string 1)))) (defun org-mhe-get-message-folder () "Return the name of the current message folder. Be careful if you @@ -13759,7 +13760,7 @@ This function should be run in the `org-after-todo-state-change-hook'." (org-timestamp-change n (cdr (assoc what whata)))) (setq msg (concat msg type org-last-changed-timestamp " "))) (setq org-log-post-message msg) - (message msg)))) + (message "%s" msg)))) (defun org-show-todo-tree (arg) "Make a compact tree which shows all headlines marked with TODO. @@ -13978,7 +13979,7 @@ The auto-repeater uses this.") (with-current-buffer (marker-buffer org-log-note-return-to) (goto-char org-log-note-return-to)) (move-marker org-log-note-return-to nil) - (and org-log-post-message (message org-log-post-message))) + (and org-log-post-message (message "%s" org-log-post-message))) ;; FIXME: what else would be useful? ;; - priority @@ -15216,10 +15217,10 @@ in the current file." (let* ((prop (completing-read "Property: " (org-entry-properties nil 'standard)))) (list prop))) - (message (concat "Property " property - (if (org-entry-delete nil property) - " deleted" - " was not present in the entry")))) + (message "Property %s %s" property + (if (org-entry-delete nil property) + "deleted" + "was not present in the entry"))) (defun org-delete-property-globally (property) "Remove PROPERTY globally, from all entries." @@ -16863,7 +16864,7 @@ days in order to avoid rounding problems." d (floor (+ (/ diff ds) 0.5)) h 0 m 0)) (if (not to-buffer) - (message (org-make-tdiff-string y d h m)) + (message "%s" (org-make-tdiff-string y d h m)) (when (org-at-table-p) (goto-char match-end) (setq align t) @@ -18806,7 +18807,7 @@ the buffer and restores the previous window configuration." (org-install-agenda-files-menu) (message "New agenda file list installed")) nil 'local) - (message (substitute-command-keys + (message "%s" (substitute-command-keys "Edit list and finish with \\[save-buffer]"))) (customize-variable 'org-agenda-files))) diff --git a/lisp/textmodes/reftex-index.el b/lisp/textmodes/reftex-index.el index 73bcf6d6a74..5b2d62c56f6 100644 --- a/lisp/textmodes/reftex-index.el +++ b/lisp/textmodes/reftex-index.el @@ -367,7 +367,7 @@ _ ^ Add/Remove parent key (to make this item a subitem). (goto-char (or pos (point-min))) (or (looking-at re) (reftex-nearest-match re (length literal)))) - (t (message reftex-no-follow-message) nil)))) + (t (message "%s" reftex-no-follow-message) nil)))) (when match (goto-char (match-beginning 0)) (recenter '(4)) diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el index d1d979b3fc0..e3d8b3e4793 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el @@ -626,7 +626,7 @@ point." (message "%d section%s %smoted" nsec (if (= 1 nsec) "" "s") pro-or-de) nil)) - (if msg (progn (ding) (message msg))))) + (if msg (progn (ding) (message "%s" msg))))) (defun reftex-toc-restore-region (point-line &optional mark-line) @@ -833,7 +833,7 @@ label prefix determines the wording of a reference." (switch-to-buffer-other-window (reftex-get-file-buffer-force file nil)) (goto-char (if (eq where 'bof) (point-min) (point-max)))) - (message reftex-no-follow-message) nil)))) + (message "%s" reftex-no-follow-message) nil)))) ((stringp (car toc)) ;; a label @@ -900,7 +900,7 @@ label prefix determines the wording of a reference." (reftex-make-regexp-allow-for-ctrl-m literal) len) (reftex-nearest-match (reftex-make-desperate-section-regexp literal) len))))) - (t (message reftex-no-follow-message) nil)))) + (t (message "%s" reftex-no-follow-message) nil)))) (when match (goto-char (match-beginning 0)) (if (not (= (point) (point-max))) (recenter 1)) diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index 5383d88c386..d6ec29434d1 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el @@ -1978,7 +1978,7 @@ Works on both Emacs and XEmacs." (let ((char ?\?)) (save-window-excursion (catch 'exit - (message (concat prompt " (?=Help)")) + (message "%s (?=Help)" prompt) (when (or (sit-for (or delay-time 0)) (= ?\? (setq char (read-char-exclusive)))) (reftex-kill-buffer "*RefTeX Select*") @@ -1994,17 +1994,17 @@ Works on both Emacs and XEmacs." (pos-visible-in-window-p (point-max))) nil (setq prompt (concat prompt (if scroll " (SPC/DEL=Scroll)" "")))) - (message prompt) + (message "%s" prompt) (and (equal char ?\?) (setq char (read-char-exclusive))) (while t (cond ((equal char ?\C-g) (keyboard-quit)) ((equal char ?\?)) ((and scroll (equal char ?\ )) (condition-case nil (scroll-up) (error nil)) - (message prompt)) + (message "%s" prompt)) ((and scroll (equal char ?\C-? )) (condition-case nil (scroll-down) (error nil)) - (message prompt)) + (message "%s" prompt)) (t (message "") (throw 'exit char))) (setq char (read-char-exclusive))))))) diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 55e7134f87e..812fcca06d6 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el @@ -2061,9 +2061,8 @@ commands that are defined in texinfo.tex for printed output. (apply '+ texinfo-multitable-width-list)))) (if (> desired-columns fill-column) (error - (format - "Multi-column table width, %d chars, is greater than page width, %d chars." - desired-columns fill-column)))) + "Multi-column table width, %d chars, is greater than page width, %d chars." + desired-columns fill-column))) texinfo-multitable-width-list)) ;; @item A1 @tab A2 @tab A3 |