aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2009-09-01 03:27:52 +0000
committerGlenn Morris2009-09-01 03:27:52 +0000
commitd80619faefb04b289ea2dfb9d83256d3a61159f6 (patch)
tree17e6c263998d609c33447a0ac02fc745b0143d62 /lisp
parent8c3ee88c2f5acda520cd3e1c48ca7aeec2610754 (diff)
downloademacs-d80619faefb04b289ea2dfb9d83256d3a61159f6.tar.gz
emacs-d80619faefb04b289ea2dfb9d83256d3a61159f6.zip
(etags-goto-tag-location): Use forward-line rather than goto-line.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/progmodes/etags.el10
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 280d258cca4..66e5caea47d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-09-01 Glenn Morris <rgm@gnu.org> 12009-09-01 Glenn Morris <rgm@gnu.org>
2 2
3 * mail/feedmail.el (file-name-buffer-file-type-alist): Define for
4 compiler.
5
3 * net/eudc-bob.el (eudc-bob-generic-menu, eudc-bob-image-menu) 6 * net/eudc-bob.el (eudc-bob-generic-menu, eudc-bob-image-menu)
4 (eudc-bob-sound-menu): Use defvar rather than defconst, since 7 (eudc-bob-sound-menu): Use defvar rather than defconst, since
5 easy-menu-define wants to modify these. 8 easy-menu-define wants to modify these.
@@ -10,6 +13,7 @@
10 * term/internal.el (dos-codepage-setup): 13 * term/internal.el (dos-codepage-setup):
11 Use default-value rather than default-enable-multibyte-characters. 14 Use default-value rather than default-enable-multibyte-characters.
12 15
16 * progmodes/etags.el (etags-goto-tag-location):
13 * progmodes/flymake.el (flymake-highlight-line) 17 * progmodes/flymake.el (flymake-highlight-line)
14 (flymake-goto-file-and-line, flymake-goto-line): 18 (flymake-goto-file-and-line, flymake-goto-line):
15 * progmodes/gdb-mi.el (gdb-mouse-until, gdb-mouse-jump) 19 * progmodes/gdb-mi.el (gdb-mouse-until, gdb-mouse-jump)
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index f3ffa1c2d91..7a557e95974 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1,8 +1,8 @@
1;;; etags.el --- etags facility for Emacs 1;;; etags.el --- etags facility for Emacs
2 2
3;; Copyright (C) 1985, 1986, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1998, 3;; Copyright (C) 1985, 1986, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1998,
4;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 4;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5;; Free Software Foundation, Inc. 5;; Free Software Foundation, Inc.
6 6
7;; Author: Roland McGrath <roland@gnu.org> 7;; Author: Roland McGrath <roland@gnu.org>
8;; Maintainer: FSF 8;; Maintainer: FSF
@@ -1331,7 +1331,8 @@ hits the start of file."
1331 offset found pat) 1331 offset found pat)
1332 (if (eq (car tag-info) t) 1332 (if (eq (car tag-info) t)
1333 ;; Direct file tag. 1333 ;; Direct file tag.
1334 (cond (line (goto-line line)) 1334 (cond (line (progn (goto-char (point-min))
1335 (forward-line (1- line))))
1335 (startpos (goto-char startpos)) 1336 (startpos (goto-char startpos))
1336 (t (error "etags.el BUG: bogus direct file tag"))) 1337 (t (error "etags.el BUG: bogus direct file tag")))
1337 ;; This constant is 1/2 the initial search window. 1338 ;; This constant is 1/2 the initial search window.
@@ -1349,7 +1350,8 @@ hits the start of file."
1349 ;; If no char pos was given, try the given line number. 1350 ;; If no char pos was given, try the given line number.
1350 (or startpos 1351 (or startpos
1351 (if line 1352 (if line
1352 (setq startpos (progn (goto-line line) 1353 (setq startpos (progn (goto-char (point-min))
1354 (forward-line (1- line))
1353 (point))))) 1355 (point)))))
1354 (or startpos 1356 (or startpos
1355 (setq startpos (point-min))) 1357 (setq startpos (point-min)))