From: John Magolske <listmail@b79.net>
To: help-gnu-emacs@gnu.org
Subject: Re: inhibit-message, "Beginning of buffer" / "End of buffer" messages
Date: Thu, 24 Dec 2015 12:00:50 -0800 [thread overview]
Message-ID: <20151224200050.GA7998@s70206.gridserver.com> (raw)
In-Reply-To: <87vb7niym0.fsf@web.de>
* Michael Heerdegen <michael_heerdegen@web.de> [151224 11:30]:
> These "messages" are actually errors, so `inhibit-message' has no effect
Ah, I see. At some point I'll look into what sort of messages
'inhibit-message' acts on. For now, what I'm most concerned with is
the "Beginning of buffer" / "End of buffer" popping up when in the
minibuffer. Particularly when in evil-mode on the ex command line and
the command gets overlayed with "End of buffer", which I find jarring.
> (and I think you would regret sooner or later when setting
> `inhibit-message' globally to t).
I figured as much :)
> AFAICT there is no user option to achieve what you want. I would try it
> like this:
>
> --8<---------------cut here---------------start------------->8---
> (defun my-ignore-bet-end-of-buffer--around-ad (f &rest args)
> (condition-case nil
> (apply f args)
> ((beginning-of-buffer end-of-buffer))))
>
> (advice-add 'left-char :around
> #'my-ignore-bet-end-of-buffer--around-ad)
>
> (advice-add 'right-char :around
> #'my-ignore-bet-end-of-buffer--around-ad)
> --8<---------------cut here---------------end--------------->8---
And that works perfectly!
Thanks,
John
--
John Magolske
http://b79.net/contact
next prev parent reply other threads:[~2015-12-24 20:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-24 9:18 inhibit-message, "Beginning of buffer" / "End of buffer" messages John Magolske
2015-12-24 16:45 ` Michael Heerdegen
2015-12-24 20:00 ` John Magolske [this message]
2015-12-24 20:42 ` Emanuel Berg
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=20151224200050.GA7998@s70206.gridserver.com \
--to=listmail@b79.net \
--cc=help-gnu-emacs@gnu.org \
/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.
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).