Received: (at 77197) by debbugs.gnu.org; 23 Mar 2025 18:47:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 23 14:47:35 2025 Received: from localhost ([127.0.0.1]:52641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1twQMB-00047d-BQ for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 14:47:35 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:57605) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1twQM7-00047M-L1 for 77197 <at> debbugs.gnu.org; Sun, 23 Mar 2025 14:47:32 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e5e22e6ed2so5390679a12.3 for <77197 <at> debbugs.gnu.org>; Sun, 23 Mar 2025 11:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742755645; x=1743360445; darn=debbugs.gnu.org; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=EW3lJHuKJ/RGJgM22jf+eKxUf90qAhkLyDudQLN/zlc=; b=IBndIDddo2n0bp5zjPkQV6+iXmK1YTWKeNq7BS40b2jfT2sN+ux4xzuyLHu3CB/bjl 2a1T1FjUBs5EBmPYY+oqk0jte7sDy4u4Gw4nIKlO02wQiQqiDJR3SyMFY8213GurS0s7 fKpmwaUAyjImSl3uKFAhrWXandGAEQuS6oyFLW2GunskGertIinKtusCaIXoIIRcRSTc bQOrxI248d4ipicX9okHWV+T8NpWvXMbeOWM7on9KyKGolzbNtjNBczrUWQWZJXZoKzi 1Lg7pV+7+lFb0H3eJ7GQhgFo7sFpaCAfXrTyFGv8aLdlS6wIv8WLa610wdNitCvmyP6F lIIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742755645; x=1743360445; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EW3lJHuKJ/RGJgM22jf+eKxUf90qAhkLyDudQLN/zlc=; b=bMJL+UpXOHegx/33vMNXb1xzjGG81fm6DTVf712IWMUfYX12SzqZw20hULhBuwTB3X QkS0IkIE5OG8MaKY3VwoE+0TWOddOLJjfVXdB/CqYwqnkbb5cBHstNVLs5z66mKSsKey KXf3FSCCt/gW06j8o4z7/vIx6lPPByc4adRSDwlarepzAkoQRSkw8Bi8ba9oLX+3tuTG TLgkgJM7YeUTRVAh3kTyKTREcCCtKaKxIhtkTJ6yH6SA6MXJEbbO0AtNQERivu43el8y c2TfCbmQiBNMrKJw0rFTiyqMQ9pnRCw04saa7zYGKHgnnEMC+K2krVQwSzy7JjHg+fGY R/8w== X-Forwarded-Encrypted: i=1; AJvYcCUyzezZLRyLDaSEIjQ2rptOZbT+sIzB0UtEI5/P3XIFHNdh/N29sWKGrBkE1g13DGEpUX4sJw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzNlpBepcypdyIXP7WkGrU0q1BsqOcte76u5UNa3yKSg4um2ZMj xOk8X/Oq0iqpiuOQucg+eoGzFAefugoc2oSepXWYVU82lsbuwvPx X-Gm-Gg: ASbGncugdgpRU5wTfm4S8Vde0ansRgZzaWhFXCnGXJy+Y9uHsZnw/Z1GsMgkLPIXYJh ORTNpJN4Rbq5RcwmebYgv7vo0JAp6RZO8IdYVaMYryRSvss1fE/kaWxAi+u7W1bMV1f/lZeLKzB IuamN5FZBnl7xHIgLH7bj/fpDveFupS0IR5+NFcQVWWdhhzQyU70334I4Bv+5iHrifUjrTrG7Fu 4edO2X08TMC2FjEUIfnNLyHUXrUbtBbIqyn6lI9/rHOcxQAKkf4mURmdXOeRAQvybr34kYLaCvJ UX6Tgvrwp7a1PUqtP7Mj3KSyFFMW4B198mNdwcEnEpJfjHrGZnjbCOAYPQOJ+JJ0oiTvuSV4WRI TO8lJSlCYo23/n3gqNPs5 X-Google-Smtp-Source: AGHT+IFz6JGLYF0tJEkw+4rbojNf1uOWtV+mdhdA90uYwTCDnF1Dy05OA+Y+KnMN0jp2f8+/yVtfUw== X-Received: by 2002:a17:907:bb4c:b0:abf:4b6e:e107 with SMTP id a640c23a62f3a-ac3f224dd94mr1048514666b.25.1742755644781; Sun, 23 Mar 2025 11:47:24 -0700 (PDT) Received: from localhost (0x573d6713.static.cust.fastspeed.dk. [87.61.103.19]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac3ef869fd6sm549201366b.19.2025.03.23.11.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Mar 2025 11:47:24 -0700 (PDT) From: "Paul D. Nelson" <ultrono@HIDDEN> To: Stefan Monnier <monnier@HIDDEN> Subject: Re: bug#77197: 31.0.50; forward-word fails after yanking into summary line of *vc-log* In-Reply-To: <jwv4izjsljz.fsf-monnier+emacs@HIDDEN> (message from Stefan Monnier on Sun, 23 Mar 2025 13:39:54 -0400) Date: Sun, 23 Mar 2025 19:47:23 +0100 Message-ID: <uxsg7tbjtrlh38.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77197 Cc: eliz@HIDDEN, 77197 <at> debbugs.gnu.org, larsi@HIDDEN, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Thanks, Eli and Stefan. Just writing to confirm that removing the line (cl-pushnew 'rear-nonsticky font-lock-extra-managed-props) addresses the issue on my end (if suboptimally in the rare cases Stefan alludes to). Paul
bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.Received: (at 77197) by debbugs.gnu.org; 23 Mar 2025 17:40:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 23 13:40:15 2025 Received: from localhost ([127.0.0.1]:52451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1twPJ0-0006Au-K3 for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 13:40:14 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52306) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1twPIw-000666-UQ for 77197 <at> debbugs.gnu.org; Sun, 23 Mar 2025 13:40:11 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8965B8056D; Sun, 23 Mar 2025 13:40:03 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1742751597; bh=ASVpQifgb6Mgk8jjSmJtHsLNaJ/9x3AeawqOZhDwlkM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iTCTu68b8wUJXyN3wK1w6DAoKOWpd8SsBFq2UpfvDUuMG6qpa5mn+f3C5aE0dBswW OvbepnkdJirMBJ42I9ArgkO/GlA/OTZswlldCz8erWsbqyZPUbBgsNRN3FXclII3xi 0rFYIaYKW5DW26l8kyeUzsZ9UnEnMrZe/ro/bcxRJqci9npqmVsIyUITXqukFbNnFB hM+Id9kPT4Z1DdOMIGMjmx2nO+8cw0LoBmjCUZXNrTZdiS5xyjSOniQAVelhg+LLX0 BtZywTWXVyataRweNYyV1/TLUYqeEjdQv+1agHEQzmV9yyAkeygiH/y2TePudc2qzz rq3u9kbsElewA== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id EBC39804E6; Sun, 23 Mar 2025 13:39:56 -0400 (EDT) Received: from pastel (unknown [104.247.242.5]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B257412060B; Sun, 23 Mar 2025 13:39:56 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#77197: 31.0.50; forward-word fails after yanking into summary line of *vc-log* In-Reply-To: <86jz8fg36r.fsf@HIDDEN> Message-ID: <jwv4izjsljz.fsf-monnier+emacs@HIDDEN> References: <uxsg7twmcf3huj.fsf@HIDDEN> <86jz8fg36r.fsf@HIDDEN> Date: Sun, 23 Mar 2025 13:39:54 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.357 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77197 Cc: larsi@HIDDEN, spwhitton@HIDDEN, 77197 <at> debbugs.gnu.org, "Paul D. Nelson" <ultrono@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > The change Lars made, where he added the 'field' and 'rear-nonsticky' > properties, was _after_ the addition by Stefan of 'rear-nonsticky' to > font-lock-extra-managed-props, so perhaps Lars was unaware that > font-lock will remove the property right away? > > Stefan, any suggestions for how to fix this? The use of `font-lock-extra-managed-props` is a crude hack to try and make sure the property doesn't remain when the separator line becomes something else. This is somewhat important for `display-line-numbers-disable` but much less so for `rear-nonsticky`. The simplest solution is probably to just remove that `cl-pushnew` altogether: the risk of the `rear-nonsticky` text-property causing problems because it lingered where it shouldn't have is vanishingly small, especially compared to the very concrete problem at hand. If we want to be super extra careful, then one solution is to add extra code that looks for the `display-line-numbers-disable` property and removes the `rear-nonsticky` property on the character(s) that have it. Stefan
bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.Received: (at 77197) by debbugs.gnu.org; 23 Mar 2025 15:46:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 23 11:46:56 2025 Received: from localhost ([127.0.0.1]:52139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1twNXK-0001Kn-3d for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 11:46:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52062) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1twNXD-0001Iu-EM for 77197 <at> debbugs.gnu.org; Sun, 23 Mar 2025 11:46:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1twNX6-0007mB-4y; Sun, 23 Mar 2025 11:46:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=EOHGNPIN9tWI/N1wjQbwBnJaAMpo29S67cWe0YzSiqM=; b=bUgWp/nPBwz6Yot1FM6o 8kz1bbs67nUKb/hHzVMGQJUkMGigX06gor6qPxy+17zgrEzPDGywTr5VJG2tDaE2G8wUXmjtp4OSm +v8L0K+S+a3q7Zv73Kh0X4YeILXVcOT+NhHMJesSjQHdiS2MeLTXcYeigo6tnj3CDW5ugOAq7TBZH 0lDVWmjVbjMdR5Y0S/Xf8JFMtRGyfqBNs5OMOKsnkt+9xtxkO5urlECwO2MFkNcwkLJ3Vb6xnOAow LIRA6IkXemTOW39NiiUtiUPyzMggnuA7li7tBgfuQMLShROV2VaKLWg9YOZMJzBZogF4tVpxJUWFA 6az59IX/r+CK1g==; Date: Sun, 23 Mar 2025 17:46:36 +0200 Message-Id: <86jz8fg36r.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: "Paul D. Nelson" <ultrono@HIDDEN>, Stefan Monnier <monnier@HIDDEN> In-Reply-To: <uxsg7twmcf3huj.fsf@HIDDEN> (ultrono@HIDDEN) Subject: Re: bug#77197: 31.0.50; forward-word fails after yanking into summary line of *vc-log* References: <uxsg7twmcf3huj.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77197 Cc: larsi@HIDDEN, 77197 <at> debbugs.gnu.org, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: "Paul D. Nelson" <ultrono@HIDDEN> > Cc: spwhitton@HIDDEN, larsi@HIDDEN, 77197 <at> debbugs.gnu.org > Date: Sun, 23 Mar 2025 16:08:20 +0100 > > The issue seems to concern the function > > (defun log-edit--make-header-line (header &optional value) > ;; Make \\`C-a' work like it does in other buffers with header names. > (concat (propertize (concat header ": ") > 'field 'header > 'rear-nonsticky t) > value > "\n")) > > The relevant commit 2f3cf7ffe3c9ce986caf6d093b880fed6046b7ec reads: > > * lisp/vc/log-edit.el (log-edit-insert-message-template): Fieldify > headers so that `C-a' takes us to the start of the string, not the > line (bug#15645). > > I took "start of the string" to mean before "text" in "Summary: text". > > It's possible that I have misunderstood and that the intent was actually > to make the full header line "Subject: text" a field, with the field > boundary serving to divide the header of the email from the body, but > this seems contrary to my reading of the commit message. > > Assuming that I haven't misunderstood: > > If I do C-x v v and type "text", then the field boundary comes after > "text" rather than after "Summary: ". This seems at odds with the > advertised behavior, which suggested that it should introduce a field > boundary after "Summary :". > > In more detail, after C-x v v: > > 1. With point after "Summary: ", the text properties at point (C-u C-x =) > do not contain the header field. > > 2. With point after "Summary:", the properties contain the header field. > > 3. If I type a character after "Summary: " and do backward-char, then > the properties at point contain the header field. > > This behavior seem contrary to what is expected with rear-nonsticky: > > Insertion after a character inherits those of its properties that are > “rear-sticky”. > > So as far as I can tell, rear-nonsticky text properties are being > propagated when they shouldn't, resulting in the full header line being > a single field (which then gets broken up when we yank). If you look at what "C-u C-x =" reports, you will see that the rear-nonsticky property is missing. This is because log-edit-mode does this: (define-derived-mode log-edit-mode text-mode "Log-Edit" "Major mode for editing version-control (VC) commit log messages. When done editing the log entry, type \\[log-edit-done], which will trigger the actual commit of the file(s). Several other handy support commands are provided, and the package from which this is used might also provide additional commands (under the \\[vc-prefix-map] prefix for VC commands, for example). \\{log-edit-mode-map}" (setq-local font-lock-defaults '(log-edit-font-lock-keywords t)) (make-local-variable 'font-lock-extra-managed-props) (cl-pushnew 'rear-nonsticky font-lock-extra-managed-props) <<<<<<<<<<<<<<<< (cl-pushnew 'display-line-numbers-disable font-lock-extra-managed-props) The change Lars made, where he added the 'field' and 'rear-nonsticky' properties, was _after_ the addition by Stefan of 'rear-nonsticky' to font-lock-extra-managed-props, so perhaps Lars was unaware that font-lock will remove the property right away? Stefan, any suggestions for how to fix this?
bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.Received: (at 77197) by debbugs.gnu.org; 23 Mar 2025 15:08:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 23 11:08:33 2025 Received: from localhost ([127.0.0.1]:52032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1twMwD-0003eS-1O for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 11:08:33 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:44208) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1twMw8-0003dK-8p for 77197 <at> debbugs.gnu.org; Sun, 23 Mar 2025 11:08:31 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-ac3eb3fdd2eso519267566b.0 for <77197 <at> debbugs.gnu.org>; Sun, 23 Mar 2025 08:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742742502; x=1743347302; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/ubQJ5k0YVzu0n+Hg3dfZs5X7yaoA071NPaHxUncgWc=; b=RfWCdIvXiOc7Ynz4rcoa32K8xHMv5xa6+w3fByWpfzAdxQtaPWz6GdxosHPKNXtA4z 3yxHm92ryR63OyN+iKytthmvyQlPmvtPATp9ZnSmx7bwsAM++DKBHPvdlnW5v2f8IBjp DNUuH/st+rK6/3L6sbZYQZWCASpfcq8ytPvkrNlmXUD8BoY4ldRPNYlHr7p6J1yCQlYW NcFIQIJ+iycuNpI+/AQbGfpVtTDw7/Plt0FlesUZxVNZTl3AA06aY0z2iZ8hpMZ99Fqq uzcySlkxU1fbzKaLiUIuIE5GMsKKgg4iSV057+VBQ1gbsKmqv6DvvUFY+U0l5Vdno0W1 iT2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742742502; x=1743347302; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/ubQJ5k0YVzu0n+Hg3dfZs5X7yaoA071NPaHxUncgWc=; b=IKkTtvd1BtBE3Pswei8lkoU0O52WrU6uZd1cDDvMsYnL42nwZ0QmssAtSsgA2iF8kS ynClxxBZeXeaVVS723ZR5wKK6RzsQl9ACnmLCdumk0wB9wS0UVw9wgxe4yVtAIiwQSMo ILM9pIJ0t8r7CgVNGapdV/EDdq4cnkmj/4nf9UTwsd6625Z9KOGPMCgcWRuxQkrgv+Vo oe7SzkZwC1JL0l+SZpCbNYzp9aZvZi5zhvCUjMNzKHDZDsaqmn/C03PsNhQ4SDEsNXwt 9JQva3gA/rQOSDyivATcpgrUBiPwa2ceiCrG+5tMsfagGhQNeckoqPoE1G3ef6He06ru 5LbQ== X-Forwarded-Encrypted: i=1; AJvYcCU2zYXtrEn2a2qwMq/xMIKGEZz2EfTB4BiYunOZ5wwVkqZTAf1Xx+AEuIQClj8bSiDt0MF0LQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxPI3NkRhRpM5clle4Ge/ZJXTW6ydmmeE+Iz3SV/PZAOfU5B+op Ydh+/VILuyppnKdVdAYghNPZsPZg+sE5JGoLyF284RQsx2QaD8Pn X-Gm-Gg: ASbGnctIJTuwCMJzk/4A/0l5c5QFOqkWcpCemjXEydAAvhjLeho0S/2iTen54WcXab3 ++H+p4XBiRkii24SMQeLaEi2Apl1xC0+N6zIeBqWov0/gdS+ckTMruxQSmbSwtpkLGsM6BCYFK1 aLlblCFEn+B7NGsper2L0Yt5lBWFVS9XGw2E+ic3jbje+vE3DqDDsKh87W/T4ZJ8HP1LFH+KNlP 96BU6n8GOJ2jHTsxajYcxDwP4BmuFKgZjAutUV3vpDp0iOHEdbCr1vTI2JqJnwZbLFXa2imfgLb b4wRxo2qF487mpv51FxgOJgUM+aY1/BTxMIRmbR5ER9gcE1XZgO/NIVMBxeAIqnYzinHMTn2P/z sVFyXOHDThA== X-Google-Smtp-Source: AGHT+IHVjYRKXjoiEm/N/RLJcd7yAQ4kLSo39Oh3FJozWrABS8+0H+DK6t122Qsc9Jrpl3pXRJqomA== X-Received: by 2002:a17:907:6ea8:b0:ac3:bdd2:e709 with SMTP id a640c23a62f3a-ac3f21016b4mr1003780766b.11.1742742501740; Sun, 23 Mar 2025 08:08:21 -0700 (PDT) Received: from localhost (0x573d6713.static.cust.fastspeed.dk. [87.61.103.19]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac3efbde5ecsm517460966b.131.2025.03.23.08.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Mar 2025 08:08:21 -0700 (PDT) From: "Paul D. Nelson" <ultrono@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#77197: 31.0.50; forward-word fails after yanking into summary line of *vc-log* In-Reply-To: <86r02ng8aq.fsf@HIDDEN> (message from Eli Zaretskii on Sun, 23 Mar 2025 15:56:13 +0200) Date: Sun, 23 Mar 2025 16:08:20 +0100 Message-ID: <uxsg7twmcf3huj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77197 Cc: larsi@HIDDEN, 77197 <at> debbugs.gnu.org, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) The issue seems to concern the function (defun log-edit--make-header-line (header &optional value) ;; Make \\`C-a' work like it does in other buffers with header names. (concat (propertize (concat header ": ") 'field 'header 'rear-nonsticky t) value "\n")) The relevant commit 2f3cf7ffe3c9ce986caf6d093b880fed6046b7ec reads: * lisp/vc/log-edit.el (log-edit-insert-message-template): Fieldify headers so that `C-a' takes us to the start of the string, not the line (bug#15645). I took "start of the string" to mean before "text" in "Summary: text". It's possible that I have misunderstood and that the intent was actually to make the full header line "Subject: text" a field, with the field boundary serving to divide the header of the email from the body, but this seems contrary to my reading of the commit message. Assuming that I haven't misunderstood: If I do C-x v v and type "text", then the field boundary comes after "text" rather than after "Summary: ". This seems at odds with the advertised behavior, which suggested that it should introduce a field boundary after "Summary :". In more detail, after C-x v v: 1. With point after "Summary: ", the text properties at point (C-u C-x =3D) do not contain the header field. 2. With point after "Summary:", the properties contain the header field. 3. If I type a character after "Summary: " and do backward-char, then the properties at point contain the header field. This behavior seem contrary to what is expected with rear-nonsticky: Insertion after a character inherits those of its properties that are =E2=80=9Crear-sticky=E2=80=9D. So as far as I can tell, rear-nonsticky text properties are being propagated when they shouldn't, resulting in the full header line being a single field (which then gets broken up when we yank).
bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.Received: (at 77197) by debbugs.gnu.org; 23 Mar 2025 13:56:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 23 09:56:27 2025 Received: from localhost ([127.0.0.1]:48885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1twLoP-0008Nw-Tw for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 09:56:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46454) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1twLoN-0008JS-8B for 77197 <at> debbugs.gnu.org; Sun, 23 Mar 2025 09:56:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1twLoH-0002Rh-5E; Sun, 23 Mar 2025 09:56:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=E5XtH9NxhVXyybSVkgqJMVqsk2kbLaCWmJSssJoqG74=; b=qzICGd2zfBSI /2Tg+ZKrwVfFeoLLHSJsPC+19cuHokVNAglx9cSKw3VDJiwzBPUBocbY9sT05dO3ffi9qEIRte9BM 2flVRgUcGYFgUNZPcvT3lPDoBk4PUGZ9uLkKmUi1pJyRH1Vxm9aLN1F/Yl8Bno4nP7y5durbfeAeI vbfDU5olWVzDHCGQ69pHY1DGqUqr+QeuEC/0tDgF7kPisDnf0KPANctvoloO8qBZvfVFjKNtXLIbW O4hvRJ7w1KHQUz90aaWQ8igGRD8OxJodY46xK0U0TbgcY9u8Y1920+Xt0A7Lny2xx5tDd5iZkdAeP Zm4/CGtHw0VkQ/SisykuXw==; Date: Sun, 23 Mar 2025 15:56:13 +0200 Message-Id: <86r02ng8aq.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: "Paul D. Nelson" <ultrono@HIDDEN> In-Reply-To: <uxsg7tzfhb3n80.fsf@HIDDEN> (ultrono@HIDDEN) Subject: Re: bug#77197: 31.0.50; forward-word fails after yanking into summary line of *vc-log* References: <uxsg7tr02o4kdt.fsf@HIDDEN> <uxsg7tzfhb3n80.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77197 Cc: larsi@HIDDEN, 77197 <at> debbugs.gnu.org, spwhitton@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 77197 <at> debbugs.gnu.org > From: "Paul D. Nelson" <ultrono@HIDDEN> > Date: Sun, 23 Mar 2025 14:12:15 +0100 > > The issue starts at 2f3cf7ffe3c9ce986caf6d093b880fed6046b7ec, whose > purpose (bug#15645) was to have C-a take us to the start of the field > rather than the the start of the line. Reverting log-edit.el to any > prior commit resolves the issue. > > The issue is that after inserting the headers with > > (propertize (concat header ": ") > 'field 'header > 'rear-nonsticky t) > > any typed text inherits the (field header) property, but yanked or > inserted text does not, introducing a field boundary that obstructs > forward-word. > > Removing these properties like in the patch below addresses the issue, > but I'll confess that I don't understand why these properties were > introduced; I hope someone that does can analyze further. The intent seems clear: to prevent people from inadvertently moving into the header part and modifying it. If that was clear, and you still don't understand why the change was done, please ask specific questions, or maybe I'm missing something here. So maybe the problem is that yanked text should be processed specially so as not to introduce a field boundary. > Indeed, I > haven't been able to reproduce bug#15645 after evaluating older versions > of log-edit.el, so maybe something relevant outside of log-edit.el has > changed in the mean time, but C-a is bound to > log-edit-beginning-of-line, which is a light wrapper around > message-beginning-of-line, which has had the "beginning of header" > feature since many years before bug#15645, so maybe I missed something. C-a is just one way of moving the cursor; there are others. Having a field there stops many movement commands. So I think removing the field property is not the best option here. Instead, we should add to the existing code whatever is necessary to prevent the situations such as the one which started this bug report, without getting rid of the field property itself. Thanks.
bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.Received: (at 77197) by debbugs.gnu.org; 23 Mar 2025 13:12:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 23 09:12:35 2025 Received: from localhost ([127.0.0.1]:48200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1twL7x-0001UX-I8 for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 09:12:35 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:48260) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1twL7p-0001Sv-Fv for 77197 <at> debbugs.gnu.org; Sun, 23 Mar 2025 09:12:30 -0400 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5e5cded3e2eso4937841a12.0 for <77197 <at> debbugs.gnu.org>; Sun, 23 Mar 2025 06:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742735539; x=1743340339; darn=debbugs.gnu.org; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=ZkN6SHHEJZ8ejioKstk4mI5jSE8tUucR2SRG065wr5w=; b=ADcFZh59lXVDzyCCNGlHjjby6jc+OL1sLo1Fi0XJSVawC6aJ9Y70PN75phNu6Xm6bd +5usxV/AszNdWCpUUHxFkCwVY9C4bnFZbh8nNggz9CR/T+chg1S5sRuE/3JTHLH+n6Hp 7gZL6perxshZZ59WG9QO3yDvT1p1IhchjBxIItSN8o18gxlXmgQ9QyuKwawx4pGJ+IWy cYXH3rY+6XOMCPkkivdRLze7n5CTb5tzbKqrZ7xeXBog9djpeH58FTUz+TOMGsIPY5gY GnWgjoZ6qrI5/jkuiHqiKw8/VpwWmOm/wm5RIv6szeaPmzoSYXOK77amq4bmaDUGRqlx Q5Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742735539; x=1743340339; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZkN6SHHEJZ8ejioKstk4mI5jSE8tUucR2SRG065wr5w=; b=oKRerrkfNFMQfjVIVQWS1T+oLkNkfXTte5hM1aCR1rUpCrnQq/2JTEc3SYBsh357Al TO1DxLR02AXDtlAncjh78FSMidilTBfR8pKHdEuDyECtJ7CsTcRyogna1lVA1BFl0Tg7 Uo3JumgLNUcYgmE2MJFAiWVcYghQj7AxuV2iGOXgZkTQzvHrSTWaZkN4DwTH3geIFPJ1 /ZhT0MkCoaF7YbJ+3wjKKXBtgF/yI0Ls9yUgfOOv7rXqENUNngjnS9PGtOfyxqc3TyYx MgDbJOaoqpF9UJTBYU1CXfXDSrXm7J6+4eIqxw3zzeXTIylAKuR5DPmxZ8b3HeWu4oHA SkYg== X-Gm-Message-State: AOJu0Yw6LkumJxZd+aumViK41IAGLrQL5UaRvk1ZzeW9YkAjjMx1y2x2 EACQOQrDQvAO4/5229wJVTzYJuPk2PVscfSRY6mb0Gvxky7fQfiF X-Gm-Gg: ASbGncsgs610hK5ZWrvmBkwTBce7eJwzRuGc4gIUWx3UBo14Lj1IXPMSN4KqC2GLy0C bjyhR0f9IDJzdjCD3IBb4nc5NsQ5AAKZI/AqoEulhQ+9vbAmH/PgS2ISjVi6uR8zKJfc4g708Ik 18iL69y4nn46bxRgvoXcEQyUn7UzmrBvUO+AltfDKImU3Miih+VcaiETSzT4KUI6hxTim0vHSHY dekJWjJMsOF9G9yu2a9lBfpdjcLXPsZ//BC2bkqv1Dqiy5247IGeJSVpmMOSNZ1F9zRq72vsYlo mRhs/kwwQ4QwF6igw7sxocPj5bd7lW/W9jHZbtvLVHHweQQwSPlhEFB7/KbzVIVhG41JFuk8eOA L3biB/24Weg== X-Google-Smtp-Source: AGHT+IHM/Mo0H0NO+RmtXM1Kue31ogTDcrhiI2LOLXHS9ZKsO86YN0EG6ShVNQTjm33mav8cT1TKQw== X-Received: by 2002:a17:907:2ce6:b0:ac2:c41b:f32b with SMTP id a640c23a62f3a-ac3f229960dmr943810366b.28.1742735538373; Sun, 23 Mar 2025 06:12:18 -0700 (PDT) Received: from localhost (0x573d6713.static.cust.fastspeed.dk. [87.61.103.19]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac3ef8e511dsm512488666b.64.2025.03.23.06.12.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Mar 2025 06:12:17 -0700 (PDT) From: "Paul D. Nelson" <ultrono@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> Subject: Re: bug#77197: 31.0.50; forward-word fails after yanking into summary line of *vc-log* In-Reply-To: <87msdcs6zy.fsf@HIDDEN> (message from Sean Whitton on Sun, 23 Mar 2025 12:31:13 +0800) Date: Sun, 23 Mar 2025 14:12:15 +0100 Message-ID: <uxsg7tzfhb3n80.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77197 Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 77197 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain > I've been running into this lately too. I intend to look into it, > though any further investigation from you would be much appreciated. The issue starts at 2f3cf7ffe3c9ce986caf6d093b880fed6046b7ec, whose purpose (bug#15645) was to have C-a take us to the start of the field rather than the the start of the line. Reverting log-edit.el to any prior commit resolves the issue. The issue is that after inserting the headers with (propertize (concat header ": ") 'field 'header 'rear-nonsticky t) any typed text inherits the (field header) property, but yanked or inserted text does not, introducing a field boundary that obstructs forward-word. Removing these properties like in the patch below addresses the issue, but I'll confess that I don't understand why these properties were introduced; I hope someone that does can analyze further. Indeed, I haven't been able to reproduce bug#15645 after evaluating older versions of log-edit.el, so maybe something relevant outside of log-edit.el has changed in the mean time, but C-a is bound to log-edit-beginning-of-line, which is a light wrapper around message-beginning-of-line, which has had the "beginning of header" feature since many years before bug#15645, so maybe I missed something. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el index e23e7414a18..e674f56f1e1 100644 --- a/lisp/vc/log-edit.el +++ b/lisp/vc/log-edit.el @@ -896,9 +896,7 @@ log-edit-empty-buffer-p (defun log-edit--make-header-line (header &optional value) ;; Make \\`C-a' work like it does in other buffers with header names. - (concat (propertize (concat header ": ") - 'field 'header - 'rear-nonsticky t) + (concat (concat header ": ") value "\n")) --=-=-=--
bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.Received: (at 77197) by debbugs.gnu.org; 23 Mar 2025 07:59:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 23 03:59:32 2025 Received: from localhost ([127.0.0.1]:47502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1twGF0-0000TP-3s for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 03:59:31 -0400 Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]:51169) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1twGEv-0000Rg-Am for 77197 <at> debbugs.gnu.org; Sun, 23 Mar 2025 03:59:27 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 34B65443D1; Sun, 23 Mar 2025 07:59:14 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Sean Whitton <spwhitton@HIDDEN> Subject: Re: bug#77197: 31.0.50; forward-word fails after yanking into summary line of *vc-log* In-Reply-To: <87msdcs6zy.fsf@HIDDEN> Organization: LINKOV.NET References: <uxsg7tr02o4kdt.fsf@HIDDEN> <87msdcs6zy.fsf@HIDDEN> Date: Sun, 23 Mar 2025 09:55:44 +0200 Message-ID: <87jz8gji4f.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduheeifeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepfedprhgtphhtthhopeejjeduleejseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepuhhlthhrohhnohesghhmrghilhdrtghomhdprhgtphhtthhopehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 77197 Cc: 77197 <at> debbugs.gnu.org, Paul Nelson <ultrono@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >> If we yank text into the summary line of a *vc-log* buffer, then with >> point at beginning of line, forward-word fails. >> >> To reproduce, use vc-next-action (C-x v v) to arrive at a *vc-log* >> buffer. With point after "Summary:", evaluate >> >> (progn >> (insert "text") >> (log-edit-beginning-of-line) >> (forward-word)) >> >> This leaves point before "text". It should instead be after. >> >> There is no issue if we manually type "text". > > I've been running into this lately too. I intend to look into it, > though any further investigation from you would be much appreciated. I run Emacs with the enabled option 'backtrace-on-redisplay-error', so I see such backtrace in *vc-log* buffers: Error: end-of-buffer nil font-lock-fontify-keywords-region(1 10 nil) font-lock-default-fontify-region(1 10 nil) font-lock-fontify-region(1 10) #f(compiled-function (fun) #<bytecode ...>)(font-lock-fontify-region) run-hook-wrapped(#f(compiled-function (fun) #<bytecode ...>) font-lock-fontify-region) jit-lock--run-functions(1 10) jit-lock-fontify-now(1 10) jit-lock-function(1) redisplay_internal\ \(C\ function\)()
bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.Received: (at 77197) by debbugs.gnu.org; 23 Mar 2025 04:31:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 23 00:31:28 2025 Received: from localhost ([127.0.0.1]:46835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1twCzf-0001H2-3e for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 00:31:28 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:55840) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>) id 1twCzc-0001Fp-GM for 77197 <at> debbugs.gnu.org; Sun, 23 Mar 2025 00:31:25 -0400 DKIM-Signature: a=rsa-sha256; b=LC2DnuKiHARydfYIjnlWMliB4ghOdxYn0ENxzL+kcDjktBEzWi+cjczkGASAOw4EGe1xE0fs7IVOw7wSysIlv/iOQX2ETob3YjciN2Bbc8R5pz3XiMA9IgO3GdIN3FfA6RIDm0slk48Y74ttSv26K3bwvn5cWyTIqnVIlaUb0Jz3FQIu8S/zYdQs8bwgmW3OmkTaQRlEzfZvm1tpHJQ1OHYUsj04zOqQ8evEM4hrT+WquNqOKDx6S32wYRRrg4XN00PNWgOPz0i9wzTYN1qd1Jkh8iBGhrgXB+jKh1BLcJDh5UIQrXJR54UDvoxWbR9LaHjn+/fs3C20cCgr0WTiVg==; s=purelymail2; d=spwhitton.name; v=1; bh=JYPEukywQrBnvydAOKPUTa7rhWfVgJP4xZlQ+lcLGiQ=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=UXJR53r/d74jhsNxUBnbFcPUOuAbZCKvQbqTpLWRAj3smtrkC7DJPpMDFQ5PC6qYODxK9fmuKNzxZfDYHQh9KmD/q+2R9pV/usUWswQmdVCaQPuQUMo+lMnjqiLUl3zU6pMY2F7rcJcrLpU9PLtDg+nqZibPW7lCDKAjHDZJnbzZElt2eqecxMHTFGuxg+LLZxmYUteIcRMqpOYhvko08/Q4b84L2hf7ecd5w9Nz3YmueJ322pORtcAgZL362K71nwLKAiVnxqyKwQ2p36Tu4ajcux382NBSxVPwHsSFT6m616VD7qdhJrLiJP09C6KSpSnkTNnblr5HkHYLfqysxA==; s=purelymail2; d=purelymail.com; v=1; bh=JYPEukywQrBnvydAOKPUTa7rhWfVgJP4xZlQ+lcLGiQ=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 77197 <at> debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -717965466; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 23 Mar 2025 04:31:16 +0000 (UTC) Received: by melete.silentflame.com (Postfix, from userid 1000) id 68A4E7E41ED; Sun, 23 Mar 2025 12:31:13 +0800 (CST) From: Sean Whitton <spwhitton@HIDDEN> To: Paul Nelson <ultrono@HIDDEN> Subject: Re: bug#77197: 31.0.50; forward-word fails after yanking into summary line of *vc-log* In-Reply-To: <uxsg7tr02o4kdt.fsf@HIDDEN> References: <uxsg7tr02o4kdt.fsf@HIDDEN> Date: Sun, 23 Mar 2025 12:31:13 +0800 Message-ID: <87msdcs6zy.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77197 Cc: 77197 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hello, On Sun 23 Mar 2025 at 02:15am +01, Paul Nelson wrote: > If we yank text into the summary line of a *vc-log* buffer, then with > point at beginning of line, forward-word fails. > > To reproduce, use vc-next-action (C-x v v) to arrive at a *vc-log* > buffer. With point after "Summary:", evaluate > > (progn > (insert "text") > (log-edit-beginning-of-line) > (forward-word)) > > This leaves point before "text". It should instead be after. > > There is no issue if we manually type "text". I've been running into this lately too. I intend to look into it, though any further investigation from you would be much appreciated. -- Sean Whitton
bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 23 Mar 2025 01:16:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 22 21:16:26 2025 Received: from localhost ([127.0.0.1]:46338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tw9ws-0008Bv-L4 for submit <at> debbugs.gnu.org; Sat, 22 Mar 2025 21:16:25 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60066) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1tw9wk-0008A0-FS for submit <at> debbugs.gnu.org; Sat, 22 Mar 2025 21:16:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ultrono@HIDDEN>) id 1tw9wc-0004hS-Aq for bug-gnu-emacs@HIDDEN; Sat, 22 Mar 2025 21:16:06 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <ultrono@HIDDEN>) id 1tw9wa-0003kv-7v for bug-gnu-emacs@HIDDEN; Sat, 22 Mar 2025 21:16:06 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-aaecf50578eso618227966b.2 for <bug-gnu-emacs@HIDDEN>; Sat, 22 Mar 2025 18:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742692561; x=1743297361; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=9JdZP0HqxU9JUZaY/OjrjhvTnJlByJc8qM5Cvw673LU=; b=cBe7mqtmnHOyGUX6mZwQaBBpaSKUnSsvhGt9CfCYXz+QsN5N7P2E9zRW4X2mmRbGnP vHFhJw1i77xBuTs9FmU2GWp1mCDgjSGWdRFWZSGT33OfWzDa8Ff2STfNHfIoAyTZl5cI dnG3Sfcqt1uIr+rG3K8k58I/ICoM+q417bKcPCbqSQYhnkjfdShlSbKWGaDNjCog7PDn 2xTo+sYvZZmqPsfMFMkSSUyB/yL8ZkY5g8qWAAVwjPsw9v+H1Nbu5DHZL8ROxZXOOMWe 4u+EYniujHAh9YA7iS3kq+HlMwQPVkRqw0y3f0NOze4rCcN4p0atsEbppo3T+4Uhsblw BeIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742692561; x=1743297361; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9JdZP0HqxU9JUZaY/OjrjhvTnJlByJc8qM5Cvw673LU=; b=XnYS841sBS4mbKPlteW/4UOvTIFHe63CO+eEM2SxS/g6HhzW8KQOzmtJJryIQCW0SJ eMRay6WGgeSP9NACQigiIdNltIoyb3f9im17yPgWHBf9Nn1wz+RubhvKrWSXT0n9rIxH vsjhhSZ17vxipI/Acc62CT1W0n4dyfiGPC1QhPmXzMM4WoR09wMOII9K7E24JAbqhjVV +M6YYy5/U4uPDJa8zwFQFnjOSMER0YLrMlRsUJQK09Zp+O23HHRy/gyPB3jMESPROrbb TbeZKhmw9zkUCko3DR2WnFQ2vTKDHEFOk1fyab8OSRaaQ/ueBN5JOtot0cfxPkTe6uTz Uzcg== X-Gm-Message-State: AOJu0YwR5fLaFsGUI+p/s+TOvVOjcxo/56+rYMTQNxlRkRl2aUkjDy85 V/j5+hOI3fvZGTEA5Sf5mPSmoMkdvQSqTCVq/V8lfQQ57M2dgii3kcDZukmC X-Gm-Gg: ASbGncvXDGW+/Rn2A/SM/u0Qe5WbeAnyUQjGiLblW7AAwLeHc2Y3xne52Jfl9/iP1Ou mnfuwWa7z51U4pVMgaGFzJgSBFaDVijbvIaIp2lHBwaK8HEsc/PKdFJp+swe7DLWpDmGoX38C/w jSkuyGEOT6zpYYgS99Z/FCsRiGmLdgj+rehFx/5givnzn0cAS4gDUSw5/H2YQFBfKaQoixE7cwv H+jLp+34VF035B26syIEogyZjMJglAfKpPY+ePk0fdw9nsxggTD9S9wsgP/zw6A119inuO6ksv2 L9zCa3flRyVwUWMiwtwnosHzYNT/XufdKrrzziqXo3NfGZjMSNrN3JWsGIuNcn8AEdBi9bIhJq5 +Bvml5CnYHw== X-Google-Smtp-Source: AGHT+IFxFQr35x1o7B2pZyUwrFEEP688HkTobNWq8YIeBXJ1GLZr+KoxKUb8Y9jNGbkc/KKy27Dxvg== X-Received: by 2002:a17:907:6d0b:b0:abf:750b:93b8 with SMTP id a640c23a62f3a-ac3f212b6c6mr886341766b.22.1742692561220; Sat, 22 Mar 2025 18:16:01 -0700 (PDT) Received: from localhost (0x573d6713.static.cust.fastspeed.dk. [87.61.103.19]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac3efb52c24sm428790666b.114.2025.03.22.18.15.59 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Mar 2025 18:16:00 -0700 (PDT) From: Paul Nelson <ultrono@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; forward-word fails after yanking into summary line of *vc-log* X-Debbugs-Cc: Date: Sun, 23 Mar 2025 02:15:58 +0100 Message-ID: <uxsg7tr02o4kdt.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=ultrono@HIDDEN; helo=mail-ej1-x62c.google.com 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_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) If we yank text into the summary line of a *vc-log* buffer, then with point at beginning of line, forward-word fails. To reproduce, use vc-next-action (C-x v v) to arrive at a *vc-log* buffer. With point after "Summary:", evaluate (progn (insert "text") (log-edit-beginning-of-line) (forward-word)) This leaves point before "text". It should instead be after. There is no issue if we manually type "text". In GNU Emacs 31.0.50 (build 2, aarch64-apple-darwin24.1.0, NS appkit-2575.20 Version 15.1.1 (Build 24B91)) of 2025-02-27 built on d51735 Repository revision: f4c8b889c148265cbfb33d2fe4f080639543897f Repository branch: working Windowing system distributor 'Apple', version 10.3.2575 System Description: macOS 15.1.1 Configured using: 'configure --with-ns --with-native-compilation --with-tree-sitter --with-gif --with-png --with-jpeg --with-rsvg --with-tiff --with-imagemagick --with-x-toolkit=gtk3 --with-xwidgets' Configured features: ACL DBUS GLIB GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS ZLIB Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-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 blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /Users/au710211/gnu-emacs/lisp/pulse hides /Users/au710211/gnu-emacs/lisp/cedet/pulse /Users/au710211/gnu-emacs/lisp/mail/hashcash hides /Users/au710211/gnu-emacs/lisp/obsolete/hashcash /Users/au710211/gnu-emacs/lisp/kermit hides /Users/au710211/gnu-emacs/lisp/obsolete/kermit /Users/au710211/gnu-emacs/lisp/cdl hides /Users/au710211/gnu-emacs/lisp/obsolete/cdl /Users/au710211/gnu-emacs/lisp/echistory hides /Users/au710211/gnu-emacs/lisp/obsolete/echistory Features: (shadow sort mail-extr warnings icons compile comint ansi-osc ansi-color emacsbug lisp-mnt misearch multi-isearch smerge-mode diff vc-hg vc-git diff-mode track-changes files-x vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view log-edit message sendmail mailcap yank-media puny rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader ring add-log easy-mmode pcvs-util vc vc-dispatcher comp-run bytecomp byte-compile comp-common rx dired-aux cl-loaddefs cl-lib dired dired-loaddefs rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 146906 11082) (symbols 48 19856 0) (strings 32 47334 2700) (string-bytes 1 1005449) (vectors 16 15012) (vector-slots 8 196289 10107) (floats 8 31 137) (intervals 56 1522 0) (buffers 992 21))
Paul Nelson <ultrono@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#77197
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.