unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jakub Jankiewicz <jcubic@onet.pl>
Cc: Stefan <monnier@iro.umontreal.ca>, 17048@debbugs.gnu.org
Subject: bug#17048: minibuffer history should filter out impossible entries
Date: Fri, 20 Aug 2021 16:45:50 +0200	[thread overview]
Message-ID: <87a6lc6uox.fsf_-_@gnus.org> (raw)
In-Reply-To: <20140320161346.3b7e1e87@jcubic> (Jakub Jankiewicz's message of "Thu, 20 Mar 2014 16:13:46 +0100")

Jakub Jankiewicz <jcubic@onet.pl> writes:

> Yes it's history, I think this fix the bug (but only for buffer names)
>
> (add-hook 'kill-buffer-hook
>           (lambda ()
>             (setq buffer-name-history (delete (buffer-name)
>                                               buffer-name-history))))

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I think this is the correct solution here -- adding a user option for
this could make sense (if many wanted this functionality), but I haven't
really seem much demand for that, so I think doing it via this hook is
the right way to go.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      parent reply	other threads:[~2021-08-20 14:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 11:10 bug#17048: switch-to-buffer function show killed buffers names Jakub Jankiewicz
2014-03-20 14:16 ` Stefan
2014-03-20 15:13   ` Jakub Jankiewicz
2014-03-20 15:45     ` Drew Adams
2021-08-20 14:45     ` Lars Ingebrigtsen [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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6lc6uox.fsf_-_@gnus.org \
    --to=larsi@gnus.org \
    --cc=17048@debbugs.gnu.org \
    --cc=jcubic@onet.pl \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).