GNU bug report logs - #8774
incorrect line numbers from byte-compile-file

Previous Next

Package: emacs;

Reported by: Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>

Date: Tue, 31 May 2011 16:02:01 UTC

Severity: minor

Merged with 2681, 9109, 22288, 24128, 24592

Found in versions 23.0.91, 23.3.1, 24.0.50, 24.3.1, 25.0.50, 25.1

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8774 in the body.
You can then email your comments to 8774 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8774; Package emacs. (Tue, 31 May 2011 16:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 31 May 2011 16:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>
To: bug-gnu-emacs <at> gnu.org
Cc: Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk>
Subject: incorrect line numbers from byte-compile-file
Date: Tue, 31 May 2011 15:33:21 +0100
With emacs -q, load the following into a file, test.el
----------------------------------------------------------------------
(defun fix-page-breaks ()
  "Fix page breaks in SAS 6 print files."
  (interactive)
  (save-excursion
    (goto-char (point-min))
    (if (looking-at "\f") (delete-char 1))
    (replace-regexp "^\\(.+\\)\f" "\\1\n\f\n")
    (goto-char (point-min))
    (replace-regexp "^\f\\(.+\\)" "\f\n\\1")
    (goto-char (point-min))))


----------------------------------------------------------------------

then M-x byte-compile-file generates:

Compiling file /Users/stephen/txt/t/test.el at Tue May 31 15:28:08 2011

In fix-page-breaks:
test.el:6:28:Warning: `replace-regexp' used from Lisp code
That command is designed for interactive use only
test.el:7:6:Warning: `replace-regexp' used from Lisp code
That command is designed for interactive use only

The first error has the wrong line, although it has caught the two
problematic cases.

This is with emacs 23.3.1, but same behaviour seen on Emacs 24.0.50

Stephen

(emacs-version)
"GNU Emacs 23.3.1 (x86_64-apple-darwin10.6.0, NS apple-appkit-1038.35)
 of 2011-03-10 on teva.local"




bug Marked as found in versions 23.3.1. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Wed, 01 Jun 2016 15:34:03 GMT) Full text and rfc822 format available.

Merged 2681 8774 22288. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Wed, 01 Jun 2016 15:34:03 GMT) Full text and rfc822 format available.

Merged 2681 8774 9109 22288. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Fri, 05 Aug 2016 01:30:03 GMT) Full text and rfc822 format available.

Forcibly Merged 2681 8774 9109 22288 24449. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 16:46:01 GMT) Full text and rfc822 format available.

Forcibly Merged 2681 8774 9109 22288 24128 24449. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 16:48:01 GMT) Full text and rfc822 format available.

Disconnected #24449 from all other report(s). Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 20:33:01 GMT) Full text and rfc822 format available.

Merged 2681 8774 9109 22288 24128 24592. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Wed, 05 Oct 2016 00:00:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 20 Feb 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 117 days ago.

Previous Next


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