GNU bug report logs - #76855
etags-regen-mode: Universal ctags bug

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ben Scuron <bscuron19@HIDDEN>; Keywords: patch; dated Sat, 8 Mar 2025 06:54:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) patch. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Mar 2025 06:53:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 08 01:53:24 2025
Received: from localhost ([127.0.0.1]:52463 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqo3n-0003mw-QE
	for submit <at> debbugs.gnu.org; Sat, 08 Mar 2025 01:53:24 -0500
Received: from lists.gnu.org ([2001:470:142::17]:41598)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bscuron19@HIDDEN>)
 id 1tqksv-0006gG-KO
 for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 22:29:58 -0500
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 <bscuron19@HIDDEN>)
 id 1tqksq-0008IA-0r
 for bug-gnu-emacs@HIDDEN; Fri, 07 Mar 2025 22:29:52 -0500
Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <bscuron19@HIDDEN>)
 id 1tqkso-0003Xi-Ge
 for bug-gnu-emacs@HIDDEN; Fri, 07 Mar 2025 22:29:51 -0500
Received: by mail-oi1-x22f.google.com with SMTP id
 5614622812f47-3f684e4f08dso1363178b6e.1
 for <bug-gnu-emacs@HIDDEN>; Fri, 07 Mar 2025 19:29:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1741404588; x=1742009388; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=a9I/WmGXzp4yCIwGYa2GG8BW3yEKTFZeIVJEf6js/Og=;
 b=NNnSWMfmuKNO+LlEKy0R0C25tZxyXnJ0V3jhkygdkeL8y+tKRCKT+CyvQPyVFgwNXn
 OLgPrxh9LBO4+ieYGSqeOCC8Pj5lLIcUSQxcte1fiajKK+BkK19GPimAAI9KvDu370yS
 2bohYFWY/oV4BOtFHIt5MPWB/GosZ36ItZqivW1qWbPDJflRorUoNjOKy+vgsgtEnE6o
 EBc+NeWVanT9Q8TnkfjVkgUzCbexiX6OQemfT6meikSyer/E3Kws2Q3ZL0XbVWguA5i4
 5L5wUfrgq5fQ0PanESoPWG6qxP+7QVeR3gbJCG1vyumHXLEWfgt24C+dl7cp0ZrDPwqk
 ANoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1741404588; x=1742009388;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=a9I/WmGXzp4yCIwGYa2GG8BW3yEKTFZeIVJEf6js/Og=;
 b=sV1lmnZdX34aa/QyC966aZaNOO5XyZIj1/DVycZRDaNjgUOoRiKLvov9fdzx+3sMIF
 o+fE2UF6hx3UXMFa/SKM67duR0cpmHTOzSO6JhpluZJMuaVCPwpKFPugHRv/JJ9zzdIw
 RUCf70MU7Pq7CnzJUMGWUji4ZqMq/z/dHx7R2s/ESLMleoF9vOz42H8Fapur1z7+SOsE
 1bXB65fp/m/rycfUwIVYE+pBAF0WBoddEkupk9NwjNR/cPNlY52wd8iwtxby4JuBxQHd
 d5Tsmv7X759C+dmL19OYEHkzauR6D6GPPXhoChRRuG/Gtba0IrUevfsq1MK7Tk2H9qw6
 wN5Q==
X-Gm-Message-State: AOJu0YxGgvDR74HUeWfMXHqUwRa0vT7ngev7Bhofn2mzKU8/vdmwtCQb
 NF8s/YZisrzp9O3RnBtth8WCC3aJihtcFzZGhyh/dAGPdLVV/OswvCLzqHL5+gUdIiMl1GmNvlS
 YpY3/VemI/Fz+mBobrwgP9rVOTwIqMo1j
X-Gm-Gg: ASbGncsIS/LhsHFyx8uSvvcVzftPJNC967ISH5LXUrRvPulINjA+ushQ4AuybiISghI
 tVWsPkhbfFVnt3EP4G6X1JnrpSyywaGpx+CrAU2k0GfdMEbOxCb47Ykm77BsiEvc9I3/hAMj97H
 8XLZbBQXKO6RZSUCbklfE8dlo/C1ab/2dFeMp64Ve2D7xImto+Pf+71Ket
X-Google-Smtp-Source: AGHT+IE3fRQA+MWVbGtnI/6aWl4VHv8jOSZhnQbJ8Wp4WlvOGwElLd4TOJXj5kkLV6d3oNmMZNGPbmBRxUOjRxdW7NE=
X-Received: by 2002:a05:6808:2117:b0:3f6:a889:59b4 with SMTP id
 5614622812f47-3f6a8895b7emr84417b6e.30.1741404587858; Fri, 07 Mar 2025
 19:29:47 -0800 (PST)
MIME-Version: 1.0
From: Ben Scuron <bscuron19@HIDDEN>
Date: Fri, 7 Mar 2025 22:29:36 -0500
X-Gm-Features: AQ5f1JoHaAMKWXK22_tpr330vVfLbc1F8Bmf1TD6Lxyc5p7yuqxcRrpPCPaLvII
Message-ID: <CADKVEuMNXMJzy5FqiGQPjVPQWmbMW5ws4HLL1sZQgCx40tOr0Q@HIDDEN>
Subject: etags-regen-mode: Universal ctags bug
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/mixed; boundary="000000000000df8c8b062fcc5988"
Received-SPF: pass client-ip=2607:f8b0:4864:20::22f;
 envelope-from=bscuron19@HIDDEN; helo=mail-oi1-x22f.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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.2 (+)
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:  When using `etags-regen-mode` with Universal Ctags, I receive
 the following error message when appending to the TAGS file: `ctags: -o option
 may not follow a file name`. NOTE: This error only occurs when appending
 to the TAGS file, not when initially generating the file. 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (bscuron19[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (bscuron19[at]gmail.com)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 HTML_MESSAGE           BODY: HTML included in message
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 08 Mar 2025 01:53:19 -0500
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.2 (/)

--000000000000df8c8b062fcc5988
Content-Type: multipart/alternative; boundary="000000000000df8c8a062fcc5986"

--000000000000df8c8a062fcc5986
Content-Type: text/plain; charset="UTF-8"

When using `etags-regen-mode` with Universal Ctags, I receive the following
error message when appending to the TAGS file: `ctags: -o option may not
follow a file name`.

NOTE: This error only occurs when appending to the TAGS file, not when
initially generating the file.

The attached patch file fixed the error for me. I tested the patch using
both `etags` and Universal `ctags`.

Information:
ctags version: Universal Ctags 6.1.0
OS: macOS 14.2.1

--000000000000df8c8a062fcc5986
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">When using `etags-regen-mode` with Universal Ctags, I rece=
ive the following error message when appending to the TAGS file: `ctags: -o=
 option may not follow a file name`.<div><br></div><div>NOTE: This error on=
ly occurs when appending to the TAGS file, not when initially generating th=
e file.</div><div><br></div><div>The attached patch file fixed the error fo=
r me. I tested the patch using both `etags` and Universal `ctags`.</div><di=
v><br></div><div>Information:</div><div>ctags version:=C2=A0Universal Ctags=
 6.1.0</div><div>OS:=C2=A0macOS 14.2.1</div></div>

--000000000000df8c8a062fcc5986--

--000000000000df8c8b062fcc5988
Content-Type: application/octet-stream; name="0001-etags-regen.el.patch"
Content-Disposition: attachment; filename="0001-etags-regen.el.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_m7zn8oxp0>
X-Attachment-Id: f_m7zn8oxp0

ZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVzL2V0YWdzLXJlZ2VuLmVsIGIvbGlzcC9wcm9nbW9k
ZXMvZXRhZ3MtcmVnZW4uZWwKaW5kZXggMTQ3OTFjOS4uNzk5NDMwMyAxMDA2NDQKLS0tIGEvbGlz
cC9wcm9nbW9kZXMvZXRhZ3MtcmVnZW4uZWwKKysrIGIvbGlzcC9wcm9nbW9kZXMvZXRhZ3MtcmVn
ZW4uZWwKQEAgLTM4MSw3ICszODEsNyBAQCBGaWxlIGV4dGVuc2lvbnMgdG8gZ2VuZXJhdGUgdGhl
IHRhZ3MgZm9yLiIKICAgICA7OyBMaWtlIDEwbXMgdnMgMjBtcyBoZXJlLiAgQnV0IGBzaGVsbC1j
b21tYW5kJyBtYWtlcyBpdCBlYXN5IHRvCiAgICAgOzsgZGlyZWN0IHN0ZGVyciB0byBhIHNlcGFy
YXRlIGJ1ZmZlci4KICAgICAoc2hlbGwtY29tbWFuZAotICAgICAoZm9ybWF0ICIlcyAlcyAlcyAt
byAtIgorICAgICAoZm9ybWF0ICIlcyAlcyAtbyAtICVzIgogICAgICAgICAgICAgIGV0YWdzLXJl
Z2VuLXByb2dyYW0gKG1hcGNvbmNhdCAjJ2lkZW50aXR5IG9wdGlvbnMgIiAiKQogICAgICAgICAg
ICAgIChtYXBjb25jYXQgIydpZGVudGl0eSBmaWxlLW5hbWVzICIgIikpCiAgICAgIHQgZXRhZ3Mt
cmVnZW4tLWVycm9ycy1idWZmZXItbmFtZSkpCg==
--000000000000df8c8b062fcc5988--




Acknowledgement sent to Ben Scuron <bscuron19@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76855; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 8 Mar 2025 08:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.