From unknown Sun Aug 17 10:26:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31743: 27.0.50; [feature request] add command to ERC to erase scrollback text Resent-From: Jonathan Kyle Mitchell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jun 2018 01:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 31743@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152833603812353 (code B ref -1); Thu, 07 Jun 2018 01:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jun 2018 01:47:18 +0000 Received: from localhost ([127.0.0.1]:37271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQk1G-0003DB-CG for submit@debbugs.gnu.org; Wed, 06 Jun 2018 21:47:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQk1D-0003Cw-7M for submit@debbugs.gnu.org; Wed, 06 Jun 2018 21:47:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQk16-0005Xx-OV for submit@debbugs.gnu.org; Wed, 06 Jun 2018 21:47:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44836) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQk16-0005Xo-LB for submit@debbugs.gnu.org; Wed, 06 Jun 2018 21:47:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQk15-0001EB-4x for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2018 21:47:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQk11-0005W2-Uo for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2018 21:47:07 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:38127) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQk11-0005VW-O4 for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2018 21:47:03 -0400 Received: by mail-wm0-f50.google.com with SMTP id 69-v6so2432182wmf.3 for ; Wed, 06 Jun 2018 18:47:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wFYWOlotq7E+P3UJOFqQtUI1sxHbCR7po0EPuzTYnyE=; b=N0m3NntdTm6LayfpZdAMgbAtoCEQ+ZBABf1tkFw8paMJPiitorjmJJPd4JBJIgqndW yR456GzUKMLOAu9ODr9TN70SW9m5848+sGY80bsua5y1ljsvSkbBckPNdXFpsbvR6nMQ GfAPKmnrJUI1F/enVes3we6VPjhOBquVMUPGefeqT2OaAclc++c2b3Pej1JxaDL0tVGp 2FgKTGTK8uk/GGuzi45jMQY+cURNRVg3mfaRlVlU9OWRs3u25aUl+/9jTcfuRELcUBfv o6EHpfkX8pIkZUk7L3RaPmBkyxAnBBx28HNRUTT9AAxWM1loSvJSa3TjN+0d8i7fRF/c eryQ== X-Gm-Message-State: APt69E2bSDf7YwwfHUYghetCMhkHsEl0BLNXcdtwqO8QWQhigvTlq0gU 4NKQXEzE9nJjshlNZXF2mklllL3KhW8= X-Google-Smtp-Source: ADUXVKIFRWcuMj37Xs/mrxNS1zKziUMIP5/AY3OYOumTeiuHft8JLrlOtW1mRccGcEr0KdUk29AeKA== X-Received: by 2002:a50:8743:: with SMTP id 3-v6mr294429edv.218.1528336021962; Wed, 06 Jun 2018 18:47:01 -0700 (PDT) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com. [74.125.82.53]) by smtp.gmail.com with ESMTPSA id c20-v6sm8501255ede.3.2018.06.06.18.47.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jun 2018 18:47:01 -0700 (PDT) Received: by mail-wm0-f53.google.com with SMTP id r15-v6so14813108wmc.1 for ; Wed, 06 Jun 2018 18:47:01 -0700 (PDT) X-Received: by 2002:a1c:2703:: with SMTP id n3-v6mr129045wmn.109.1528336021388; Wed, 06 Jun 2018 18:47:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:598a:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 18:47:00 -0700 (PDT) From: Jonathan Kyle Mitchell Date: Wed, 6 Jun 2018 20:47:00 -0500 X-Gmail-Original-Message-ID: Message-ID: Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) A recent discussion[1] in help-gnu-emacs revealed that a user expected ERC's /CLEAR command (i.e. erc-cmd-CLEAR) to erase the buffer contents instead of just recentering the display. [1] http://lists.gnu.org/archive/html/help-gnu-emacs/2018-06/msg00041.html I see two options to handle this: 1) Modify the existing erc-cmd-CLEAR command to also erase the buffer contents. 2) Add a new command to erase the buffer contents and keep the existing CLEAR command that just clears the window by recentering the text to be above the window, preserving the scrollback text. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-06-06 built on fedorabox Repository revision: 4a51deb993d923767f0eddd4f350e636fe8d7c0b Windowing system distributor 'Fedora Project', version 11.0.11906000 System Description: Fedora 28 (Twenty Eight) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-modules --with-xwidgets' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS LIBSYSTEMD JSON LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date elec-pair mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 94457 8735) (symbols 48 20180 1) (miscs 40 37 145) (strings 32 28224 2094) (string-bytes 1 741382) (vectors 16 14073) (vector-slots 8 493380 15320) (floats 8 48 69) (intervals 56 206 0) (buffers 992 11)) -- Jonathan Kyle Mitchell From unknown Sun Aug 17 10:26:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31743: 27.0.50; [feature request] add command to ERC to erase scrollback text Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jul 2019 03:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonathan Kyle Mitchell Cc: 31743@debbugs.gnu.org Received: via spool by 31743-submit@debbugs.gnu.org id=B31743.15629895417218 (code B ref 31743); Sat, 13 Jul 2019 03:46:01 +0000 Received: (at 31743) by debbugs.gnu.org; 13 Jul 2019 03:45:41 +0000 Received: from localhost ([127.0.0.1]:41262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm8yi-0001s7-Ny for submit@debbugs.gnu.org; Fri, 12 Jul 2019 23:45:41 -0400 Received: from quimby.gnus.org ([80.91.231.51]:54944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm8yh-0001qu-AO for 31743@debbugs.gnu.org; Fri, 12 Jul 2019 23:45:39 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm8yd-0005DG-KA; Sat, 13 Jul 2019 05:45:38 +0200 From: Lars Ingebrigtsen References: Date: Sat, 13 Jul 2019 05:45:35 +0200 In-Reply-To: (Jonathan Kyle Mitchell's message of "Wed, 6 Jun 2018 20:47:00 -0500") Message-ID: <871ryuy4v4.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jonathan Kyle Mitchell writes: > A recent discussion[1] in help-gnu-emacs revealed that a user > expected ERC's /CLEAR command (i.e. erc-cmd-CLEAR) to erase the buffer > contents instead of just recentering the display. > > [1] htt [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jonathan Kyle Mitchell writes: > A recent discussion[1] in help-gnu-emacs revealed that a user > expected ERC's /CLEAR command (i.e. erc-cmd-CLEAR) to erase the buffer > contents instead of just recentering the display. > > [1] http://lists.gnu.org/archive/html/help-gnu-emacs/2018-06/msg00041.html > > I see two options to handle this: > 1) Modify the existing erc-cmd-CLEAR command to also erase the buffer > contents. > 2) Add a new command to erase the buffer contents and keep the existing > CLEAR command that just clears the window by recentering the text to be > above the window, preserving the scrollback text. I think 1) makes more sense, because C-l is pretty easily available, while deleting the buffer contents is a bit more work (since it has read-only text). But on the other hand... I can't really imagine anybody using /clear now, but perhaps this would be too surprising a change? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Aug 17 10:26:59 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31743: 27.0.50; [feature request] add command to ERC to erase scrollback text Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2019 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonathan Kyle Mitchell Cc: 31743@debbugs.gnu.org Received: via spool by 31743-submit@debbugs.gnu.org id=B31743.15718221539905 (code B ref 31743); Wed, 23 Oct 2019 09:16:02 +0000 Received: (at 31743) by debbugs.gnu.org; 23 Oct 2019 09:15:53 +0000 Received: from localhost ([127.0.0.1]:60835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNCkD-0002ZK-42 for submit@debbugs.gnu.org; Wed, 23 Oct 2019 05:15:53 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNCkB-0002Wf-7z for 31743@debbugs.gnu.org; Wed, 23 Oct 2019 05:15:51 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNCk5-00017z-DN; Wed, 23 Oct 2019 11:15:49 +0200 From: Lars Ingebrigtsen References: <871ryuy4v4.fsf@mouse.gnus.org> Date: Wed, 23 Oct 2019 11:15:45 +0200 In-Reply-To: <871ryuy4v4.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sat, 13 Jul 2019 05:45:35 +0200") Message-ID: <87pninkeke.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: >> A recent discussion[1] in help-gnu-emacs revealed that a user >> expected ERC's /CLEAR command (i.e. erc-cmd-CLEAR) to erase the buffer >> contents instead of just recentering the display. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: >> A recent discussion[1] in help-gnu-emacs revealed that a user >> expected ERC's /CLEAR command (i.e. erc-cmd-CLEAR) to erase the buffer >> contents instead of just recentering the display. [...] > I think 1) makes more sense, because C-l is pretty easily available, > while deleting the buffer contents is a bit more work (since it has > read-only text). > > But on the other hand... I can't really imagine anybody using /clear > now, but perhaps this would be too surprising a change? The doc string on the function says "Clear the window content", so I think recentering is an odd thing to do. So I've now changed it to delete the buffer contents instead. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 23 05:15:59 2019 Received: (at control) by debbugs.gnu.org; 23 Oct 2019 09:15:59 +0000 Received: from localhost ([127.0.0.1]:60838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNCkJ-0002gA-Gq for submit@debbugs.gnu.org; Wed, 23 Oct 2019 05:15:59 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNCkI-0002eK-74 for control@debbugs.gnu.org; Wed, 23 Oct 2019 05:15:58 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNCkC-000187-FN for control@debbugs.gnu.org; Wed, 23 Oct 2019 11:15:57 +0200 Date: Wed, 23 Oct 2019 11:15:52 +0200 Message-Id: <87o8y7kek7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #31743 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 31743 fixed close 31743 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 31743 fixed close 31743 27.1 quit