From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Suppressing beginning/end-of-buffer error messages (WAS: GNU Emacs raison d'etre) Date: Thu, 21 May 2020 14:19:44 -0400 Message-ID: References: <5230692c-c665-a330-7a12-e59fa25d97dd@gmail.com> <87h7wghxdz.fsf@osv.gnss.ru> <87eerkgey1.fsf@osv.gnss.ru> <112aecd7-8165-6cae-ef69-08d14d843841@yandex.ru> <5d158a63-7173-424c-9d9f-ce7856f1eae7@default> <4bb36686-34e7-4ac8-898c-74e254902349@default> <29f65907-affb-481e-82f3-62522a766f69@default> <83sgfybn22.fsf@gnu.org> <1701f0b1-a481-bb45-08b8-99da4a6139fc@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="127696"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 21 20:21:13 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbpof-000X80-65 for ged-emacs-devel@m.gmane-mx.org; Thu, 21 May 2020 20:21:13 +0200 Original-Received: from localhost ([::1]:43434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbpoe-0003On-6p for ged-emacs-devel@m.gmane-mx.org; Thu, 21 May 2020 14:21:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbpnY-0002Vp-K3 for emacs-devel@gnu.org; Thu, 21 May 2020 14:20:04 -0400 Original-Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]:35613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbpnX-0000qR-Hn for emacs-devel@gnu.org; Thu, 21 May 2020 14:20:04 -0400 Original-Received: by mail-oo1-xc29.google.com with SMTP id c187so1638539ooc.2 for ; Thu, 21 May 2020 11:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UcZOfzEqe4k4nYLQ7/htQyhIXkMtNidwNyjh8GelpEE=; b=Pw2weZLKXrUhMMdwcLNuMd3FdZo1kr66b9WY0y0fkQoZMJ5R1JdyZSdS+3fhm/7Sbm OaayveNJMHrRY8TQTBardUr+8GOuhTzRFPkPTHJnrrvdLvGYCti2wsRmV9vbIEvYv9IC wLlDrluhlbLF9VWHAYwOkTtjTX4CCSkHGnf8ANCZ4XZG3UP0Q+9nr6ebiJeF8Vdxq3fE kAHBPKp47vB5b1JNbeQG/AORVoXAFdiaA99H6ErWdHq3Sd/h7oB7/wbDskdtUn5eUuf9 CJpvidplp2qWTY7lbXso0TafRn5PylJNe4XNLUtsTDTKjYvb9PvA00Hw1lCOkObBGFqA B3TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UcZOfzEqe4k4nYLQ7/htQyhIXkMtNidwNyjh8GelpEE=; b=WMZSAniR6cj+iunIOa3QD4TlMjhVyw5e0tMFycml9lLMMEF4xtWlmOJLUBIuTcJ/PF 9rIjqlBfonlSzAoN9RYEldz52ZrlqGcJJkzRezytGWewb/u7eJntQKfhI5ztMPwOG5Jr NeyrX/JWJO1T36QWuwYsH18u3IEVWpXMnkrnhYUq4IMZS8c5JMYXc52RwnZ9XWGvZfS4 1V1sGkgtTERbW5B7/8Y5f75FABOh/rvtGTsa/Jw1cURQVngKRxm5JXkf4Gu81MScqrXt IAsf7GifI3B5Fv4CIOn8kxoc85aVohtC60rD4wUk9eVP6vW9QwdtBe0SUzntHwMvi+Fa ze/Q== X-Gm-Message-State: AOAM533eAANV9ePFkgysjdrvrex6QkkJZtCTJV5W/twMMDA8HDKPdopW dX7v9ckg91hyj2sJK/qBdim1WVc4aL+0DAMzdbQ= X-Google-Smtp-Source: ABdhPJxVBbPPZG25tcFsetRnY4/n+xZDU1Y5cQ8rKEPK1Ohd0oVqwXULp3Wf8rYdq8iZ4zuTBqS1sbL/VryrCOtovM4= X-Received: by 2002:a4a:1dc5:: with SMTP id 188mr8388917oog.76.1590085201869; Thu, 21 May 2020 11:20:01 -0700 (PDT) In-Reply-To: <1701f0b1-a481-bb45-08b8-99da4a6139fc@gmx.at> Received-SPF: pass client-ip=2607:f8b0:4864:20::c29; envelope-from=npostavs@gmail.com; helo=mail-oo1-xc29.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251180 Archived-At: On Mon, 18 May 2020 at 04:33, martin rudalics wrote: > I do not use the echo area for ElDoc though and occasionally the echo > area noisily pops up to tell me that I'm at the beginning or end of a > buffer. I've been told that I have to live with the latter. Hmm, I don't see why. 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)