From: Glenn Morris Date: Fri, 21 Aug 2009 07:24:26 +0000 (+0000) Subject: Use help-print-return-message rather than the now obsolete alias. X-Git-Tag: emacs-pretest-23.1.90~1766 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d5d105e863bbbcaad1cdb89b4cd4e74fd5815fe6;p=emacs.git Use help-print-return-message rather than the now obsolete alias. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fbab5bc818c..5cd5ec74fe8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,22 @@ 2009-08-21 Glenn Morris + * apropos.el (apropos-command): + * ehelp.el (electric-helpify): + * printing.el (pr-show-setup): + * strokes.el (strokes-help): + * tutorial.el (tutorial--describe-nonstandard-key) + (tutorial--detailed-help): + * woman.el (woman-mini-help, woman-display-extended-fonts): + * calc/calc-help.el (calc-describe-key): + * emulation/edt.el (edt-electric-helpify): + * international/mule-diag.el (mule-diag): + * play/yow.el (apropos-zippy): + * progmodes/python.el (python-describe-symbol): + * progmodes/vhdl-mode.el (vhdl-doc-variable, vhdl-doc-mode): + * textmodes/table.el (*table--cell-describe-mode) + (*table--cell-describe-bindings): + Use help-print-return-message rather than the now obsolete alias. + * calendar/cal-move.el (calendar-cursor-to-nearest-date) (calendar-cursor-to-visible-date): Use forward-line, not goto-line. diff --git a/lisp/apropos.el b/lisp/apropos.el index 8a2f5d789a8..ca9be2f36f8 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el @@ -466,7 +466,7 @@ while a list of strings is used as a word list." (apropos-parse-pattern pattern) (let ((message (let ((standard-output (get-buffer-create "*Apropos*"))) - (print-help-return-message 'identity)))) + (help-print-return-message 'identity)))) (or do-all (setq do-all apropos-do-all)) (setq apropos-accumulator (apropos-internal apropos-regexp diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el index 19a438cda16..ced9fbad220 100644 --- a/lisp/calc/calc-help.el +++ b/lisp/calc/calc-help.el @@ -1,7 +1,7 @@ ;;; calc-help.el --- help display functions for Calc, -;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, 2005, +;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. ;; Author: David Gillespie ;; Maintainer: Jay Belanger @@ -283,7 +283,7 @@ C-w Describe how there is no warranty for Calc." (beginning-of-line) (princ (buffer-substring pt (point)))) (setq notes (cdr notes))) - (print-help-return-message))) + (help-print-return-message))) (calc-unread-command (cdr key))))) (if (or (null defn) (integerp defn)) (message "%s is undefined" desc) @@ -466,7 +466,7 @@ C-w Describe how there is no warranty for Calc." calc-shift-Y-prefix-help calc-shift-Z-prefix-help calc-z-prefix-help))) - (print-help-return-message))) + (help-print-return-message))) (defun calc-h-prefix-help () (interactive) diff --git a/lisp/ehelp.el b/lisp/ehelp.el index 3d8953f1590..d8e7ea57deb 100644 --- a/lisp/ehelp.el +++ b/lisp/ehelp.el @@ -292,7 +292,7 @@ will select it.)" (let ((name (or name "*Help*"))) (if (save-window-excursion ;; kludge-o-rama - (let* ((p (symbol-function 'print-help-return-message)) + (let* ((p (symbol-function 'help-print-return-message)) (b (get-buffer name)) (m (buffer-modified-p b))) (and b (not (get-buffer-window b)) @@ -325,14 +325,14 @@ will select it.)" (save-excursion (set-buffer b) (set-buffer-modified-p t))) - (fset 'print-help-return-message 'ignore) + (fset 'help-print-return-message 'ignore) (call-interactively fun) (and (get-buffer name) (get-buffer-window (get-buffer name)) (or (not b) (not (eq b (get-buffer name))) (not (buffer-modified-p b))))) - (fset 'print-help-return-message p) + (fset 'help-print-return-message p) (and b (buffer-name b) (save-excursion (set-buffer b) diff --git a/lisp/emerge.el b/lisp/emerge.el index 48aa07655cf..447c5d8de99 100644 --- a/lisp/emerge.el +++ b/lisp/emerge.el @@ -3023,7 +3023,7 @@ If some prefix of KEY has a non-prefix definition, it is redefined." ;; (save-excursion ;; (set-buffer standard-output) ;; (help-mode)) -;; (print-help-return-message))) +;; (help-print-return-message))) ;; This goes with the redefinition of describe-mode. ;;;; Adjust things so that keyboard macro definitions are documented correctly. diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index a14ac3039f9..68ffea55e80 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el @@ -2648,7 +2648,7 @@ G-C-\\: Split Window | FNDNXT | Yank | CUT | (defun edt-electric-helpify (fun) (let ((name "*Help*")) (if (save-window-excursion - (let* ((p (symbol-function 'print-help-return-message)) + (let* ((p (symbol-function 'help-print-return-message)) (b (get-buffer name)) (m (buffer-modified-p b))) (and b (not (get-buffer-window b)) @@ -2660,14 +2660,14 @@ G-C-\\: Split Window | FNDNXT | Yank | CUT | (save-excursion (set-buffer b) (set-buffer-modified-p t))) - (fset 'print-help-return-message 'ignore) + (fset 'help-print-return-message 'ignore) (call-interactively fun) (and (get-buffer name) (get-buffer-window (get-buffer name)) (or (not b) (not (eq b (get-buffer name))) (not (buffer-modified-p b))))) - (fset 'print-help-return-message p) + (fset 'help-print-return-message p) (and b (buffer-name b) (save-excursion (set-buffer b) diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index 38d9973b76f..89daaae7063 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el @@ -1130,7 +1130,7 @@ system which uses fontsets)." (insert "------------\t\t\t\t\t\t ----- -----\n") (dolist (fontset (fontset-list)) (print-fontset fontset t))) - (print-help-return-message)))) + (help-print-return-message)))) ;;;###autoload (defun font-show-log (&optional limit) diff --git a/lisp/play/yow.el b/lisp/play/yow.el index 69662e2ccf9..1c284d009ad 100644 --- a/lisp/play/yow.el +++ b/lisp/play/yow.el @@ -1,7 +1,7 @@ ;;; yow.el --- quote random zippyisms -;; Copyright (C) 1993, 1994, 1995, 2000, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 1993, 1994, 1995, 2000, 2001, 2002, 2003, 2004, 2005, +;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. ;; Maintainer: FSF ;; Author: Richard Mlynarik @@ -101,7 +101,7 @@ If called interactively, display a list of matches." (princ (car l)) (setq l (cdr l)) (and l (princ "\n\n"))) - (print-help-return-message)))))) + (help-print-return-message)))))) matches)) diff --git a/lisp/printing.el b/lisp/printing.el index 5d101b40b2a..46b5f00d182 100644 --- a/lisp/printing.el +++ b/lisp/printing.el @@ -1,7 +1,7 @@ ;;; printing.el --- printing utilities -;; Copyright (C) 2000, 2001, 2003, 2004, 2005, -;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +;; Free Software Foundation, Inc. ;; Author: Vinicius Jose Latorre ;; Maintainer: Vinicius Jose Latorre @@ -5506,7 +5506,7 @@ If menu binding was not done, calls `pr-menu-bind'." (defun pr-show-setup (settings buffer-name) (with-output-to-temp-buffer buffer-name (princ settings) - (print-help-return-message))) + (help-print-return-message))) (defun pr-complete-alist (prompt alist default) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 7221d8ecb73..308af6c02cc 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1787,7 +1787,7 @@ will." ;; Fixme: Is this actually useful? (help-setup-xref (list 'python-describe-symbol symbol) (interactive-p)) (set (make-local-variable 'comint-redirect-subvert-readonly) t) - (print-help-return-message)))) + (help-print-return-message)))) (comint-redirect-send-command-to-process (format "emacs.ehelp(%S, %s)" symbol python-imports) "*Help*" (python-proc) nil nil)) diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 3cf930339e9..a7f033c7045 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el @@ -16979,7 +16979,7 @@ to visually support naming conventions.") (princ (documentation-property variable 'variable-documentation)) (with-current-buffer standard-output (help-mode)) - (print-help-return-message))) + (help-print-return-message))) (defun vhdl-doc-mode () "Display VHDL Mode documentation in *Help* buffer." @@ -16993,7 +16993,7 @@ to visually support naming conventions.") (princ (documentation 'vhdl-mode)) (with-current-buffer standard-output (help-mode)) - (print-help-return-message))) + (help-print-return-message))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/lisp/strokes.el b/lisp/strokes.el index 57c43207179..673a0fb50d5 100644 --- a/lisp/strokes.el +++ b/lisp/strokes.el @@ -1,7 +1,7 @@ ;;; strokes.el --- control Emacs through mouse strokes -;; Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, +;; 2008, 2009 Free Software Foundation, Inc. ;; Author: David Bakhash ;; Maintainer: FSF @@ -1028,7 +1028,7 @@ o Strokes are a bit computer-dependent in that they depend somewhat on by customizing the group `strokes' via \\[customize-group].")) (set-buffer standard-output) (help-mode) - (print-help-return-message))) + (help-print-return-message))) (defalias 'strokes-report-bug 'report-emacs-bug) diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index 0038cd70e4b..90337e734f5 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el @@ -1,12 +1,12 @@ ;;; table.el --- create and edit WYSIWYG text based embedded tables -;; Copyright (C) 2000, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, +;; 2009 Free Software Foundation, Inc. ;; Keywords: wp, convenience ;; Author: Takaaki Ota ;; Created: Sat Jul 08 2000 13:28:45 (PST) -;; Revised: Thu Jan 08 2009 20:17:04 (PST) +;; Revised: Fri Aug 21 2009 00:16:58 (PDT) ;; This file is part of GNU Emacs. @@ -4078,7 +4078,7 @@ fit in the cell width the word is folded into the next line. The folded location is marked by a continuation character which is specified in the variable `table-word-continuation-char'. ") - (print-help-return-message)))) + (help-print-return-message)))) (defun *table--cell-describe-bindings () "Table cell version of `describe-bindings'." @@ -4096,7 +4096,7 @@ key binding (key-description (car binding)) (cdr binding)))) table-cell-bindings) - (print-help-return-message)))) + (help-print-return-message)))) (defun *table--cell-dabbrev-expand (arg) "Table cell version of `dabbrev-expand'." diff --git a/lisp/tutorial.el b/lisp/tutorial.el index 96aec65f38b..7d6bf1c7c72 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el @@ -163,7 +163,7 @@ options: (format "%s" db) "'."))) (fill-region (point-min) (point))))) - (print-help-return-message)))) + (help-print-return-message)))) (defun tutorial--sort-keys (left right) "Sort predicate for use with `tutorial--default-keys'. @@ -388,7 +388,7 @@ from the Emacs default:\n\n" ) (insert " It is OK to change key bindings, but changed bindings do not correspond to what the tutorial says.\n\n") - (print-help-return-message))))) + (help-print-return-message))))) (defun tutorial--find-changed-keys (default-keys) "Find the key bindings used in the tutorial that have changed. diff --git a/lisp/woman.el b/lisp/woman.el index c80201b71a1..90185c6c846 100644 --- a/lisp/woman.el +++ b/lisp/woman.el @@ -1,7 +1,7 @@ ;;; woman.el --- browse UN*X manual pages `wo (without) man' -;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, -;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, +;; 2009 Free Software Foundation, Inc. ;; Author: Francis J. Wright ;; Maintainer: FSF @@ -1970,7 +1970,7 @@ Optional argument REDRAW, if non-nil, forces mode line to be updated." (require 'apropos) (let ((message (let ((standard-output (get-buffer-create "*Apropos*"))) - (print-help-return-message 'identity)))) + (help-print-return-message 'identity)))) (setq apropos-accumulator (apropos-internal "woman" (lambda (symbol) @@ -2973,7 +2973,7 @@ Useful for constructing the alist variable `woman-special-characters'." (setq i (1+ i)) (when (= i 128) (setq i 160) (insert "\n")) (if (zerop (% i 8)) (insert "\n"))))) - (print-help-return-message))) + (help-print-return-message))) ;;; Formatting macros that do not cause a break: