all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: herring@lanl.gov
Cc: Lennart Borgman <lennart.borgman@gmail.com>,
	Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: multi-occur-in-matching-buffers
Date: Thu, 04 Mar 2010 23:12:11 +0200	[thread overview]
Message-ID: <878wa7hklw.fsf@mail.jurta.org> (raw)
In-Reply-To: <50327.130.55.132.161.1267683318.squirrel@webmail.lanl.gov> (Davis Herring's message of "Wed, 3 Mar 2010 22:15:18 -0800 (PST)")

>> It asked if it is too much to hope for ".*\.el". Eh, no wait, (concat
>> ".*" (file-name-extension (buffer-file-name)).
>
> Surely it merely misspoke and meant to say
>
> (concat (regexp-quote (file-name-extension buffer-file-name t)) "\\'")
>
> Surely a function that searches with regexps wouldn't make a mistake
> composing one, after all.

It is like its cousin in `dired-mark-files-regexp' I wanted to present
after the feature freeze:

=== modified file 'lisp/dired.el'
--- lisp/dired.el	2010-02-04 23:25:57 +0000
+++ lisp/dired.el	2010-03-04 21:11:09 +0000
@@ -2957,7 +2957,11 @@ (defun dired-mark-files-regexp (regexp &
 object files--just `.o' will mark more than you might think."
   (interactive
    (list (dired-read-regexp (concat (if current-prefix-arg "Unmark" "Mark")
-				    " files (regexp): "))
+				    " files (regexp): ")
+			    nil nil
+			    (concat (regexp-quote (file-name-extension
+						   (dired-get-filename nil t) t))
+				    "\\'"))
 	 (if current-prefix-arg ?\040)))
   (let ((dired-marker-char (or marker-char dired-marker-char)))
     (dired-mark-if

-- 
Juri Linkov
http://www.jurta.org/emacs/




      reply	other threads:[~2010-03-04 21:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15 18:19 multi-occur-in-matching-buffers Lennart Borgman
2010-01-15 20:12 ` multi-occur-in-matching-buffers Juri Linkov
2010-01-15 20:28   ` multi-occur-in-matching-buffers Lennart Borgman
2010-01-15 21:38     ` multi-occur-in-matching-buffers Juri Linkov
2010-01-15 22:36       ` multi-occur-in-matching-buffers Lennart Borgman
2010-03-04  6:15     ` multi-occur-in-matching-buffers Davis Herring
2010-03-04 21:12       ` Juri Linkov [this message]

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=878wa7hklw.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=herring@lanl.gov \
    --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.