From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#54718: 28.0.92; rcirc channel-vs-log buffer confusion Date: Mon, 04 Apr 2022 18:34:37 -0400 Message-ID: <877d84qxz6.fsf@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8312"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net To: 54718@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 05 00:35:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nbVHz-0001oK-47 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Apr 2022 00:35:11 +0200 Original-Received: from localhost ([::1]:43324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbVHx-0002dB-R2 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Apr 2022 18:35:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbVHq-0002cm-HP for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2022 18:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbVHq-00044O-8O for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2022 18:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nbVHq-0006UK-0g for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2022 18:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Apr 2022 22:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54718 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164911169224916 (code B ref -1); Mon, 04 Apr 2022 22:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Apr 2022 22:34:52 +0000 Original-Received: from localhost ([127.0.0.1]:53274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbVHf-0006Tn-Iv for submit@debbugs.gnu.org; Mon, 04 Apr 2022 18:34:52 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbVHc-0006Tb-Ex for submit@debbugs.gnu.org; Mon, 04 Apr 2022 18:34:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbVHc-0002P5-67 for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2022 18:34:48 -0400 Original-Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:56909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbVHY-00040M-H1 for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2022 18:34:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649111682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bFtDcU7zvp8RnvZLpwgsSVUGfPSUxDpak6yr2SWTwT0=; b=AeViFo9mndhuqYGehqHMrDyi6gOhA5/DOmaPqZM0jNPskHCICfIpMg3e6JVzTWcU5ewAX+ Pp1YW+Yg1U5iWoXPpcLAEghWbkWKJL4D814cZ/klNOijSJr1mCTwo+h06sIjGSb7XYX5to DlVyseUWJhP6nu4l+vo9Q9zwLxWQAWU= Original-Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-460-UG4pJbAmPbmHvCHWbl9gKQ-1; Mon, 04 Apr 2022 18:34:42 -0400 X-MC-Unique: UG4pJbAmPbmHvCHWbl9gKQ-1 Original-Received: by mail-qt1-f199.google.com with SMTP id e5-20020ac85985000000b002e217abd72fso7344897qte.9 for ; Mon, 04 Apr 2022 15:34:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+sPFoOsLKME7YEUqzK5ClGHTKeOWBB/f9K+RYYAfD5k=; b=Il5DCULY6k0NCQDwpJmjNd8jRzfITRRWYPQnP6oOG32doXzbND5JIjVyA2Vht/5mAh PmUAX0Ee6EELeWI3KGoB7RvDd8bJ0qH20/gxJeulpAsr5M+fa70DpOvZKmpJ7oRL+NmK BvCGvJm6aFVzP3wQ3lEaWWchly3PB/Azsv6GwlGIKcV8zFE/8hUV7vh6lePkJ2Y3dUwp jqqcvYBczUDsB1VCZqnnHoCOFeKeCeaVOjJxKY68b5K8gR4Bh/SePTM2Vricp12DeWQJ Peflx5tXmKvHO/bWkj1cTK931EzzFF1giriZhW/4bnzKMsr7zqwRWTnUUvsiW8cv8/xr zIBw== X-Gm-Message-State: AOAM533MkktczJfTAG3O223z6iPfhibcameCemBMov5VzHckWkt3dxF5 or6lfP/6l4TrXo2DsistqOLys4OxPYRi6XOqbCoc9gzGxTiRCStdFFsYYn6jA5B4L9/lAHZZlZ/ yHNfHOzu/6mY4f9w= X-Received: by 2002:ac8:58c3:0:b0:2e1:c58b:f757 with SMTP id u3-20020ac858c3000000b002e1c58bf757mr550837qta.676.1649111680947; Mon, 04 Apr 2022 15:34:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqLC2n125G2x/rJton1IJFRexpn24YSrvoLh6vF5+nAgP4Kf9a9dC+QOJprHYAfO5henxT9g== X-Received: by 2002:ac8:58c3:0:b0:2e1:c58b:f757 with SMTP id u3-20020ac858c3000000b002e1c58bf757mr550817qta.676.1649111680655; Mon, 04 Apr 2022 15:34:40 -0700 (PDT) Original-Received: from crash (c-24-60-138-149.hsd1.ma.comcast.net. [24.60.138.149]) by smtp.gmail.com with ESMTPSA id j12-20020ae9c20c000000b0067ec380b320sm7261847qkg.64.2022.04.04.15.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 15:34:39 -0700 (PDT) Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=raeburn@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=170.10.133.124; envelope-from=raeburn@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229424 Archived-At: =20 I=E2=80=99m using rcirc, and have logging turned on. When I started up=20 rcirc, I already had one of the log files=20 (~/.emacs.d/rcirc-log/#gnucash@irc.gnome.org) being viewed in a=20 buffer. That buffer, sensibly enough, was named=20 =E2=80=9C#gnucash@irc.gnome.org=E2=80=9D. Once rcirc connected to irc.gno= me.org,=20 and joined my channels, it looked for a buffer named=20 =E2=80=9C#gnucash@irc.gnome.org=E2=80=9D, assumed that that was its own buf= fer for=20 showing channel messages, switched it to rcirc mode, and started=20 adding to it. So now, the buffer starts off:=20 =20 2022-04-04T18:01:18 *** raeburn JOIN 2022-04-04T18:01:18 *** ChanServ MODE +v raeburn 2022-04-04T18:01:18 *** TOPIC Free GPL Personal and Small Business=20 Accounting=E2=80=A6 2022-04-04T18:01:18 *** NAMES =E2=80=A6 2021-11-01T13:49:16 *** sbluhm JOIN=20 2021-11-01T13:50:25 *** Mechtilde QUIT Ping timeout: 180 seconds 2021-11-01T14:10:13 *** jervin QUIT Quit: jervin There hasn=E2=80=99t been any new message traffic since I joined, but it ap= pears that if I use a command like C-c C-n, the NAMES output gets appended to the block at the beginning of the buffer. (I=E2=80=99m wary of trying to se= nd a message myself, as I=E2=80=99m not sure how much of the buffer will be take= n as my message in this weird state =E2=80=94 just the line I type, or everythin= g after the apparent insertion point?) I think I got into this state after restarting Emacs a couple of times today, because I had been looking at the #gnucash log in a buffer, and am using desktop save mode. The .emacs.desktop file doesn=E2=80=99t save t= he uniquified buffer name, apparently. (My current .emacs.desktop has two entries for buffers to be called =E2=80=9CworkQueue.c=E2=80=9D for files by= that name in different directories.) After the takeover of the buffer for use by rcirc mode, the buffer-file-name is still set, so that info can be saved away. This also resulted in a message logged at startup time =E2=80=94 the saved = info on the #gnucash buffer said it was in rcirc-mode, which causes rcirc-mode to be invoked in the =E2=80=9Crestored=E2=80=9D buffer with no a= rguments, but rcirc-mode requires exactly two arguments, unlike normal mode functions. Load the desktop file the first time, even if rcirc is running, and the saved desktop will add the file buffer to the buffers to restore. Quit, restart, and load the desktop file the second time, and the file buffer will be loaded before rcirc gets started, causing the buffer =E2=80=9Ctakeo= ver=E2=80=9D and resulting in a new desktop save file showing the log file buffer as being in rcirc-mode. Quit, restart, and load the desktop file a third time, and a message will be logged about an error trying to set the buffer mode. With the issues I=E2=80=99ve described before about not reliably getting ba= ck into channels when quitting and restarting, the simplest fix once I=E2=80= =99m in the situation seems to be quitting Emacs, starting up again, making sure any =E2=80=9Crestored=E2=80=9D rcirc log buffers are killed, then starting = rcirc. I can probably work around this by tweaking desktop-files-not-to-save so I don=E2=80=99t accidentally hit this when restarting Emacs, but (1) I do w= ant to be able to look at a log file and preserve my position in it from session to session, and (2) manually pulling up a log file before starting rcirc would still trigger the same lossage. In GNU Emacs 28.0.92 (build 1, x86_64-redhat-linux-gnu, X toolkit, cairo ve= rsion 1.17.4, Xaw3d scroll bars) of 2022-03-20 built on 5bed50ec23174a34b43f6166b598ee0b Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Fedora Linux 35 (Workstation Edition) Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dlucid --with-gpm=3Dno --with-modules --with-harfbuzz --with-cairo --with-json --with-native-compilation build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -= O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: rcirc Minor modes in effect: buffer-face-mode: t rcirc-track-minor-mode: t display-time-mode: t desktop-save-mode: t global-edit-server-edit-mode: t smart-quotes-mode: t which-function-mode: t icomplete-mode: t shell-dirtrack-mode: t global-hi-lock-mode: t hi-lock-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t use-hard-newlines: t tab-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t visual-line-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /home/raeburn/.emacs.d/elpa/systemtap-mode-20151122.1940/systemtap-mode hid= es /usr/share/emacs/site-lisp/systemtap-mode /home/raeburn/.emacs.d/elpa/p4-20150721.1937/p4 hides /usr/share/emacs/site= -lisp/perforce/p4 /home/raeburn/.emacs.d/elpa/transient-20211101.2251/transient hides /usr/sh= are/emacs/28.0.92/lisp/transient Features: (shadow sort mail-extr emacsbug sendmail shortdoc help-fns radix-tree gnutls network-stream nsm misearch multi-isearch cl-print ielm pp add-log markdown-mode reveal face-remap dired-aux python tramp-sh mule-util dockerfile-mode mhtml-mode css-mode color js sgml-mode facemenu ruby-mode texinfo texinfo-loaddefs rst compile perl-mode sh-script smie executable bug-reference conf-mode vc-git diff-mode vc-dispatcher cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs org-element avl-tree generator ol-eww eww xdg url-queue thingatpt mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe ol-docview doc-view jka-compr image-mode exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi yaml-mode ob-shell comp comp-cstr warnings cl-extra help-mode rcirc gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search mail-utils mm-util mail-prsvr wid-edit time desktop frameset cus-load kr-init docker-tramp tramp-cache vagrant-tramp dash tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time ls-lisp org-protocol org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 time-date ol org-keys oc org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs edit-server advice smart-quotes easy-mmode which-func imenu icomplete server term disp-table shell pcomplete ehelp comint ansi-color ring hi-lock finder-inf rx info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 601460 80132) (symbols 48 34155 0) (strings 32 136844 6717) (string-bytes 1 4343776) (vectors 16 66007) (vector-slots 8 1241450 56375) (floats 8 520 450) (intervals 56 11548 4504) (buffers 992 197))