From unknown Wed Aug 20 05:18:14 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#1739 <1739@debbugs.gnu.org> To: bug#1739 <1739@debbugs.gnu.org> Subject: Status: [Toby Speight] Broken host regexps in generic-x Reply-To: bug#1739 <1739@debbugs.gnu.org> Date: Wed, 20 Aug 2025 12:18:14 +0000 retitle 1739 [Toby Speight] Broken host regexps in generic-x reassign 1739 emacs submitter 1739 Sven Joachim severity 1739 normal tag 1739 patch thanks From svenjoac@gmx.de Tue Dec 30 00:51:21 2008 Received: (at submit) by emacsbugs.donarmstrong.com; 30 Dec 2008 08:51:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.9 required=4.0 tests=FOURLA,HAS_PACKAGE, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBU8pIKO017272 for ; Tue, 30 Dec 2008 00:51:19 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHaJp-0004kN-Ux for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 03:51:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHaJp-0004kB-MS for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 03:51:17 -0500 Received: from [199.232.76.173] (port=56435 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHaJp-0004k4-Ag for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 03:51:17 -0500 Received: from mail.gmx.net ([213.165.64.20]:58173) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LHaJo-0000jo-Qz for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 03:51:17 -0500 Received: (qmail invoked by alias); 30 Dec 2008 08:51:15 -0000 Received: from p548666D5.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.102.213] by mail.gmx.net (mp007) with SMTP; 30 Dec 2008 09:51:15 +0100 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX19F71MS/nJF4+OeO9jxfSPiQIraAjUeDBjKi+kndn PG1r1fcYzCZo3e Received: by turtle.gmx.de (Postfix, from userid 1000) id 200BF354B0; Tue, 30 Dec 2008 09:51:15 +0100 (CET) From: Sven Joachim To: bug-gnu-emacs@gnu.org Subject: [Toby Speight] Broken host regexps in generic-x Date: Tue, 30 Dec 2008 09:51:15 +0100 Message-ID: <87y6xy3v24.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Y-GMX-Trusted: 0 X-FuHaFi: 0.49 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) --=-=-= Tags: patch Another old bug in Debian's BTS, this time with a patch. The patch doesn't apply anymore, but it was easy for me to create a new one: --8<---------------cut here---------------start------------->8--- --- generic-x.el.~1.55.~ 2008-10-04 05:11:46.000000000 +0200 +++ generic-x.el 2008-12-30 09:45:00.000000000 +0100 @@ -376,7 +376,7 @@ (define-generic-mode hosts-generic-mode '(?#) '("localhost") - '(("\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 font-lock-constant-face)) + '(("\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 font-lock-constant-face)) '("[hH][oO][sS][tT][sS]\\'") nil "Generic mode for HOSTS files.")) @@ -1811,7 +1811,7 @@ '("cache" "primary" "secondary" "forwarders" "limit" "options" "directory" "check-names") ;; List of additional font-lock-expressions - '(("\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 font-lock-constant-face) + '(("\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 font-lock-constant-face) ("^directory\\s-+\\(.*\\)" 1 font-lock-variable-name-face) ("^\\(primary\\|cache\\)\\s-+\\([.A-Za-z]+\\)\\s-+\\(.*\\)" (2 font-lock-variable-name-face) @@ -1829,7 +1829,7 @@ ;; List of keywords '("IN" "NS" "CNAME" "SOA" "PTR" "MX" "A") ;; List of additional font-lock-expressions - '(("\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 font-lock-constant-face) + '(("\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 font-lock-constant-face) ("^\\([.A-Za-z0-9]+\\)" 1 font-lock-variable-name-face)) ;; List of additional auto-mode-alist expressions nil --8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Subject: Bug#239344: emacs21-common: Broken host regexps in generic-x Reply-To: Toby Speight , 239344@bugs.debian.org Resent-From: Toby Speight Original-Sender: Toby.Speight@eu.citrix.com Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Toby Speight , Rob Browning Resent-Date: Mon, 22 Mar 2004 12:18:02 UTC Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 239344 X-Debian-PR-Package: emacs21-common X-Debian-PR-Keywords: patch Received: via spool by submit@bugs.debian.org id=B.107995696312940 (code B ref -1); Mon, 22 Mar 2004 12:18:02 UTC Received: (at submit) by bugs.debian.org; 22 Mar 2004 12:02:43 +0000 Received: from (lonximss01.ctxuk.citrix.com) [195.153.38.121] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1B5O8g-0003MA-00; Mon, 22 Mar 2004 04:02:43 -0800 Received: from LONPEXCH5IM01.ctxuk.citrix.com ([10.30.224.191]) by lonximss0 1 with trend_isnt_name_B; Mon, 22 Mar 2004 12:04:04 -0000 Received: from canisp.cam.eu.citrix.com (10.70.129.150 [10.70.129.150]) by L ONPEXCH5IM01.ctxuk.citrix.com with SMTP (Microsoft Exchange Internet Mail S ervice Version 5.5.2656.59)id GZ9CZ7AK; Mon, 22 Mar 2004 12:02:16 -0000 From: Toby Speight To: Debian Bug Tracking System Date: Mon, 22 Mar 2004 12:01:56 +0000 Message-ID: Organization: Citrix Systems X-Face: T,QK^R4['}UwA"]bf:YD$2mZF\1%}\FEd/]Io%5T3[|~HUaR:!WOLCic7XE4H`cdc{f| ][4bL}yxhypxGygoO0nTK1(t-~7!uKq?qf+Uqf;eq,jx!\ !s'e/@$a6CKI>M8- Sender: Toby.Speight@eu.citrix.com Delivered-To: submit@bugs.debian.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===-=-=" --===-=-= Package: emacs21-common Version: 21.3+1-4 Severity: normal Tags: patch File: /usr/share/emacs/21.3/lisp/generic-x.el Some of the regexps in generic-x have only single backslashes to escape '.' characters - the result being that they match any character, including '.' - see patch: --===-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=generic-x.diff --- /usr/share/emacs/21.3/lisp/generic-x.el 2003-10-31 18:30:36.000000000 +0000 +++ generic-x.el 2004-03-22 11:55:06.000000000 +0000 @@ -258,7 +258,7 @@ (define-generic-mode 'hosts-generic-mode (list ?#) (list "localhost") - '(("\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 'font-lock-constant-face)) + '(("\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 'font-lock-constant-face)) (list "[hH][oO][sS][tT][sS]\\'") nil "Generic mode for HOSTS files.")) @@ -1681,7 +1681,7 @@ "directory" "check-names") ;;List of additional font-lock-expressions (list - (list "\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 'font-lock-constant-face) + (list "\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 'font-lock-constant-face) (list "^directory\\s-+\\(.*\\)" 1 'font-lock-variable-name-face) (list "^\\(primary\\|cache\\)\\s-+\\([.A-Za-z]+\\)\\s-+\\(.*\\)" (list 2 'font-lock-variable-name-face) @@ -1700,7 +1700,7 @@ (list "IN" "NS" "CNAME" "SOA" "PTR" "MX" "A") ;;List of additional font-lock-expressions (list - (list "\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 'font-lock-constant-face) + (list "\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" 1 'font-lock-constant-face) (list "^\\([.A-Za-z0-9]+\\)" 1 'font-lock-variable-name-face) ) ;;List of additional automode-alist expressions --===-=-= -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (300, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.4.24 Locale: LANG=en_GB, LC_CTYPE=en_GB (ignored: LC_ALL set to en_GB) Versions of packages emacs21-common depends on: ii dpkg 1.10.19 Package maintenance system for Deb ii emacsen-common 1.4.15 Common facilities for all emacsen. ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an ii liblockfile1 1.05 NFS-safe locking library, includes -- no debconf information --===-=-=-- --=-=-=-- From rgm@gnu.org Thu Jan 29 19:49:22 2009 Received: (at 1739-done) by emacsbugs.donarmstrong.com; 30 Jan 2009 03:49:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0U3nF7B022746 for <1739-done@emacsbugs.donarmstrong.com>; Thu, 29 Jan 2009 19:49:16 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LSkLs-0005nJ-S9; Thu, 29 Jan 2009 22:47:32 -0500 From: Glenn Morris To: 1739-done@debbugs.gnu.org Subject: Re: [Toby Speight] Broken host regexps in generic-x References: <87y6xy3v24.fsf@turtle.gmx.de> X-Spook: Roswell diwn ARPA SDI Legion of Doom White House global X-Ran: WR!F0u]2mZr]>^,'U<;&{t%Oj 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-CrossAssassin-Score: 4 Thanks. From unknown Wed Aug 20 05:18:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Fri, 27 Feb 2009 15:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator