all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: trunk r116454: Some doc for read-regexp
       [not found] <E1WFDha-0006SX-At@vcs.savannah.gnu.org>
@ 2014-03-06  5:34 ` Jambunathan K
  2014-03-06  5:41 ` Jambunathan K
  1 sibling, 0 replies; 2+ messages in thread
From: Jambunathan K @ 2014-03-06  5:34 UTC (permalink / raw)
  To: emacs-devel


`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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: trunk r116454: Some doc for read-regexp
       [not found] <E1WFDha-0006SX-At@vcs.savannah.gnu.org>
  2014-03-06  5:34 ` trunk r116454: Some doc for read-regexp Jambunathan K
@ 2014-03-06  5:41 ` Jambunathan K
  1 sibling, 0 replies; 2+ messages in thread
From: Jambunathan K @ 2014-03-06  5:41 UTC (permalink / raw)
  To: emacs-devel


`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 <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.
>   
>   * etc/NEWS: Related markup.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-06  5:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1WFDha-0006SX-At@vcs.savannah.gnu.org>
2014-03-06  5:34 ` trunk r116454: Some doc for read-regexp Jambunathan K
2014-03-06  5:41 ` Jambunathan K

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.