[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Annoying call to error in goto-history-element

From: Lennart Borgman
Subject: Re: Annoying call to error in goto-history-element
Date: Tue, 7 Dec 2010 00:59:14 +0100

On Tue, Dec 7, 2010 at 12:48 AM, Geoff Gole <address@hidden> wrote:
> When moving through the history of find-file, running into the end of
> the history will result in an error message briefly and annoyingly
> obscuring the minibuffer. To see this, emacs -q C-x C-f <up>. The
> cause is calls to error in goto-history-element.
> It looks like in place of error we could call minibuffer-message and
> exit the function (see patch below), which would make for a more
> pleasant experience. Unfortunately that relies on the fact that the
> callers of goto-history-element don't perform any real work after
> their call to same, and that doesn't seem like a clean solution.
> The only other thing I can think of is writing a macro
> with-redirected-error-messages which would catch and redirect Lisp
> errors into calls to minibuffer-message, and adding that to the
> callers in question. I don't really like that either.
> Thoughts?

Is it necessary with a message at all here? Just some kind of visible
"beep" instead perhaps?

reply via email to

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