all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lennart Borgman'" <lennart.borgman@gmail.com>
Cc: 7567@debbugs.gnu.org
Subject: bug#7567: Please add a history variable to read-regexp
Date: Mon, 6 Dec 2010 16:31:12 -0800	[thread overview]
Message-ID: <C692A16B1F5A4B36B306E83D5B25F6F1@us.oracle.com> (raw)
In-Reply-To: <AANLkTimob=uY3FbefHNG7po3Dv2E7OgzXm=7eeFo4r_m@mail.gmail.com>

> >> Why should that regexp be used to make buffer names? It is 
> >> probably a regexp that has been used for matching strings in buffers.
> >
> > Why is it "probably" that?
> >
> > I use regexps interactively all over the place.  Matching 
> > text in a buffer is only one use.
> 
> Can you give examples of other interactive uses, please? That might
> make it easier to know what we are really talking about.

Use your imagination. But yes, of course anything _could_ be put in a buffer, so
conceivably any use of a regexp could involve matching some buffer's text...

What about the very functions you mentioned?  Why wouldn't regexps they read
also be useful in some buffer?  Or vice versa, why couldn't some buffer-text
regexp be useful for those functions?

Anyway, if you insist, here are a few examples: `icicle-customize-apropos':
Customize all user options matching REGEXP.  Likewise, customize faces and
groups.  Likewise Icicles apropos functions.  I even use it in the Icicles
version of `apropos-zippy' (but the vanilla version uses (interactive "s...")).
`icicle-find-tag': Navigate among all tags whose names match REGEXP.   I use it
for `icicle-keyword-list', which reads a list of keywords, each of which could
actually be a regexp.  I use it in `icicle-widen-candidates', which adds
completion candidates based on an alternative regexp.

And there are specialized vanilla regexp histories, such as
`dired-regexp-history'.

And you yourself mentioned matching a buffer name.  (I do that in
`icicle-add-buffer-config', for instance: buffer names to match for inclusion
and for exclusion as completion candidates.)

Now you can imagine lots of others, I think.  A regexp can be used anywhere, and
a function to read a regexp can be used in any regexp use case.

I guess what I'd really like to ask you is this: Please give a reason why
`read-regexp', which is extremely general, should _not_ use the general regexp
history variable.






  reply	other threads:[~2010-12-07  0:31 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06  2:24 bug#7567: Please add a history variable to read-regexp Lennart Borgman
2010-12-06 22:43 ` Lennart Borgman
2010-12-06 22:57   ` Drew Adams
2010-12-06 23:00     ` Lennart Borgman
2010-12-06 23:11       ` Drew Adams
2010-12-06 23:23         ` Lennart Borgman
2010-12-07  0:31           ` Drew Adams [this message]
2010-12-07  4:09           ` Drew Adams
2010-12-08  1:51         ` Juri Linkov
2010-12-08  3:03           ` Drew Adams
2010-12-06 23:03   ` Juri Linkov
2010-12-06 23:46     ` Lennart Borgman
2010-12-08  1:44       ` Juri Linkov
2010-12-07  3:48 ` Stefan Monnier
2010-12-08  1:57   ` Juri Linkov
2010-12-08  2:19     ` Lennart Borgman
2010-12-09  1:25       ` Juri Linkov
2010-12-08  3:10     ` Drew Adams
2010-12-09 14:31       ` Stefan Monnier
2010-12-09 16:14         ` Drew Adams
2010-12-10  3:09           ` Stefan Monnier
2010-12-09 14:28     ` Stefan Monnier
2010-12-09 17:43       ` Drew Adams
2010-12-10  3:06         ` Stefan Monnier
2010-12-10  3:46           ` Drew Adams
2010-12-10 20:10             ` Stefan Monnier
2010-12-08  3:32   ` Lennart Borgman
2012-09-20  8:30 ` bug#7567: Please add a history argument " Juri Linkov
2012-09-20 21:59   ` Juri Linkov

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=C692A16B1F5A4B36B306E83D5B25F6F1@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=7567@debbugs.gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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.