From: martin rudalics <rudalics@gmx.at>
To: emacs-devel <emacs-devel@gnu.org>
Subject: `set-mark-command-repeat-pop' riddle
Date: Mon, 23 Apr 2007 09:58:18 +0200 [thread overview]
Message-ID: <462C671A.4020405@gmx.at> (raw)
[-- Attachment #1: Type: text/plain, Size: 842 bytes --]
The first customizable item in the editing group is
set-mark-command-repeat-pop: Hide Value Toggle off (nil)
State: STANDARD.
Non-nil means that repeating C-@ after popping will pop. More
Clicking on More will reveal the additional information:
This means that if you type C-u C-@ C-@
will pop twice.
If I didn't consult the code of `set-mark-command' I wouldn't have the
slightest idea what these mean (ask someone new to Emacs to interpret
this doc-string). It's also distracting because this is the only
customizable entry in the `editing' group and a fresh user probably
might consult this group among the first.
Moreover the doc-string uses C-u instead of \\[universal-argument] and
misses a version number. I'd propose to move this variable to the
`editing-basics' group and change the doc-string as in the attached
patch.
[-- Attachment #2: simple.patch --]
[-- Type: text/plain, Size: 1131 bytes --]
*** simple.el Sat Apr 21 11:49:22 2007
--- simple.el Mon Apr 23 08:46:42 2007
***************
*** 3198,3208 ****
(message "Mark activated")))))
(defcustom set-mark-command-repeat-pop nil
! "*Non-nil means that repeating \\[set-mark-command] after popping will pop.
! This means that if you type C-u \\[set-mark-command] \\[set-mark-command]
will pop twice."
:type 'boolean
! :group 'editing)
(defun set-mark-command (arg)
"Set the mark where point is, or jump to the mark.
--- 3198,3212 ----
(message "Mark activated")))))
(defcustom set-mark-command-repeat-pop nil
! "Non-nil means repeating \\[set-mark-command] jumps to next position on mark ring.
! If this variable is non-nil, repeating the \\[set-mark-command] command with no
! prefix argument pops the next position off the local \(or global)
! mark ring and jumps there. Hence, typing \\[universal-argument] \
! \\[set-mark-command] followed by \\[set-mark-command]
will pop twice."
:type 'boolean
! :version "22.1"
! :group 'editing-basics)
(defun set-mark-command (arg)
"Set the mark where point is, or jump to the mark.
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2007-04-23 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-23 7:58 martin rudalics [this message]
2007-04-23 23:08 ` `set-mark-command-repeat-pop' riddle Richard Stallman
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=462C671A.4020405@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@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.