浏览代码

Remove final dot from a number of error messages

Downstream Emacs patch.
Carsten Dominik 15 年之前
父节点
当前提交
38f82c430b
共有 7 个文件被更改,包括 13 次插入13 次删除
  1. 2 2
      lisp/org-agenda.el
  2. 1 1
      lisp/org-attach.el
  3. 1 1
      lisp/org-docbook.el
  4. 1 1
      lisp/org-html.el
  5. 1 1
      lisp/org-id.el
  6. 2 2
      lisp/org-table.el
  7. 5 5
      lisp/org.el

+ 2 - 2
lisp/org-agenda.el

@@ -1627,7 +1627,7 @@ This undoes changes both in the agenda buffer and in the remote buffer
 that have been changed along."
 that have been changed along."
   (interactive)
   (interactive)
   (or org-agenda-allow-remote-undo
   (or org-agenda-allow-remote-undo
-      (error "Check the variable `org-agenda-allow-remote-undo' to activate remote undo."))
+      (error "Check the variable `org-agenda-allow-remote-undo' to activate remote undo"))
   (if (not (eq this-command last-command))
   (if (not (eq this-command last-command))
       (setq org-agenda-undo-has-started-in nil
       (setq org-agenda-undo-has-started-in nil
 	    org-agenda-pending-undo-list org-agenda-undo-list))
 	    org-agenda-pending-undo-list org-agenda-undo-list))
@@ -2525,7 +2525,7 @@ removed from the entry content.  Currently only `planning' is allowed here."
 (defun org-check-for-org-mode ()
 (defun org-check-for-org-mode ()
   "Make sure current buffer is in org-mode.  Error if not."
   "Make sure current buffer is in org-mode.  Error if not."
   (or (org-mode-p)
   (or (org-mode-p)
-      (error "Cannot execute org-mode agenda command on buffer in %s."
+      (error "Cannot execute org-mode agenda command on buffer in %s"
 	     major-mode)))
 	     major-mode)))
 
 
 (defun org-fit-agenda-window ()
 (defun org-fit-agenda-window ()

+ 1 - 1
lisp/org-attach.el

@@ -217,7 +217,7 @@ Throw an error if we cannot root the directory."
   (or (and dir (file-name-absolute-p dir))
   (or (and dir (file-name-absolute-p dir))
       (file-name-absolute-p org-attach-directory)
       (file-name-absolute-p org-attach-directory)
       (buffer-file-name (buffer-base-buffer))
       (buffer-file-name (buffer-base-buffer))
-      (error "Need absolute `org-attach-directory' to attach in buffers without filename.")))
+      (error "Need absolute `org-attach-directory' to attach in buffers without filename")))
 
 
 (defun org-attach-set-directory ()
 (defun org-attach-set-directory ()
   "Set the ATTACH_DIR property of the current entry.
   "Set the ATTACH_DIR property of the current entry.

+ 1 - 1
lisp/org-docbook.el

@@ -387,7 +387,7 @@ publishing directory."
 	(org-set-local 'buffer-file-name
 	(org-set-local 'buffer-file-name
 		       (with-current-buffer (buffer-base-buffer)
 		       (with-current-buffer (buffer-base-buffer)
 			 buffer-file-name))
 			 buffer-file-name))
-      (error "Need a file name to be able to export.")))
+      (error "Need a file name to be able to export")))
 
 
   (message "Exporting...")
   (message "Exporting...")
   (setq-default org-todo-line-regexp org-todo-line-regexp)
   (setq-default org-todo-line-regexp org-todo-line-regexp)

+ 1 - 1
lisp/org-html.el

@@ -544,7 +544,7 @@ PUB-DIR is set, use this as the publishing directory."
 	(org-set-local 'buffer-file-name
 	(org-set-local 'buffer-file-name
 		       (with-current-buffer (buffer-base-buffer)
 		       (with-current-buffer (buffer-base-buffer)
 			 buffer-file-name))
 			 buffer-file-name))
-      (error "Need a file name to be able to export.")))
+      (error "Need a file name to be able to export")))
 
 
   (message "Exporting...")
   (message "Exporting...")
   (setq-default org-todo-line-regexp org-todo-line-regexp)
   (setq-default org-todo-line-regexp org-todo-line-regexp)

+ 1 - 1
lisp/org-id.el

@@ -391,7 +391,7 @@ When FILES is given, scan these files instead.
 When CHECK is given, prepare detailed information about duplicate IDs."
 When CHECK is given, prepare detailed information about duplicate IDs."
   (interactive)
   (interactive)
   (if (not org-id-track-globally)
   (if (not org-id-track-globally)
-      (error "Please turn on `org-id-track-globally' if you want to track IDs.")
+      (error "Please turn on `org-id-track-globally' if you want to track IDs")
     (let ((files
     (let ((files
 	   (or files
 	   (or files
 	       (append
 	       (append

+ 2 - 2
lisp/org-table.el

@@ -2996,7 +2996,7 @@ With prefix ARG, apply the new formulas to the table."
       (call-interactively 'lisp-indent-line))
       (call-interactively 'lisp-indent-line))
      ((looking-at "[$&@0-9a-zA-Z]+ *= *[^ \t\n']") (goto-char pos))
      ((looking-at "[$&@0-9a-zA-Z]+ *= *[^ \t\n']") (goto-char pos))
      ((not (fboundp 'pp-buffer))
      ((not (fboundp 'pp-buffer))
-      (error "Cannot pretty-print.  Command `pp-buffer' is not available."))
+      (error "Cannot pretty-print.  Command `pp-buffer' is not available"))
      ((looking-at "[$&@0-9a-zA-Z]+ *= *'(")
      ((looking-at "[$&@0-9a-zA-Z]+ *= *'(")
       (goto-char (- (match-end 0) 2))
       (goto-char (- (match-end 0) 2))
       (setq beg (point))
       (setq beg (point))
@@ -3787,7 +3787,7 @@ this table."
 					       (org-table-end)))
 					       (org-table-end)))
 	  (ntbl 0))
 	  (ntbl 0))
       (unless dests (if maybe (throw 'exit nil)
       (unless dests (if maybe (throw 'exit nil)
-		      (error "Don't know how to transform this table.")))
+		      (error "Don't know how to transform this table")))
       (dolist (dest dests)
       (dolist (dest dests)
 	(let* ((name (plist-get dest :name))
 	(let* ((name (plist-get dest :name))
 	       (transform (plist-get dest :transform))
 	       (transform (plist-get dest :transform))

+ 5 - 5
lisp/org.el

@@ -5691,7 +5691,7 @@ frame is not changed."
       (switch-to-buffer ibuf))
       (switch-to-buffer ibuf))
      ((eq org-indirect-buffer-display 'other-window)
      ((eq org-indirect-buffer-display 'other-window)
       (pop-to-buffer ibuf))
       (pop-to-buffer ibuf))
-     (t (error "Invalid value.")))
+     (t (error "Invalid value")))
     (if (featurep 'xemacs)
     (if (featurep 'xemacs)
         (save-excursion (org-mode) (turn-on-font-lock)))
         (save-excursion (org-mode) (turn-on-font-lock)))
     (narrow-to-region beg end)
     (narrow-to-region beg end)
@@ -6104,7 +6104,7 @@ is signaled in this case."
   ;; First check if there are no even levels
   ;; First check if there are no even levels
   (when (re-search-forward "^\\(\\*\\*\\)+ " nil t)
   (when (re-search-forward "^\\(\\*\\*\\)+ " nil t)
     (org-show-context t)
     (org-show-context t)
-    (error "Not all levels are odd in this file.  Conversion not possible."))
+    (error "Not all levels are odd in this file.  Conversion not possible"))
   (when (yes-or-no-p "Are you sure you want to globally change levels to odd-even? ")
   (when (yes-or-no-p "Are you sure you want to globally change levels to odd-even? ")
     (let ((outline-regexp org-outline-regexp)
     (let ((outline-regexp org-outline-regexp)
 	  (outline-level 'org-outline-level)
 	  (outline-level 'org-outline-level)
@@ -14668,8 +14668,8 @@ See `org-ctrl-c-ctrl-c-hook' for more information.")
 (defun org-shiftselect-error ()
 (defun org-shiftselect-error ()
   "Throw an error because Shift-Cursor command was applied in wrong context."
   "Throw an error because Shift-Cursor command was applied in wrong context."
   (if (and (boundp 'shift-select-mode) shift-select-mode)
   (if (and (boundp 'shift-select-mode) shift-select-mode)
-      (error "To use shift-selection with Org-mode, customize `org-support-shift-select'.")
-    (error "This command works only in special context like headlines or timestamps.")))
+      (error "To use shift-selection with Org-mode, customize `org-support-shift-select'")
+    (error "This command works only in special context like headlines or timestamps")))
 
 
 (defun org-call-for-shift-select (cmd)
 (defun org-call-for-shift-select (cmd)
   (let ((this-command-keys-shift-translated t))
   (let ((this-command-keys-shift-translated t))
@@ -15109,7 +15109,7 @@ This command does many different things, depending on context:
 	(let ((org-inhibit-startup t)) (org-mode-restart))
 	(let ((org-inhibit-startup t)) (org-mode-restart))
 	(message "Local setup has been refreshed"))))
 	(message "Local setup has been refreshed"))))
      ((org-clock-update-time-maybe))
      ((org-clock-update-time-maybe))
-     (t (error "C-c C-c can do nothing useful at this location.")))))
+     (t (error "C-c C-c can do nothing useful at this location")))))
 
 
 (defun org-mode-restart ()
 (defun org-mode-restart ()
   "Restart Org-mode, to scan again for special lines.
   "Restart Org-mode, to scan again for special lines.