From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.bugs Subject: bug#1739: [Toby Speight] Broken host regexps in generic-x Date: Tue, 30 Dec 2008 09:51:15 +0100 Message-ID: <87y6xy3v24.fsf@turtle.gmx.de> Reply-To: Sven Joachim , 1739@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1230627881 18288 80.91.229.12 (30 Dec 2008 09:04:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2008 09:04:41 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 30 10:05:45 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LHaX5-0005ev-9g for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Dec 2008 10:04:59 +0100 Original-Received: from localhost ([127.0.0.1]:38610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHaVr-0006bY-PT for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Dec 2008 04:03:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHaVc-0006Xb-2w for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 04:03:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHaVa-0006Wr-Hh for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 04:03:27 -0500 Original-Received: from [199.232.76.173] (port=38578 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHaVa-0006Wg-6G for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 04:03:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50947) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LHaVZ-0001tE-Ae for bug-gnu-emacs@gnu.org; Tue, 30 Dec 2008 04:03:25 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBU93Mgp019813; Tue, 30 Dec 2008 01:03:22 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBU903l1018638; Tue, 30 Dec 2008 01:00:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Sven Joachim Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 30 Dec 2008 09:00:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1739 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123062708117278 (code B ref -1); Tue, 30 Dec 2008 09:00:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 30 Dec 2008 08:51:21 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: (qmail invoked by alias); 30 Dec 2008 08:51:15 -0000 Original-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 Original-Received: by turtle.gmx.de (Postfix, from userid 1000) id 200BF354B0; Tue, 30 Dec 2008 09:51:15 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.49 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 30 Dec 2008 04:03:27 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23566 Archived-At: --=-=-= 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 --===-=-=-- --=-=-=--