From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 24 07:16:35 2010 Received: (at submit) by debbugs.gnu.org; 24 Dec 2010 12:16:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PW6ZW-0003o3-5Y for submit@debbugs.gnu.org; Fri, 24 Dec 2010 07:16:35 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PW0aF-0002ad-1D for submit@debbugs.gnu.org; Fri, 24 Dec 2010 00:52:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PW0gf-0003TI-NV for submit@debbugs.gnu.org; Fri, 24 Dec 2010 00:59:34 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,MAY_BE_FORGED autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:38320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PW0gf-0003TD-Io for submit@debbugs.gnu.org; Fri, 24 Dec 2010 00:59:33 -0500 Received: from [140.186.70.92] (port=44651 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PW0ge-0002AR-L0 for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 00:59:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PW0gd-0003Sx-Bp for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 00:59:32 -0500 Received: from outmail148093.authsmtp.net ([62.13.148.93]:63593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PW0gd-0003Sp-4i for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2010 00:59:31 -0500 Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt4.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id oBO5xSBH029938 for ; Fri, 24 Dec 2010 05:59:28 GMT Received: from blp (76-14-48-202.sf-cable.astound.net [76.14.48.202] (may be forged)) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id oBO5xNF0051673 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 24 Dec 2010 05:59:25 GMT Received: from blp by blp with local (Exim 4.72) (envelope-from ) id 1PW0gO-0006lh-79 for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 21:59:16 -0800 From: Ben Pfaff To: bug-gnu-emacs@gnu.org Subject: compilation-mode misinterprets column range on a single line Date: Thu, 23 Dec 2010 21:59:16 -0800 Message-ID: <87hbe3zp6z.fsf@benpfaff.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Server-Quench: f65991be-0f22-11e0-97bb-002264978518 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdwYQ8QAVZfSBwy AThCFzNJTwsiPBEK DBMeOwFHLx8GUxkU P0NTJUF7P1sBA1ZD VCgJX0sgBQ5uW2N0 axpRaA9Ya0BMWktt VlZIRkxWHBtqAR4e BBscVwZzOVo0B3s4 GzBiXnVaWkN5O0J8 SkoaQ2sDbG5hOjUC UBZadR5VcVZKYxZC OAJiVHMPY2MDb31o QlZjKTs2OC1eLC1J QwYLaFcVTUtDGz8n RhYeEC83B0AZXG04 KBg7L1hUBk8XPUh6 Nl1pUBoDMhkdDgAW G0BLDUcg X-Authentic-SMTP: 61633331373532.1014:706 X-AuthFastPath: 255 X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 24 Dec 2010 07:16:31 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Ben Pfaff List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) The GNU coding standards, at http://www.gnu.org/prep/standards/html_node/Errors.html#Errors say that one possible form for an error message is to mention a line number and a range of columns, like this: file:line.c1-c2: message However, Emacs compilation-mode misinterprets this form: it treats c2 as a second line number. For example, suppose I put the following in a.txt: ---------------------------------------------------------------------- One line of text. Second line of text. Third line of text. ---------------------------------------------------------------------- and then the following in b.txt: ---------------------------------------------------------------------- -*- compilation -*- a.txt:1.2-3: error: This error message will be misinterpreted as lines 1-3. a.txt:1.2-1.3: error: This error message will be interpreted correctly. ---------------------------------------------------------------------- If I click on the first error message in b.txt, then Emacs will briefly highlight all of a.txt except for the first character of the first line. If I click on the second error message, then I get the expected behavior for the first message, that is, the second and third characters of the first line in a.txt are highlighted. M-x emacs-version reports: GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian I haven't made any local changes, and I see the same behavior with "emacs -q" to turn off my .emacs file. Thanks, Ben. -- Ben Pfaff http://benpfaff.org From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 20:16:29 2013 Received: (at control) by debbugs.gnu.org; 22 Feb 2013 01:16:29 +0000 Received: from localhost ([127.0.0.1]:43240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U8hFU-0001E5-DS for submit@debbugs.gnu.org; Thu, 21 Feb 2013 20:16:28 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48652) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U8hFQ-0001Dw-Pd for control@debbugs.gnu.org; Thu, 21 Feb 2013 20:16:25 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U8hE9-0001sb-1O for control@debbugs.gnu.org; Thu, 21 Feb 2013 20:15:05 -0500 Date: Thu, 21 Feb 2013 20:15:05 -0500 Message-Id: Subject: control message for bug 7725 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) unarchive 13335 forcemerge 13335 7725 From unknown Sat Jun 14 03:47:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 22 Mar 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