unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Juri Linkov <juri@jurta.org>,
	Chong Yidong <cyd@stupidchicken.com>,
	emacs-devel@gnu.org
Subject: Re: Online help and help-for-help improvements
Date: Tue, 04 Mar 2008 19:17:09 +0100	[thread overview]
Message-ID: <87mype8ica.fsf@kfs-lx.rd.rdm> (raw)
In-Reply-To: <jwvpruabic4.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue\, 04 Mar 2008 10\:49\:18 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>>> One way would be to simply add aliases for the new names
>>>> now for 22.2 release, and declare the old names obsolete
>>> 

Here's a patch for the Emacs 22 branch:

Index: etc/NEWS
===================================================================
RCS file: /cvsroot/emacs/emacs/etc/NEWS,v
retrieving revision 1.1465.2.66
diff -u -r1.1465.2.66 NEWS
--- etc/NEWS	3 Mar 2008 03:28:33 -0000	1.1465.2.66
+++ etc/NEWS	4 Mar 2008 18:11:41 -0000
@@ -42,8 +42,22 @@
 
 ** Support for GNU/kFreeBSD (GNU userland and FreeBSD kernel) was added.
 
 * Changes in Emacs 22.2
 
+** `describe-project' is renamed to `describe-gnu-project'.
+
+** `view-todo' is renamed to `view-emacs-news'.
+
 ** `find-name-dired' now uses -iname rather than -name
 for case-insensitive filesystems.  The default behavior is determined
 by the value of `read-file-name-completion-ignore-case'; if you don't

Index: lisp/help.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/help.el,v
retrieving revision 1.327.2.4
diff -u -r1.327.2.4 help.el
--- lisp/help.el	7 Jan 2008 02:44:43 -0000	1.327.2.4
+++ lisp/help.el	4 Mar 2008 18:13:05 -0000
@@ -53,8 +53,8 @@
     (define-key map "\C-f" 'view-emacs-FAQ)
     (define-key map "\C-m" 'view-order-manuals)
     (define-key map "\C-n" 'view-emacs-news)
-    (define-key map "\C-p" 'describe-project)
-    (define-key map "\C-t" 'view-todo)
+    (define-key map "\C-p" 'describe-gnu-project)
+    (define-key map "\C-t" 'view-emacs-todo)
     (define-key map "\C-w" 'describe-no-warranty)
 
     ;; This does not fit the pattern, but it is natural given the C-\ command.
@@ -292,7 +292,10 @@
   (view-file (expand-file-name "COPYING" data-directory))
   (goto-char (point-min)))
 
-(defun describe-project ()
+(defalias 'describe-project 'describe-gnu-project
+  "Display info on the GNU project.
+This function is deprecated.  Use `describe-gnu-project' instead.")
+(defun describe-gnu-project ()
   "Display info on the GNU project."
   (interactive)
   (view-file (expand-file-name "THE-GNU-PROJECT" data-directory))
@@ -396,7 +399,10 @@
 	   (point)))))))
 
 
-(defun view-todo (&optional arg)
+(defalias 'view-todo 'view-emacs-todo
+  "Display the Emacs TODO list.
+This function is deprecated.  Use `view-emacs-todo' instead.")
+(defun view-emacs-todo (&optional arg)
   "Display the Emacs TODO list."
   (interactive "P")
   (view-file (expand-file-name "TODO" data-directory)))

Index: lisp/menu-bar.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/menu-bar.el,v
retrieving revision 1.302.2.8
diff -u -r1.302.2.8 menu-bar.el
--- lisp/menu-bar.el	7 Jan 2008 02:44:30 -0000	1.302.2.8
+++ lisp/menu-bar.el	4 Mar 2008 18:13:41 -0000
@@ -1341,7 +1341,7 @@
 	      :help "Read the Introduction to Emacs Lisp Programming"))
 
 (define-key menu-bar-help-menu [about-gnu-project]
-  '(menu-item "About GNU" describe-project
+  '(menu-item "About GNU" describe-gnu-project
 	      :help "About the GNU System, GNU Project, and GNU/Linux"))
 (define-key menu-bar-help-menu [about-emacs]
   '(menu-item "About Emacs" about-emacs

Index: lisp/startup.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/startup.el,v
retrieving revision 1.436.2.15
diff -u -r1.436.2.15 startup.el
--- lisp/startup.el	2 Mar 2008 16:17:57 -0000	1.436.2.15
+++ lisp/startup.el	4 Mar 2008 18:14:03 -0000
@@ -1148,7 +1148,7 @@
 	   '("GNU/Linux"
 	     (lambda (button) (browse-url "http://www.gnu.org/gnu/linux-and-gnu.html"))
 	     "Browse http://www.gnu.org/gnu/linux-and-gnu.html")
-	 '("GNU" (lambda (button) (describe-project))
+	 '("GNU" (lambda (button) (describe-gnu-project))
 	   "Display info on the GNU project")))
      " operating system.\n"
      :face variable-pitch "To quit a partially entered command, type "
@@ -1207,7 +1207,7 @@
 	   '("GNU/Linux"
 	     (lambda (button) (browse-url "http://www.gnu.org/gnu/linux-and-gnu.html"))
 	     "Browse http://www.gnu.org/gnu/linux-and-gnu.html")
-	 '("GNU" (lambda (button) (describe-project))
+	 '("GNU" (lambda (button) (describe-gnu-project))
 	   "Display info on the GNU project.")))
      " operating system.\n"
      :face (lambda ()
@@ -1222,7 +1222,7 @@
      (lambda () emacs-copyright)
      "\n\n"
      :face variable-pitch
-     :link ("GNU and Freedom" (lambda (button) (describe-project)))
+     :link ("GNU and Freedom" (lambda (button) (describe-gnu-project)))
      "\tWhy we developed GNU Emacs, and the GNU operating system\n"
      :link ("Absence of Warranty" (lambda (button) (describe-no-warranty)))
      "\tGNU Emacs comes with "
@@ -1816,7 +1816,7 @@
   (insert "To follow a link, click Mouse-1 on it, or move to it and type RET.\n\n")
 
   (insert-button "GNU and Freedom"
-		 'action (lambda (button) (describe-project))
+		 'action (lambda (button) (describe-gnu-project))
 		 'follow-link t)
   (insert "\t\tWhy we developed GNU Emacs and the GNU system\n")
 

Index: man/help.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/man/Attic/help.texi,v
retrieving revision 1.53.2.1
diff -u -r1.53.2.1 help.texi
--- man/help.texi	9 Jan 2008 04:08:27 -0000	1.53.2.1
+++ man/help.texi	4 Mar 2008 18:14:27 -0000
@@ -606,7 +606,7 @@
 @kindex C-h C-n
 @findex view-emacs-news
 @kindex C-h C-p
-@findex describe-project
+@findex describe-gnu-project
 @kindex C-h C-t
 @findex view-emacs-todo
 @kindex C-h C-w
@@ -629,9 +629,9 @@
 recent version of Emacs (@code{view-emacs-news}).
 @item C-h C-p
 Display general information about the GNU Project
-(@code{describe-project}).
+(@code{describe-gnu-project}).
 @item C-h C-t
-Display the Emacs to-do list (@code{view-todo}).
+Display the Emacs to-do list (@code{view-emacs-todo}).
 @item C-h C-w
 Display the full details on the complete absence of warranty for GNU
 Emacs (@code{describe-no-warranty}).

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk





  reply	other threads:[~2008-03-04 18:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-28 12:04 Online help and help-for-help improvements Kim F. Storm
2008-02-28 21:04 ` Juri Linkov
2008-02-28 22:49   ` Kim F. Storm
2008-02-28 23:01     ` Juri Linkov
2008-02-28 23:12       ` Kim F. Storm
2008-02-28 21:08 ` Chong Yidong
2008-02-28 23:01   ` Kim F. Storm
2008-02-28 23:48     ` Chong Yidong
2008-02-29 12:22       ` Kim F. Storm
2008-03-01 10:33       ` Reiner Steib
2008-03-02  2:59         ` Juri Linkov
2008-03-03 13:37           ` Kim F. Storm
2008-03-03 14:03             ` Stefan Monnier
2008-03-03 23:40               ` Kim F. Storm
2008-03-04 15:49                 ` Stefan Monnier
2008-03-04 18:17                   ` Kim F. Storm [this message]
2008-03-04 19:29                     ` Juri Linkov
2008-03-05  0:29                       ` Kim F. Storm
2008-03-04 19:40                     ` Reiner Steib
2008-03-05  0:30                       ` Kim F. Storm
2008-03-04 21:37                     ` Chong Yidong
2008-03-04 21:48                       ` Nick Roberts
2008-03-06  0:09                       ` Kim F. Storm
2008-03-06 15:18                         ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mype8ica.fsf@kfs-lx.rd.rdm \
    --to=storm@cua.dk \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).