summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-help.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-01-31 19:51:08 -0800
committerGlenn Morris <rgm@gnu.org>2013-01-31 19:51:08 -0800
commit86e100a6936882a982648c3fe2e09d82f5a94e55 (patch)
treeeb775b25f7549fce94fe38348cb9c45446571c07 /lisp/calc/calc-help.el
parent1e77b18e33526319ee8bb9f1ebb28860ad20a4c2 (diff)
downloademacs-86e100a6936882a982648c3fe2e09d82f5a94e55.tar.gz
Merge calc news from lisp/calc/README into etc/NEWS files
* doc/misc/calc.texi (Help Commands): Update calc-view-news description. * lisp/calc/calc-help.el (calc-view-news): Use view-emacs-news. * lisp/calc/README: Move news entries from here... * etc/NEWS, etc/NEWS.23: ... to here
Diffstat (limited to 'lisp/calc/calc-help.el')
-rw-r--r--lisp/calc/calc-help.el20
1 files changed, 3 insertions, 17 deletions
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el
index 512faefa78f..2b7b56c3f89 100644
--- a/lisp/calc/calc-help.el
+++ b/lisp/calc/calc-help.el
@@ -386,23 +386,9 @@ C-w Describe how there is no warranty for Calc."
(defun calc-view-news ()
(interactive)
- (let ((path load-path))
- (while (and path
- (not (file-exists-p (expand-file-name "calc.el" (car path)))))
- (setq path (cdr path)))
- (or (and path
- (file-exists-p (expand-file-name "README" (car path))))
- (error "Can't locate Calc sources"))
- (calc-quit)
- (switch-to-buffer "*Help*")
- (let ((inhibit-read-only t))
- (erase-buffer)
- (insert-file-contents (expand-file-name "README" (car path)))
- (search-forward "Summary of changes")
- (forward-line -1)
- (delete-region (point-min) (point))
- (goto-char (point-min)))
- (help-mode)))
+ (calc-quit)
+ (view-emacs-news)
+ (re-search-forward "^\*+ .*\\<Calc\\>" nil t))
(defvar calc-help-long-names '((?b . "binary/business")
(?g . "graphics")