From unknown Mon Jun 23 14:57:40 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#14614 <14614@debbugs.gnu.org> To: bug#14614 <14614@debbugs.gnu.org> Subject: Status: 24.3.50; thing-at-point for symbol returns wrong value in makefile Reply-To: bug#14614 <14614@debbugs.gnu.org> Date: Mon, 23 Jun 2025 21:57:40 +0000 retitle 14614 24.3.50; thing-at-point for symbol returns wrong value in mak= efile reassign 14614 emacs submitter 14614 Barry OReilly severity 14614 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 18:52:51 2013 Received: (at submit) by debbugs.gnu.org; 13 Jun 2013 22:52:51 +0000 Received: from localhost ([127.0.0.1]:42438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnGNu-0001Qr-Jp for submit@debbugs.gnu.org; Thu, 13 Jun 2013 18:52:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39537) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnGNr-0001Qd-EJ for submit@debbugs.gnu.org; Thu, 13 Jun 2013 18:52:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnGNk-0003TC-QF for submit@debbugs.gnu.org; Thu, 13 Jun 2013 18:52:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, HTML_MESSAGE, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnGNk-0003T8-NI for submit@debbugs.gnu.org; Thu, 13 Jun 2013 18:52:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnGNj-00086b-9h for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 18:52:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnGNh-0003SF-Fj for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 18:52:39 -0400 Received: from mail-oa0-x234.google.com ([2607:f8b0:4003:c02::234]:65051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnGNh-0003Ry-9C for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2013 18:52:37 -0400 Received: by mail-oa0-f52.google.com with SMTP id g12so7088541oah.11 for ; Thu, 13 Jun 2013 15:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=s+KC3wFQsPjBMSn796DCvdQkAKKs9DXW79bSSLhBns0=; b=Z9T0gerbR+jEM7Yws1/5uya89bLQNG9wXjpS1hQF+EMb9Mi7amB/k1kDlFuuYKYSRO 9ciW8rghaB5QHOwbcgI1Mcnb4+yy2oqbFC6xz1PHTu6W/YWEA1x8pw0p1Q6IPFnl7yXN zTMuFGQ8SIlCLJcuDIDS9IOiletx7XfQ9vMstMgGD6ZA/I8qWhm5fwa5q1FtD/yCmqcU BRr0Q+4kQR1vyOoNy/JP12VBjLtP9DneMYilg0yrCCqMGyp8krSQz2OPRihMl/hj1oR1 ZdOG+MrOv76ztUGEfyXDGxGRYyIXexRyT3wzMWo2U3+ZAM12ScFjqXwHdVvtF1hdEZ6V swtQ== MIME-Version: 1.0 X-Received: by 10.182.87.170 with SMTP id az10mr2398619obb.10.1371163956242; Thu, 13 Jun 2013 15:52:36 -0700 (PDT) Received: by 10.76.122.79 with HTTP; Thu, 13 Jun 2013 15:52:36 -0700 (PDT) Date: Thu, 13 Jun 2013 18:52:36 -0400 Message-ID: Subject: 24.3.50; thing-at-point for symbol returns wrong value in makefile From: Barry OReilly To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e0111bcfa8a708204df10fcee 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.3 (----) X-Debbugs-Envelope-To: submit 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.3 (----) --089e0111bcfa8a708204df10fcee Content-Type: text/plain; charset=ISO-8859-1 Let Makefile have contents: MY_MAKE_VAR=foo bar Let makefile-symbol.el have contents: (defun myfun () (interactive) (message "thing-at-point symbol is %s" (thing-at-point 'symbol))) Run emacs -Q --load makefile-symbol.el Makefile M-x myfun Minibuffer indicates symbol at point is: MY_MAKE_VAR=foo Expected: MY_MAKE_VAR In GNU Emacs 24.3.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2013-05-23 on redacted Windowing system distributor `The X.Org Foundation', version 11.0.70101000 System Description: Red Hat Enterprise Linux Client release 5.4 (Tikanga) Configured using: `configure --prefix=/redacted/user/boreilly/sw/emacs-install-trunk --with-gif=no' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: GNUmakefile Minor modes in effect: tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x m y f u n M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Makefile has auto save data; consider M-x recover-this-file thing-at-point symbol is MY_MAKE_VAR=foo Load-path shadows: None found. Features: (shadow sort nadvice gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt make-mode time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --089e0111bcfa8a708204df10fcee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Let Makefile have contents:

=A0 MY_MAKE_VAR=3Dfoo bar

Let mak= efile-symbol.el have contents:

=A0 (defun myfun ()
=A0=A0=A0 (int= eractive)
=A0=A0=A0 (message "thing-at-point symbol is %s" (th= ing-at-point 'symbol)))

Run emacs -Q --load makefile-symbol.el Makefile

M-x myfun
Minibuffer indicates symbol at point is: MY_MAKE_VAR=3Dfoo

Expected= : MY_MAKE_VAR

In GNU Emacs 24.3.50.6 (x86_64-unknown-linux-gnu, GTK+= Version 2.10.4)
=A0of 2013-05-23 on redacted
Windowing system distributor `The X.Org Fou= ndation', version 11.0.70101000
System Description:=A0=A0=A0 Red Hat= Enterprise Linux Client release 5.4 (Tikanga)

Configured using:
= =A0`configure --prefix=3D/redacted/user/boreilly/sw/emacs-install-trunk
=A0--with-gif=3Dno'

Important settings:
=A0 value of $LANG: e= n_US.UTF-8
=A0 value of $XMODIFIERS: @im=3Dnone
=A0 locale-coding-sys= tem: utf-8-unix
=A0 default enable-multibyte-characters: t

Major = mode: GNUmakefile

Minor modes in effect:
=A0 tooltip-mode: t
=A0 mouse-wheel-mode: = t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-m= ode: t
=A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 blin= k-cursor-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryption-mode: t
=A0 auto-com= pression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t
Recent input:
M-x m y f u n <return> M-x r e p o r t <tab= > <retu
rn>

Recent messages:
For information about GNU Emacs and the G= NU system, type C-h C-a.
Makefile has auto save data; consider M-x recov= er-this-file
thing-at-point symbol is MY_MAKE_VAR=3Dfoo

Load-path= shadows:
None found.

Features:
(shadow sort nadvice gnus-util mail-extr em= acsbug message format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodi= es mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail= rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils thingatpt make-mode time-date
t= ooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
d= nd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-loc= k font-lock syntax facemenu font-core frame cham georgian
utf-8-lang mis= c-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek= romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
mi= nibuffer loaddefs button faces cus-face macroexp files text-properties
o= verlay sha1 md5 base64 format env code-pages mule custom widget
hashtabl= e-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtkx-toolkit x multi-tty emacs)

--089e0111bcfa8a708204df10fcee-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 21:17:02 2013 Received: (at 14614) by debbugs.gnu.org; 15 Jun 2013 01:17:02 +0000 Received: from localhost ([127.0.0.1]:45127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Unf6z-0000s9-7M for submit@debbugs.gnu.org; Fri, 14 Jun 2013 21:17:01 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:49463 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Unf6x-0000s1-7r for 14614@debbugs.gnu.org; Fri, 14 Jun 2013 21:16:59 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Unf6v-0000lu-Un; Fri, 14 Jun 2013 21:16:58 -0400 From: Glenn Morris To: Barry OReilly Subject: Re: bug#14614: 24.3.50; thing-at-point for symbol returns wrong value in makefile References: X-Spook: enforcers ANC Bosnia COSCO Indigo John Kerry Iran Perl-RSA X-Ran: 9KJNclwY?]pfH:p=KfT/*[x*2UDd[0`W4"T!-`q>Q(/ak8>X/;iAv{lm.4a(gy/W.!.nDm X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 14 Jun 2013 21:16:57 -0400 In-Reply-To: (Barry OReilly's message of "Thu, 13 Jun 2013 18:52:36 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 14614 Cc: 14614@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: -5.3 (-----) Barry OReilly wrote: > Let Makefile have contents: > > MY_MAKE_VAR=foo bar [...] > Minibuffer indicates symbol at point is: MY_MAKE_VAR=foo The solution is to give ?= punctuation syntax in Makefile mode. I can't see any obvious reason not to do that...? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 21:46:39 2013 Received: (at 14614) by debbugs.gnu.org; 15 Jun 2013 01:46:39 +0000 Received: from localhost ([127.0.0.1]:45179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnfZf-00021W-8a for submit@debbugs.gnu.org; Fri, 14 Jun 2013 21:46:39 -0400 Received: from mail-ob0-f171.google.com ([209.85.214.171]:57417) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnfZd-00021A-0A for 14614@debbugs.gnu.org; Fri, 14 Jun 2013 21:46:37 -0400 Received: by mail-ob0-f171.google.com with SMTP id dn14so1337499obc.2 for <14614@debbugs.gnu.org>; Fri, 14 Jun 2013 18:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=BKrnnVwHR70AzMmYgFoubHvs+nkZUt3IwNA2FINsGBM=; b=pJci86qHZgWUw0ajMv2pXKaL17Nv04P17iRLW4hs9Mx3A7xm4h1x0ImMp58QhWauAp vHwRlI3mZL5nuiJg5a6PoArkIuMJoX/VUib71FC2ZoaOZ33mxbS5NWd05L1xe+JhEK3S xoQM3Geu211PDcYgI9gGeyWxdq0RoJ7566Kjp0enQohNtBb3FfNIVz7YTAbI3tPPk3hS z1wO+OOc2QvpRm+3BUDyxDGTFySYCDGtAD7kHojmrHZPRuiVJzO25+Xbb/gaEJs/fIpA HR6lG+MUBQrwnYUjy95e9CQAMWAbfE+y1rSN9UfLTgtnJ20IiNprefCm/RL9L4TdUDCx mwFw== MIME-Version: 1.0 X-Received: by 10.60.54.34 with SMTP id g2mr3345411oep.16.1371260791133; Fri, 14 Jun 2013 18:46:31 -0700 (PDT) Received: by 10.76.122.79 with HTTP; Fri, 14 Jun 2013 18:46:31 -0700 (PDT) In-Reply-To: References: Date: Fri, 14 Jun 2013 21:46:31 -0400 Message-ID: Subject: Re: bug#14614: 24.3.50; thing-at-point for symbol returns wrong value in makefile From: Barry OReilly Content-Type: multipart/alternative; boundary=089e0115f396599a7f04df278876 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 14614 Cc: 14614@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.5 (/) --089e0115f396599a7f04df278876 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jun 14, 2013 at 9:16 PM, Glenn Morris wrote: > The solution is to give ?= punctuation syntax in Makefile mode. > I can't see any obvious reason not to do that...? > Seems like a fine solution to me. --089e0115f396599a7f04df278876 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Fri, Jun 14, 2013 at 9:16 PM, Glenn Morris <rgm@gn= u.org> wrote:
The solution is to give ?=3D punctuation syntax in Makefile mode.
I can't see any obvious reason not to do that...?

Seems like a fine solution to me.

--089e0115f396599a7f04df278876-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 21:51:05 2013 Received: (at 14614) by debbugs.gnu.org; 15 Jun 2013 01:51:05 +0000 Received: from localhost ([127.0.0.1]:45188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Unfdt-0002C3-1W for submit@debbugs.gnu.org; Fri, 14 Jun 2013 21:51:05 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:50245) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Unfdp-0002Bc-Qs for 14614@debbugs.gnu.org; Fri, 14 Jun 2013 21:50:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpZVy/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kLodwBsEtkQoDpHqBXoMT X-IPAS-Result: Av8EABK/CFFFpZVy/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kLodwBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="16439961" Received: from 69-165-149-114.dsl.teksavvy.com (HELO pastel.home) ([69.165.149.114]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Jun 2013 21:50:46 -0400 Received: by pastel.home (Postfix, from userid 20848) id 9B48462D1F; Fri, 14 Jun 2013 21:50:51 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#14614: 24.3.50; thing-at-point for symbol returns wrong value in makefile Message-ID: References: Date: Fri, 14 Jun 2013 21:50:51 -0400 In-Reply-To: (Glenn Morris's message of "Fri, 14 Jun 2013 21:16:57 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 14614 Cc: Barry OReilly , 14614@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.3 (/) >> Let Makefile have contents: >> >> MY_MAKE_VAR=foo bar > [...] >> Minibuffer indicates symbol at point is: MY_MAKE_VAR=foo > The solution is to give ?= punctuation syntax in Makefile mode. > I can't see any obvious reason not to do that...? Let's try it: either it'll "just work", or we'll get to learn why it's not quite so simple. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 22:25:22 2013 Received: (at control) by debbugs.gnu.org; 15 Jun 2013 02:25:22 +0000 Received: from localhost ([127.0.0.1]:45222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UngB7-0003P9-Ps for submit@debbugs.gnu.org; Fri, 14 Jun 2013 22:25:22 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50121 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UngB6-0003Oy-1P for control@debbugs.gnu.org; Fri, 14 Jun 2013 22:25:20 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UngB5-0006xb-FP for control@debbugs.gnu.org; Fri, 14 Jun 2013 22:25:19 -0400 Date: Fri, 14 Jun 2013 22:25:19 -0400 Message-Id: Subject: control message for bug 14614 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.3 (-----) 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: -5.3 (-----) close 14614 24.4 From unknown Mon Jun 23 14:57:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 13 Jul 2013 11:24:03 +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