From: Jambunathan K <kjambunathan@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: trunk r116454: Some doc for read-regexp
Date: Thu, 06 Mar 2014 11:04:41 +0530 [thread overview]
Message-ID: <87ha7bgaa6.fsf@gmail.com> (raw)
In-Reply-To: E1WFDha-0006SX-At@vcs.savannah.gnu.org
`read-regexp-defaults-function' deserves a mention in the User Manual.
Even though it is not a custom variable, it is meant to be user facing.
I use it this way:
(setq read-regexp-defaults-function
(lambda nil
(pcase this-command
(`rgrep (find-tag-default-as-regexp))
(_ (find-tag-default-as-symbol-regexp)))))
This way
1. M-x rgrep will work at point.
2. M-s o will work on symbol at point.
Glenn Morris <rgm@gnu.org> writes:
> ------------------------------------------------------------
> revno: 116454
> revision-id: rgm@gnu.org-20140217021250-xbrzrdkdrquhf6mw
> parent: michael.albinus@gmx.de-20140216172300-zwab4d5ltv4hbpot
> committer: Glenn Morris <rgm@gnu.org>
> branch nick: trunk
> timestamp: Sun 2014-02-16 18:12:50 -0800
> message:
> Some doc for read-regexp
>
> * doc/lispref/minibuf.texi (Text from Minibuffer):
> Update read-regexp details.
> Mention read-regexp-defaults-function.
next parent reply other threads:[~2014-03-06 5:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1WFDha-0006SX-At@vcs.savannah.gnu.org>
2014-03-06 5:34 ` Jambunathan K [this message]
2014-03-06 5:41 ` trunk r116454: Some doc for read-regexp Jambunathan K
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=87ha7bgaa6.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--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.