From unknown Fri Jun 20 18:23:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#43730 <43730@debbugs.gnu.org> To: bug#43730 <43730@debbugs.gnu.org> Subject: Status: 27.1; Running (visual-line-mode 1) twice Reply-To: bug#43730 <43730@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:23:04 +0000 retitle 43730 27.1; Running (visual-line-mode 1) twice reassign 43730 emacs submitter 43730 Miha Rihtar=C5=A1i=C4=8D severity 43730 normal tag 43730 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 30 17:14:48 2020 Received: (at submit) by debbugs.gnu.org; 30 Sep 2020 21:14:48 +0000 Received: from localhost ([127.0.0.1]:33286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNjR0-00081R-31 for submit@debbugs.gnu.org; Wed, 30 Sep 2020 17:14:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:60532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNhL8-00016W-Bk for submit@debbugs.gnu.org; Wed, 30 Sep 2020 15:00:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNhL7-0004LR-2B for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 15:00:33 -0400 Received: from mail.kamnitnik.top ([209.250.245.214]:35766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNhL5-0002vZ-DI for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 15:00:32 -0400 Received: from localhost (unknown [IPv6:2a00:ee2:e04:9300:b7eb:7ae7:cc56:e0da]) by mail.kamnitnik.top (Postfix) with ESMTPSA id F354E1FAF9 for ; Wed, 30 Sep 2020 19:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1601492426; bh=/mIaoeemxuupUQqtbABX3XGXNQK7kYXqVX7J0pp55fY=; h=From:To:Subject:Date:From; b=djrYNDD/GSW/hYHOaWjL7041uKXF07vuq4Vv0hk1CmF5PuVBCp5ay0Qr6GRyR7eLz Yb2fUvkWgcORZwDINo1uHaymLQL8lyn4OlWhw/zRiebPAOiolfMy4Brk231QD6czoi JnAOsdZBNI3adRro7Ozhbi27MhENNDnfDxIVQN/H8Tw+JRHjEQyxM520qyYSAKG7AO 0q/IXwoa90vP7h8w2hUwbAmPQ1oz48lTZlWgNRwbgL8Amr89IVXIs3hT8fbZ5u0ngX x19Wat37hLgREDlhOyr5db8eNVmJ7B/woqkpLdBMEphPIdHrh4i2TfENmD79pwepdH K3pBzTW+YtLUw== From: =?utf-8?Q?Miha_Rihtar=C5=A1i=C4=8D?= To: bug-gnu-emacs@gnu.org Subject: 27.1; Running (visual-line-mode 1) twice Date: Wed, 30 Sep 2020 21:02:39 +0200 Message-ID: <86eemjdr5c.fsf@miha-pc> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=209.250.245.214; envelope-from=miha@kamnitnik.top; helo=mail.kamnitnik.top X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/30 15:00:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.999, PDS_OTHER_BAD_TLD=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: Running (visual-line-mode 1) twice is inconsistent due to variable visual-line--saved-state being set twice. A real life example, producible with emacs -Q would be to run (setq-default truncate-lines t) (add-hook 'text-mode-hook 'visual-line-mode) (add-hook 'prog-mode-hook 'visual-line-mode) Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=miha%40kamnitnik.top; ip=209.51.188.17; r=debbugs.gnu.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 30 Sep 2020 17:14:45 -0400 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.9 (-) Running (visual-line-mode 1) twice is inconsistent due to variable visual-line--saved-state being set twice. A real life example, producible with emacs -Q would be to run (setq-default truncate-lines t) (add-hook 'text-mode-hook 'visual-line-mode) (add-hook 'prog-mode-hook 'visual-line-mode) and visit a buffer in mhtml-mode, which runs both text-mode-hook and prog-mode-hook. visual-line-mode sets the local value of truncate-lines to nil as expected but turning it off with M-x visual-line-mode fails to restore truncate-lines back to t, due to incorrect visual-line--saved-state. (My current work-around is to add (lambda () (unless visual-line-mode (visual-line-mode))) to the hooks.) Other minor modes relying on a '-saved-state' variable are possibly affected as well. A quick grep lead me to: refill-mode and cua-mode. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Arch Linux Recent messages: Indenting region...done Visual-Line mode disabled in current buffer Mark saved where search started Mark set Replaced 7 occurrences Mark set [3 times] Undo Mark set Comint exited abnormally with code 1 Auto-saving... Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int --with-modules --with-cairo --with-harfbuzz 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Memory information: ((conses 16 852933 497311) (symbols 48 45748 2) (strings 32 245922 68759) (string-bytes 1 7871697) (vectors 16 80403) (vector-slots 8 1800671 524204) (floats 8 724 2716) (intervals 56 43104 32951) (buffers 1000 27)) From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 30 22:15:59 2020 Received: (at 43730) by debbugs.gnu.org; 1 Oct 2020 02:15:59 +0000 Received: from localhost ([127.0.0.1]:33554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNo8V-0001Rz-AW for submit@debbugs.gnu.org; Wed, 30 Sep 2020 22:15:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNo8R-0001JM-RL for 43730@debbugs.gnu.org; Wed, 30 Sep 2020 22:15:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=jl9KeqiDMSQycYHl3n40DaXYBgh5L3SMLuZPEhoW2Wo=; b=QiZB1XsCjz/gyJg7uZ4iq37KZw lCF1ynKneVT74VPp6bxR2ODw4bz/XjmEe973/2NOeHBSqUWYuV7my4eah6lpZX5qncVEgk2rOcr7q 9jIpc3N22AiNe5j16uveWer2Zv9YcqXQcyN7gTTEw5/r6KWfualeFW7zLeBCWEm9hUGQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNo8H-0000n7-0c; Thu, 01 Oct 2020 04:15:48 +0200 From: Lars Ingebrigtsen To: Miha =?utf-8?B?UmlodGFyxaFpxI0=?= Subject: Re: bug#43730: 27.1; Running (visual-line-mode 1) twice References: <86eemjdr5c.fsf@miha-pc> X-Now-Playing: Seigen Ono's _Comme des =?utf-8?Q?Gar=C3=A7ons=5F=3A?= "All Men Are Heels" Date: Thu, 01 Oct 2020 04:15:43 +0200 In-Reply-To: <86eemjdr5c.fsf@miha-pc> ("Miha =?utf-8?B?UmlodGFyxaFpxI0i?= =?utf-8?B?J3M=?= message of "Wed, 30 Sep 2020 21:02:39 +0200") Message-ID: <878scqvghc.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Miha Rihtaršič writes: > Running (visual-line-mode 1) twice is inconsistent due to variable > visual-line--saved-state being set twice. > > A real life example, producible with emacs -Q would be to run > > (setq-default tru [...] 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: 43730 Cc: 43730@debbugs.gnu.org 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 (-) Miha Rihtar=C5=A1i=C4=8D writes: > Running (visual-line-mode 1) twice is inconsistent due to variable > visual-line--saved-state being set twice. > > A real life example, producible with emacs -Q would be to run > > (setq-default truncate-lines t) > (add-hook 'text-mode-hook 'visual-line-mode) > (add-hook 'prog-mode-hook 'visual-line-mode) > > and visit a buffer in mhtml-mode, which runs both text-mode-hook and > prog-mode-hook. > visual-line-mode sets the local value of truncate-lines to nil as > expected but turning it off with > M-x visual-line-mode > fails to restore truncate-lines back to t, due to incorrect > visual-line--saved-state. Thanks for the analysis. It seems to me that the way to fix this problem would be to do something general in define-minor-mode. It has always confused me that the resulting mode function starts like this: (defun ,modefun (&optional arg ,@extra-args) ,(easy-mmode--mode-docstring doc pretty-name keymap-sym) ;; Use `toggle' rather than (if ,mode 0 1) so that using ;; repeat-command still does the toggling correctly. (interactive (list (or current-prefix-arg 'toggle))) (let ((,last-message (current-message))) (,@setter (if (eq arg 'toggle) (not ,getter) ;; A nil argument also means ON now. (> (prefix-numeric-value arg) 0))) ,@body This means that all the modes basically have bodies that start like this: (if visual-line-mode (progn And the modes do not know whether the mode was already on, or whether we're switching it on now, because the only clue it has is the value of visual-line-mode, and that has just been set based on ARG. So. One really aggressive way to try to fix this would be for define-minor-mode to just not call the body at all if the value of the mode variable doesn't change. That is, the second call here would do absolutely nothing: (visual-line-mode 1) (visual-line-mode 1) I think that would be logical change, but... it's a pretty radical change? Who knows what it would affect? A much less invasive change would be to bind a variable in the defun there, like (let ((,previous-state ,modevar)) =20=20=20=20=20=20=20=20=20=20=20=20 and then modes like visual-line-mode could go (when (not (eq visual-line-mode previous-state)) (if visual-line-mode (progn Any opinions? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 30 22:27:55 2020 Received: (at 43730) by debbugs.gnu.org; 1 Oct 2020 02:27:55 +0000 Received: from localhost ([127.0.0.1]:33562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNoK2-0002wo-VD for submit@debbugs.gnu.org; Wed, 30 Sep 2020 22:27:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNoK1-0002wc-Jn for 43730@debbugs.gnu.org; Wed, 30 Sep 2020 22:27:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=o5zKl9tZAILXBdG+Y8MdhHYyMmsXcWkgjV10P1sAVbc=; b=oePE0aq2aLraKv4gqaQHTLCwiP uMYOITvKn2kGfAmPoD+MRgXZdQz57ERsW3aXBQv//AwLGpmoqKam6CQhXqvN6haYkEj1jRr3fG9EU OcV1G+08rSGjdB6NlfuGZKpVLUHzECgQ5G+1FEdicu8W970yRR4qUswWMPXtngfHHGaQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNoJq-0000t0-K3; Thu, 01 Oct 2020 04:27:46 +0200 From: Lars Ingebrigtsen To: Miha =?utf-8?B?UmlodGFyxaFpxI0=?= Subject: Re: bug#43730: 27.1; Running (visual-line-mode 1) twice References: <86eemjdr5c.fsf@miha-pc> <878scqvghc.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVbUkqbXysYFxep pqHt7Ob///8FC+zSAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QKAQIaKtsfa5MAAAGhSURBVDjLbZKB scMgCIYJZoDEtwAhHcALDtA73X+m92MaG9tyF6N+Ago/Tbyw8BRV5NANP1021olpmaYVthAGjX9x XWXBNFKctga2BtY2TusSaaUVPtsiYLqtErUtIsFUWQnfy2IbHWCLkFHa7DI6f8JBKZf0BUhpp2yW aATCyiFYBeABYCUhVcRiGkNhAodcjfUb5FoR6xswQLEk/AFEAMyM0gfQHfuFKNEnCAj0Xg0edugP gBS3gryAD496gv35BiyJ/U6thnPlN2Bj3AnJkaTWowMqZFYAcFcceHYQ+FHMkJzIAjz5AjPekIKZ 99Cf2T0eiGMhJy/YXrh1XxxIrTiPwoqRx2FxIBhnzw4Qyny98lQPDrS2ziXnyp24qNTwPMjEeh0b 2AFyA10K3GLthyIH3vBK4NpoStyLOLBy7M7oMt7btmXj1pIOqAF/CtkV5bTg2kShLIXEA0CBcE0C sDKCXFy0opTSHczevS7OERj9AnnwoBF0l/d2cuBa4M9QVk+7CxGOlutPcB0vPVSzTNdx9OgG5tqB hds+5PEbQOH/X5GQBz+oNKgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTAtMDFUMDI6MjY6NDIr MDA6MDDhaK87AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEwLTAxVDAyOjI2OjQyKzAwOjAwkDUX hwAAAABJRU5ErkJggg== X-Now-Playing: Seigen Ono's _Comme des =?utf-8?Q?Gar=C3=A7ons=5F=3A?= "Pessoa Quase Certa" Date: Thu, 01 Oct 2020 04:27:40 +0200 In-Reply-To: <878scqvghc.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 01 Oct 2020 04:15:43 +0200") Message-ID: <874knevfxf.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: > Any opinions? (And the least invasive change would just be to have visual-line-mode check visual-line--saved-state before doing anything, with the equivalent fixes in the other two modes.) 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: 43730 Cc: 43730@debbugs.gnu.org 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: > Any opinions? (And the least invasive change would just be to have visual-line-mode check visual-line--saved-state before doing anything, with the equivalent fixes in the other two modes.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 12:50:56 2020 Received: (at 43730) by debbugs.gnu.org; 1 Oct 2020 16:50:56 +0000 Received: from localhost ([127.0.0.1]:38109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO1nE-0007GG-BC for submit@debbugs.gnu.org; Thu, 01 Oct 2020 12:50:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:32808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO1nB-0007Fp-EH for 43730@debbugs.gnu.org; Thu, 01 Oct 2020 12:50:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=n7X3O/jrxnreb8rcmPW0J6Rf4oIun5uwhe6P7m2iXsE=; b=NzOM0RWADiTZvPQNm+EXPilUue LseJz9RwQOxPCx3br4pxlehi8VG5BB6LCmyd/hOi+FAEqePj8rterEcgVYsZGxfxCgX/a4Vm5fP9e dOK7F036y2zW5/tAcPuIunRdmRj4HfAuQY6x7LvTkNoKs2Dy1lEiAVzwgmn1gcD4um8Q=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO1mu-0000eV-4n; Thu, 01 Oct 2020 18:50:46 +0200 From: Lars Ingebrigtsen To: Miha =?utf-8?B?UmlodGFyxaFpxI0=?= Subject: Re: bug#43730: 27.1; Running (visual-line-mode 1) twice References: <86eemjdr5c.fsf@miha-pc> <878scqvghc.fsf@gnus.org> <874knevfxf.fsf@gnus.org> X-Now-Playing: Mutamassik's _Definitive Works_: "Consequently Yours" Date: Thu, 01 Oct 2020 18:50:34 +0200 In-Reply-To: <874knevfxf.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 01 Oct 2020 04:27:40 +0200") Message-ID: <87362xriud.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: > Lars Ingebrigtsen writes: > >> Any opinions? > > (And the least invasive change would just be to have visual-line-mode > check visual-line--saved-state before doing anything, with t [...] 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: 43730 Cc: 43730@debbugs.gnu.org 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: > Lars Ingebrigtsen writes: > >> Any opinions? > > (And the least invasive change would just be to have visual-line-mode > check visual-line--saved-state before doing anything, with the > equivalent fixes in the other two modes.) I've now done the latter in visual-line-mode and cua-mode. refill-mode seems to be doing this OK already. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 12:51:00 2020 Received: (at control) by debbugs.gnu.org; 1 Oct 2020 16:51:00 +0000 Received: from localhost ([127.0.0.1]:38114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO1nH-0007Gc-UW for submit@debbugs.gnu.org; Thu, 01 Oct 2020 12:51:00 -0400 Received: from quimby.gnus.org ([95.216.78.240]:32822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO1nG-0007Fy-Dp for control@debbugs.gnu.org; Thu, 01 Oct 2020 12:50:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hFMWtVZdnGTmN3SAtEvsla+6OfOrBNBxWcWyS7ODzCs=; b=AkutcNwZCkZfZbR5u9ivX+25WC qCLEdRs2yxeSwth+joNJNkrT/rt7YNL/z7rsMJ0TpGk8Vvz6liSCKdPk+zldVAF/SpgXOxkl0Futc tzgmO1vqn7MW6dkXcau3Oaqab4djBQgOfF8lTiiumpTnUd9otslNycTZL3Mi5x7grYWM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kO1n8-0000ec-MH for control@debbugs.gnu.org; Thu, 01 Oct 2020 18:50:52 +0200 Date: Thu, 01 Oct 2020 18:50:49 +0200 Message-Id: <871rihrity.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43730 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 43730 fixed close 43730 28.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 43730 fixed close 43730 28.1 quit From unknown Fri Jun 20 18:23:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 30 Oct 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator