[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trunk r116454: Some doc for read-regexp
From: |
Jambunathan K |
Subject: |
Re: trunk r116454: Some doc for read-regexp |
Date: |
Thu, 06 Mar 2014 11:11:11 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
`read-regexp-defaults-function' deserves a mention in the User Manual.
The variable is not a custom variable. Nevertheless, it is intended for
user consumption.
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)))))
Now,
1. M-x rgrep will work on tag at point.
2. M-s o, for example, will on work on symbol at point.
Glenn Morris <address@hidden> writes:
> ------------------------------------------------------------
> revno: 116454
> revision-id: address@hidden
> parent: address@hidden
> committer: Glenn Morris <address@hidden>
> 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.
>
> * etc/NEWS: Related markup.