all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: inhibit-message, "Beginning of buffer" / "End of buffer" messages
Date: Thu, 24 Dec 2015 17:45:59 +0100	[thread overview]
Message-ID: <87vb7niym0.fsf@web.de> (raw)
In-Reply-To: 20151224091841.GA3877@s70206.gridserver.com

John Magolske <listmail@b79.net> writes:

> Hi,
>
> I'd like to suppress the "Beginning of buffer" / "End of buffer"
> messages that show up when the cursor in the minibuffer is moved all
> the way to the left & all the way to the right. It seems that setting
> "inhibit-message" might take care of this, but I'm having no luck with

These "messages" are actually errors, so `inhibit-message' has no effect
(and I think you would regret sooner or later when setting
`inhibit-message' globally to t).

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---


Regards,

Michael.




  reply	other threads:[~2015-12-24 16:45 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 [this message]
2015-12-24 20:00   ` John Magolske
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

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

  git send-email \
    --in-reply-to=87vb7niym0.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --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.
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.