diff options
| author | Jose E. Marchesi | 2011-07-28 16:05:07 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-07-28 16:05:07 +0200 |
| commit | a514d8567cf3844f53e86244de14fb0184900ee1 (patch) | |
| tree | 4baf5c307f9e05cbfa6556f7f9e157dba123a225 | |
| parent | 1fb8351b1d864005298e77af0b89f95508735d1b (diff) | |
| download | emacs-a514d8567cf3844f53e86244de14fb0184900ee1.tar.gz emacs-a514d8567cf3844f53e86244de14fb0184900ee1.zip | |
Fix goto-line bug.
lisp/simple.el (goto-line): Use string-to-number to provide a
numeric argument to read-number.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index afa15eab24e..8b92eab8579 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-07-28 Jose E. Marchesi <jemarch@gnu.org> | ||
| 2 | |||
| 3 | * simple.el (goto-line): Use string-to-number to provide a | ||
| 4 | numeric argument to read-number. | ||
| 5 | |||
| 1 | 2011-07-27 Michael Albinus <michael.albinus@gmx.de> | 6 | 2011-07-27 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/tramp-sh.el (tramp-maybe-send-script): Don't let-bind the | 8 | * net/tramp-sh.el (tramp-maybe-send-script): Don't let-bind the |
diff --git a/lisp/simple.el b/lisp/simple.el index 7fd7e20b499..fe46e36fdac 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -900,10 +900,11 @@ rather than line counts." | |||
| 900 | (save-excursion | 900 | (save-excursion |
| 901 | (skip-chars-backward "0-9") | 901 | (skip-chars-backward "0-9") |
| 902 | (if (looking-at "[0-9]") | 902 | (if (looking-at "[0-9]") |
| 903 | (buffer-substring-no-properties | 903 | (string-to-number |
| 904 | (point) | 904 | (buffer-substring-no-properties |
| 905 | (progn (skip-chars-forward "0-9") | 905 | (point) |
| 906 | (point)))))) | 906 | (progn (skip-chars-forward "0-9") |
| 907 | (point))))))) | ||
| 907 | ;; Decide if we're switching buffers. | 908 | ;; Decide if we're switching buffers. |
| 908 | (buffer | 909 | (buffer |
| 909 | (if (consp current-prefix-arg) | 910 | (if (consp current-prefix-arg) |