[Top][All Lists]

[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:04:41 +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.
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 <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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]