Commit a514d856 authored by Jose E. Marchesi's avatar Jose E. Marchesi Committed by Juanma Barranquero
Browse files

Fix goto-line bug.

lisp/simple.el (goto-line): Use string-to-number to provide a
numeric argument to read-number.
parent 1fb8351b
2011-07-28 Jose E. Marchesi <jemarch@gnu.org>
* simple.el (goto-line): Use string-to-number to provide a
numeric argument to read-number.
2011-07-27 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-maybe-send-script): Don't let-bind the
......
......@@ -900,10 +900,11 @@ rather than line counts."
(save-excursion
(skip-chars-backward "0-9")
(if (looking-at "[0-9]")
(buffer-substring-no-properties
(point)
(progn (skip-chars-forward "0-9")
(point))))))
(string-to-number
(buffer-substring-no-properties
(point)
(progn (skip-chars-forward "0-9")
(point)))))))
;; Decide if we're switching buffers.
(buffer
(if (consp current-prefix-arg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment