emacs-devel
[Top][All Lists]
Advanced

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

Re: Suppressing beginning/end-of-buffer error messages (WAS: GNU Emacs r


From: martin rudalics
Subject: Re: Suppressing beginning/end-of-buffer error messages (WAS: GNU Emacs raison d'etre)
Date: Fri, 22 May 2020 11:30:30 +0200

> Try this:
>
>      (defun ignore-edge-of-buffer-errors (default-fun error context signaller)
>        (unless (memq (car error) '(beginning-of-buffer end-of-buffer))
>          (funcall default-fun error context signaller)))
>      (add-function :around command-error-function
>                    #'ignore-edge-of-buffer-errors)

That will save me a lot of trouble.

I suppose it would also work when I set 'command-error-function' to
'ignore-edge-of-buffer-errors' right away but the advice is probably
cleaner.

Many thanks, martin



reply via email to

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