From unknown Thu Aug 14 18:36:15 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#17260 <17260@debbugs.gnu.org> To: bug#17260 <17260@debbugs.gnu.org> Subject: Status: 24.4.50; pulse.el: pulse-momentarily-highlight-one-line ignores point argument Reply-To: bug#17260 <17260@debbugs.gnu.org> Date: Fri, 15 Aug 2025 01:36:15 +0000 retitle 17260 24.4.50; pulse.el: pulse-momentarily-highlight-one-line ignor= es point argument reassign 17260 emacs submitter 17260 Matt Curtis severity 17260 normal tag 17260 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 13 13:18:53 2014 Received: (at submit) by debbugs.gnu.org; 13 Apr 2014 17:18:53 +0000 Received: from localhost ([127.0.0.1]:47298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZO3P-0000GH-Pa for submit@debbugs.gnu.org; Sun, 13 Apr 2014 13:18:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53507) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZDDb-0003jg-I5 for submit@debbugs.gnu.org; Sun, 13 Apr 2014 01:44:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZDDV-0004SX-2T for submit@debbugs.gnu.org; Sun, 13 Apr 2014 01:44:34 -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.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZDDU-0004ST-VY for submit@debbugs.gnu.org; Sun, 13 Apr 2014 01:44:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZDDT-0001Vn-LJ for bug-gnu-emacs@gnu.org; Sun, 13 Apr 2014 01:44:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZDDS-0004SD-G2 for bug-gnu-emacs@gnu.org; Sun, 13 Apr 2014 01:44:31 -0400 Received: from mail-ig0-x229.google.com ([2607:f8b0:4001:c05::229]:44519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZDDS-0004S8-8L for bug-gnu-emacs@gnu.org; Sun, 13 Apr 2014 01:44:30 -0400 Received: by mail-ig0-f169.google.com with SMTP id h18so3452140igc.0 for ; Sat, 12 Apr 2014 22:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=7sK23Fu2lZgpTs6EkRw8jSRYzd6RfWyRQHuqbWAkVhQ=; b=FQXJruNftfP+UgDfbnJ4Kx9tBwtCPa2BXa8+BfNlu2D0Y8q6zOq11xbNRQphzLHKN3 N6eELkBrc+Aa7O7R47GlZt5TAwGEtE9exwpQYvses96Vjn332FqABASr4TOjAXrhqwwG QADML0HZG61WvMAmKnO6qE05DlMuUCixihfQMaGJjSI3BQqNa3tr1ZwpoHnQ2yHFQXrr lBVXa/10NNUCzfseX2dHEf9lKHb/B/3R6yXhhkeEaAf79ZPM0lN8MkgI2WjEprTm3yMl 6SubkuaeSKK0tq+Mfr2Eo87wjglXj7+9/gY9hzvXvn3McfIx2HtpVmu/B0ok5GmI6/5s uf7A== X-Received: by 10.50.22.210 with SMTP id g18mr7656467igf.19.1397367868698; Sat, 12 Apr 2014 22:44:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.21.100 with HTTP; Sat, 12 Apr 2014 22:44:08 -0700 (PDT) From: Matt Curtis Date: Sun, 13 Apr 2014 15:44:08 +1000 Message-ID: Subject: 24.4.50; pulse.el: pulse-momentarily-highlight-one-line ignores point argument To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=047d7bd752a86f356604f6e60f78 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 13 Apr 2014 13:18:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (----) --047d7bd752a86f356604f6e60f78 Content-Type: text/plain; charset=ISO-8859-1 The function "pulse-momentarily-highlight-one-line" (in pulse.el) ignores the point argument and uses the current point instead. To reproduce this issue, call the function with a location on a line other than where the point currently is. The line with point will be pulsed, not the line containing the supplied location. (pulse-momentary-highlight-one-line 259) The following patch fixes the issue with (goto-char point) ----- diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el index e2a48a4..10ede62 100644 --- a/lisp/cedet/pulse.el +++ b/lisp/cedet/pulse.el @@ -227,13 +227,15 @@ (defun pulse-momentary-unhighlight () (defun pulse-momentary-highlight-one-line (point &optional face) "Highlight the line around POINT, unhighlighting before next command. Optional argument FACE specifies the face to do the highlighting." - (let ((start (point-at-bol)) - (end (save-excursion - (end-of-line) - (when (not (eobp)) - (forward-char 1)) - (point)))) - (pulse-momentary-highlight-region start end face))) + (save-excursion + (goto-char point) + (let ((start (point-at-bol)) + (end (save-excursion + (end-of-line) + (when (not (eobp)) + (forward-char 1)) + (point)))) + (pulse-momentary-highlight-region start end face)))) (defun pulse-momentary-highlight-region (start end &optional face) "Highlight between START and END, unhighlighting before next command. ----- In GNU Emacs 24.4.50.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) of 2014-04-13 on gonagall.local Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --prefix=/usr/local/Cellar/emacs/HEAD --without-dbus --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/HEAD/share/info/emacs --with-gnutls --with-ns --disable-ns-self-contained' Configured features: ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 locale-coding-system: utf-8-unix --047d7bd752a86f356604f6e60f78 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The function "pulse-momentarily-highlight-one-li= ne" (in pulse.el)
ignores the point argument and uses the cu= rrent point instead.

To reproduce this issue, call= the function with a location on
a line other than where the point currently is. The line with
point will be pulsed, not the line containing the supplied
loca= tion.

(pulse-momentary-highlight-one-line 259)


The following patch fixes the issue with= (goto-char point)

-----

= diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el
index e2a4= 8a4..10ede62 100644
--- a/lisp/cedet/pulse.el
+++ b/lisp/cedet/pulse.el
@@ -227,13 +227,15 @@ (defun pulse-momentary-unhighlight ()
=A0= (defun pulse-momentary-highlight-one-line (point &optional face)
=A0 =A0"Highlight the line around POINT, unhighlighting before ne= xt command.
=A0Optional argument FACE specifies the face to do th= e highlighting."
- =A0(let ((start (point-at-bol))
- =A0 =A0 =A0 (end (save-excursion
- =A0 =A0 =A0 =A0 =A0 =A0 =A0(end-of-line)
- =A0 =A0 =A0 =A0= =A0 =A0 =A0(when (not (eobp))
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(= forward-char 1))
- =A0 =A0 =A0 =A0 =A0 =A0 =A0(point))))
- =A0 =A0(pulse-momentary-highlight-region start end face)))
+ =A0(save-excursion
+ =A0 =A0(goto-char point)
+ = =A0 =A0(let ((start (point-at-bol))
+ =A0 =A0 =A0 =A0 =A0(end (sa= ve-excursion
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (end-of-line)
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (when (not (eobp))
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (forward-char 1))
+ = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (point))))
+ =A0 =A0 =A0(pulse-mo= mentary-highlight-region start end face))))
=A0
=A0(def= un pulse-momentary-highlight-region (start end &optional face)
=A0 =A0"Highlight between START and END, unhighlighting before ne= xt command.

-----

In GNU = Emacs 24.4.50.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19)
=A0of 2014-04-13 on gonagall.local
Windowing system distributor `= Apple', version 10.3.1265
Configured using:
=A0`con= figure --prefix=3D/usr/local/Cellar/emacs/HEAD --without-dbus
=A0= --enable-locallisppath=3D/usr/local/share/emacs/site-lisp
=A0--infodir=3D/usr/local/Cellar/emacs/HEAD/share/info/emacs --with-gn= utls
=A0--with-ns --disable-ns-self-contained'

=
Configured features:
ACL GNUTLS LIBXML2 ZLIB

Important settings:
=A0 value of $LC_CTYPE: en_US.UTF-= 8
=A0 locale-coding-system: utf-8-unix

--047d7bd752a86f356604f6e60f78-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 08 18:58:05 2014 Received: (at 17260) by debbugs.gnu.org; 8 Dec 2014 23:58:05 +0000 Received: from localhost ([127.0.0.1]:58263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy8Bp-0005j6-Hh for submit@debbugs.gnu.org; Mon, 08 Dec 2014 18:58:05 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:46396) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy8Bn-0005iy-Ts for 17260@debbugs.gnu.org; Mon, 08 Dec 2014 18:58:04 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Xy8BV-0000UM-TD; Tue, 09 Dec 2014 00:57:45 +0100 From: Lars Magne Ingebrigtsen To: Matt Curtis Subject: Re: bug#17260: 24.4.50; pulse.el: pulse-momentarily-highlight-one-line ignores point argument References: X-Now-Playing: Dean Blunt's _The Narcissist II_: "(untitled)" X-Hashcash: 1:23:141208:17260@debbugs.gnu.org::eCmq0xgl8PlzC6xJ:0000000000000000000000000000000000000000Gu5i X-Hashcash: 1:23:141208:matt.r.curtis@gmail.com::Vn2h5pYIvKP7x7EU:00000000000000000000000000000000000001RSSh Date: Tue, 09 Dec 2014 00:57:45 +0100 In-Reply-To: (Matt Curtis's message of "Sun, 13 Apr 2014 15:44:08 +1000") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1Xy8BV-0000UM-TD X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1418687866.10746@ltgitecgSvkomYk+OOKnlA X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17260 Cc: 17260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) Matt Curtis writes: > The following patch fixes the issue with (goto-char point) Thanks; applied. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 08 18:58:08 2014 Received: (at control) by debbugs.gnu.org; 8 Dec 2014 23:58:08 +0000 Received: from localhost ([127.0.0.1]:58266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy8Br-0005jM-Sn for submit@debbugs.gnu.org; Mon, 08 Dec 2014 18:58:08 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:46402) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy8Bq-0005jF-O4 for control@debbugs.gnu.org; Mon, 08 Dec 2014 18:58:07 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Xy8BY-0000UT-K3 for control@debbugs.gnu.org; Tue, 09 Dec 2014 00:57:48 +0100 Date: Tue, 09 Dec 2014 00:57:47 +0100 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #17260 X-MailScanner-ID: 1Xy8BY-0000UT-K3 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1418687869.37541@BkCRUhhxcDQ6z5+P5AbIiw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) tags 17260 fixed close 17260 25.1 From unknown Thu Aug 14 18:36:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Jan 2015 12: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