From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: The doc string for a globalized minor mode should linke to the mode
Date: Wed, 18 Apr 2007 17:23:34 +0200 [thread overview]
Message-ID: <462637F6.6080107@gmail.com> (raw)
In-Reply-To: <E1HdzVW-0005zY-Bv@fencepost.gnu.org>
Richard Stallman wrote:
> Subject: The doc string for a globalized minor mode should linke to the mode
>
> I am not entirely sure what that means. Could you be more specific?
>
> Can you write a fix?
I would prefer something like this:
Index: easy-mmode.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/emacs-lisp/easy-mmode.el,v
retrieving revision 1.82
diff -c -r1.82 easy-mmode.el
*** easy-mmode.el 3 Feb 2007 17:26:28 -0000 1.82
--- easy-mmode.el 18 Apr 2007 15:22:58 -0000
***************
*** 295,301 ****
call another major mode in their body."
(let* ((global-mode-name (symbol-name global-mode))
- (pretty-name (easy-mmode-pretty-mode-name mode))
(pretty-global-name (easy-mmode-pretty-mode-name global-mode))
(group nil)
(extra-keywords nil)
--- 295,300 ----
***************
*** 327,337 ****
(make-variable-buffer-local ',MODE-major-mode)
;; The actual global minor-mode
(define-minor-mode ,global-mode
! ,(format "Toggle %s in every buffer.
With prefix ARG, turn %s on if and only if ARG is positive.
! %s is actually not turned on in every buffer but only in those
in which `%s' turns it on."
! pretty-name pretty-global-name pretty-name turn-on)
:global t ,@group ,@(nreverse extra-keywords)
;; Setup hook to handle future mode changes and new buffers.
--- 326,337 ----
(make-variable-buffer-local ',MODE-major-mode)
;; The actual global minor-mode
(define-minor-mode ,global-mode
! ,(format "Toggle `%s' in every buffer.
With prefix ARG, turn %s on if and only if ARG is positive.
!
! `%s' is actually not turned on in every buffer but only in those
in which `%s' turns it on."
! mode pretty-global-name mode turn-on)
:global t ,@group ,@(nreverse extra-keywords)
;; Setup hook to handle future mode changes and new buffers.
prev parent reply other threads:[~2007-04-18 15:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-17 10:45 The doc string for a globalized minor mode should linke to the mode Lennart Borgman (gmail)
2007-04-18 2:02 ` Richard Stallman
2007-04-18 15:23 ` Lennart Borgman (gmail) [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=462637F6.6080107@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.