all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Nafiz Islam <nafiz.islam1001@gmail.com>
Cc: 68697@debbugs.gnu.org
Subject: bug#68697: Add option to not always use *grep* buffer when executing `grep' or `vc-git-grep' command
Date: Thu, 25 Jan 2024 09:24:50 +0200	[thread overview]
Message-ID: <86plxpdge5.fsf@gnu.org> (raw)
In-Reply-To: <CAKjtFcQAfzzO5gHOq1kORpJQ3dzz788KTW-j5jsCMjdaGqxxXg@mail.gmail.com> (message from Nafiz Islam on Wed, 24 Jan 2024 15:16:12 -0500)

> From: Nafiz Islam <nafiz.islam1001@gmail.com>
> Date: Wed, 24 Jan 2024 15:16:12 -0500
> 
> The way `grep' and `vc-git-grep' works right now is that it will always output its result to a buffer called
> `*grep*'. So, if I perform another `grep' command, it will overwrite the previous grep result (unless I
> rename the buffer beforehand).
> 
> I would like, at least, an option to create a new buffer each time a `grep' command is executed.
> Maybe each new buffer could be given the name based on the regexp or the grep shell command
> used.

Did you try to define a compilation-buffer-name-function that would do
what you want?  Such a function can produce any buffer name you want.





  reply	other threads:[~2024-01-25  7:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24 20:16 bug#68697: Add option to not always use *grep* buffer when executing `grep' or `vc-git-grep' command Nafiz Islam
2024-01-25  7:24 ` Eli Zaretskii [this message]
2024-01-25 14:58   ` Nafiz Islam
2024-01-25 15:12     ` Eli Zaretskii
2024-01-25  7:45 ` 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=86plxpdge5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=68697@debbugs.gnu.org \
    --cc=nafiz.islam1001@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.