unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark Lillibridge <mark.lillibridge@hp.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: lekktu@gmail.com, eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: Emacs's handling of line numbers [from bug#5042]
Date: Tue, 08 Jun 2010 19:19:15 -0700	[thread overview]
Message-ID: <qmh7hm9hrrw.fsf@ts-rhel4.hpl.hp.com> (raw)
In-Reply-To: <jwvvd9veiny.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 6 Jun 2010 21:30:13 -0400)


>  > * {esc}g currently calls goto-line, but a grep through the elisp sources
>  >   of Emacs shows a lots of calls to goto-line, any of which might be
>  >   broken by changing the behavior of goto-line
>  
>  Grep counts 8 such calls only.  Doesn't seem unmanageable at all.

I think you missed some:

ts-rhel4 [58]% pwd
/nfs/pm-data1/mnt/d4/home/mdl/bin/emacs-23.1/lisp
                                                                                
ts-rhel4 [59]% find . -name \*.el -exec grep '(goto-line' {} \; -print
      (goto-line line))
./bs.el
		(goto-line line)
	      (goto-line (1+ line)))
./cus-edit.el
	(goto-line (string-to-number line))
./diff-mode.el
    (goto-line line)
	    (goto-line 1)
    (goto-line line)
./org/org-agenda.el
		(goto-line (car x))
    (goto-line line)
		(goto-line (car x))
./org/org-colview.el
      (goto-line (1+ skip1))
./org/org-exp.el
    (goto-line line)
    (goto-line line)
./org/org-list.el
       (goto-line _line)
./org/org-macs.el
    (goto-line winstartline)
    (goto-line linepos)
    (goto-line linepos)
    (goto-line linepos)
    (goto-line linepos)
    (goto-line thisline)
	  (goto-line l1)
    (goto-line line)
	(goto-line cline)
      (goto-line last-dline)
    (if l1 (goto-line l1))
	  (goto-line l1)
	  (goto-line l1)))
    (goto-line l)
	    (goto-line r1)
	(goto-line r1)
	(goto-line r2)
	  (goto-line (nth 1 a))
	    (goto-line org-last-recalc-line)
	(goto-line (nth 1 eq))
      (goto-line thisline)
      (goto-line thisline)
    (goto-line startline)
    (goto-line line)))
	  (goto-line (nth 1 e))
	    (goto-line (aref org-table-dlines l))
	(goto-line (nth 1 e))
    (goto-line l1)
./org/org-table.el
      (goto-line line)
      (goto-line line)
	(goto-line line))
      (goto-line line)
      (if line (goto-line line)
	  (goto-line l)
    (goto-line 3)
./org/org.el
    (goto-line line)))
./ibuffer.el
	     (goto-line (cvs-find-modif fi)))
./pcvs.el
    (goto-line (car line-col))
./server.el
		       (goto-line line))
			       (goto-line line))
./startup.el
				     (goto-line (+ 16 i y))
		     (goto-line (+ 17 y))
./strokes.el
	(goto-line line)
./term.el
            (goto-line ,current-line)
./vc-annotate.el
          (goto-line (pop insn))
                   (goto-line (pop insn))
./vc-rcs.el
;;  (if line (goto-line (prefix-numeric-value line))
  (goto-line line)
./view.el
            (goto-line 3)) ; first error message
            (goto-line 3)) ; first error message
./textmodes/bibtex.el
    (goto-line top)
    (goto-line sl)
./textmodes/picture.el
    (goto-line 3)
./textmodes/reftex-index.el
            (goto-line loc)
      (goto-line reftex-last-line))
./textmodes/reftex-sel.el
      (goto-line 3)
      (progn (goto-line mark-line)
  (if point-line (goto-line point-line))
./textmodes/reftex-toc.el
          (goto-line line)
					  (goto-line (car deco))
	(goto-line (car deco))
                      (goto-line (car deco))
    (goto-line line)
        (goto-line (car cur))
./textmodes/rst.el
		      (progn (goto-line linenum) (setq last-position nil))
./textmodes/tex-mode.el
    (newline (goto-line line))
./textmodes/two-column.el
    (goto-line (if (consp ns-input-line)
                 (goto-line (if (consp ns-input-line)
                 (goto-line (+ 1 (if (consp ns-input-line)
./term/ns-win.el
	    (goto-line (string-to-number line)))
./progmodes/ada-mode.el
	    (goto-line (caar declist)))
	    (goto-line (car (nth (1- choice) declist)))
    (goto-line line)
./progmodes/ada-xref.el
            `(goto-line (string-to-int (elt ,elt 1))))
    (goto-line l)
./progmodes/cperl-mode.el
    (goto-line old-line)))
    (goto-line n)
./progmodes/ebrowse.el
	(cond (line (goto-line line))
	      (setq startpos (progn (goto-line line)
./progmodes/etags.el
  (goto-line line-no)
    (goto-line line)))
  (goto-line line-no)
./progmodes/flymake.el
		    (goto-line (line-number-at-pos (posn-point end)))
		    (goto-line (line-number-at-pos (posn-point end)))
				  (goto-line (string-to-number line))
		(goto-line (string-to-number line))
	(goto-line (string-to-number line))
./progmodes/gdb-ui.el
	      (goto-line line)
./progmodes/gud.el
    (goto-line (nth 1 frame)))))
            (goto-line (nth 1 frame))
    (goto-line bp-line)))
./progmodes/idlw-shell.el
    (goto-line this-line)
    (goto-line 1)
./progmodes/make-mode.el
      (goto-line line))))
            (goto-line target_lineno)
./progmodes/python.el
            (goto-line (string-to-number line))
./progmodes/verilog-mode.el
	(goto-line (cdr token))
				 (progn (goto-line (cdr token))
		       (progn (goto-line (nth 3 (car ent-alist)))
./progmodes/vhdl-mode.el
  (goto-line (+ (* 5x5-y-pos 5x5-y-scale) 2))
./play/5x5.el
  (goto-line 4)
./play/decipher.el
    (goto-line (1+ gamegrid-score-file-length))
./play/gamegrid.el
    (goto-line (+ 1 gomoku-y-offset (* gomoku-square-height (1- y)))))
./play/gomoku.el
    (goto-line (+ 1 lm-y-offset (* lm-square-height (1- y)))))
./play/landmark.el
  (goto-line 3)
  (goto-line 7)
	    (goto-line (car square))	; line before column!
./play/mpuz.el
      (narrow-to-region (point-min) (progn (goto-line (point-min))
./obsolete/rnewspost.el
     (goto-line (vi-prefix-numeric-value arg))))
./emulation/vi.el
          (goto-line calendar-first-date-row)
    (goto-line (+ calendar-first-date-row
./calendar/cal-move.el
    (goto-line (string-to-number line))))
./gnus/gnus-art.el
		  (goto-line min-line)
./gnus/gnus-salt.el
		 (goto-line calc-final-point-line)
	       (goto-line calc-final-point-line)
	(goto-line 2)
./calc/calc.el

- Mark



  parent reply	other threads:[~2010-06-09  2:19 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-15 18:47 Emacs's handling of line numbers [from bug#5042] Mark Lillibridge
     [not found] ` <jwvd4068dsr.fsf-monnier+emacs@gnu.org>
2010-04-11 22:22   ` Mark Lillibridge
2010-04-12  2:27     ` Stefan Monnier
2010-04-17  1:57       ` Mark Lillibridge
2010-04-17  7:29         ` Eli Zaretskii
2010-04-17 14:45           ` Stefan Monnier
2010-04-17 15:57             ` Eli Zaretskii
2010-04-17 19:51               ` Mark Lillibridge
2010-04-17 21:04                 ` Eli Zaretskii
2010-04-17 21:17                   ` Juanma Barranquero
2010-04-17 21:31                     ` Drew Adams
2010-04-18 18:15                       ` widen-one-level [was: Emacs's handling of line numbers] Drew Adams
2010-04-18 21:31                         ` Juri Linkov
2010-04-19  0:25                           ` Drew Adams
2010-04-18 23:30                         ` Davis Herring
2010-04-19 19:57                           ` Richard Stallman
2010-04-19 20:22                             ` Drew Adams
2010-04-19 22:52                             ` Juri Linkov
2010-04-19  1:56                         ` Leo
2010-04-19  2:04                           ` Drew Adams
2010-04-19 11:34                             ` Leo
2010-04-19 16:31                             ` Drew Adams
2010-04-19 17:57                               ` Leo
2010-04-19 22:56                                 ` Drew Adams
2010-04-22  9:59                                   ` Leo
2010-04-18  3:12                     ` Emacs's handling of line numbers [from bug#5042] Eli Zaretskii
2010-04-18  3:49                       ` Juanma Barranquero
2010-04-18  8:05                         ` Juri Linkov
2010-04-18 13:44                           ` Drew Adams
2010-04-18 13:50                             ` Lennart Borgman
2010-04-18 16:40                               ` Drew Adams
2010-04-18 14:03                             ` Juanma Barranquero
2010-04-18 14:14                               ` David Kastrup
2010-04-18 16:41                               ` Drew Adams
2010-04-18 17:03                                 ` Juanma Barranquero
2010-04-18 21:29                                   ` Juri Linkov
2010-04-18 13:45                           ` Drew Adams
2010-04-18 17:29                         ` Eli Zaretskii
2010-04-18 17:52                           ` Juanma Barranquero
2010-04-18 17:56                             ` Eli Zaretskii
2010-04-18 17:00                       ` Mark Lillibridge
2010-04-18 17:38                         ` Eli Zaretskii
2010-04-18 18:11                           ` Lennart Borgman
2010-04-22  2:17                           ` Mark Lillibridge
2010-04-22  8:06                             ` David Kastrup
2010-04-22  8:38                               ` Juri Linkov
2010-04-22  8:45                               ` Juanma Barranquero
2010-06-06 18:18                             ` Mark Lillibridge
2010-06-07  1:30                               ` Stefan Monnier
2010-06-07  1:41                                 ` Lennart Borgman
2010-06-07 13:45                                   ` Stefan Monnier
2010-06-09  2:20                                     ` Mark Lillibridge
2010-06-09  3:44                                       ` Miles Bader
2010-06-09  2:19                                 ` Mark Lillibridge [this message]
2010-06-09  6:37                                   ` Glenn Morris
2010-06-24  2:24                                     ` Mark Lillibridge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qmh7hm9hrrw.fsf@ts-rhel4.hpl.hp.com \
    --to=mark.lillibridge@hp.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).