diff options
| author | Gerd Moellmann | 1999-10-12 11:48:43 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-10-12 11:48:43 +0000 |
| commit | b07ea410a382deb8e8eae336302cc085269c8342 (patch) | |
| tree | ea5f58b823e6ae2cd2be2989b0a7b98247b5a657 | |
| parent | b581dd19c036ffc5352e91fac42675801e5bec4f (diff) | |
| download | emacs-b07ea410a382deb8e8eae336302cc085269c8342.tar.gz emacs-b07ea410a382deb8e8eae336302cc085269c8342.zip | |
(quickurl-list-insert): `count-lines' was returning
a value one line to high if the cursor wasn't at the start of a
line. A `beginning-of-line' is now performed before making the
call to `count-lines'.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/quickurl.el | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bd0d9840b6f..bdb1f3c6bf3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 1999-10-12 Dave Pearson <davep@hagbard.demon.co.uk> | ||
| 2 | |||
| 3 | * quickurl.el (quickurl-list-insert): `count-lines' was returning | ||
| 4 | a value one line to high if the cursor wasn't at the start of a | ||
| 5 | line. A `beginning-of-line' is now performed before making the | ||
| 6 | call to `count-lines'. | ||
| 7 | |||
| 1 | 1999-10-11 Stefan Monnier <monnier@cs.yale.edu> | 8 | 1999-10-11 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 9 | ||
| 3 | * diff-mode.el (vc-backend-diff): get rid of the autoloaded advice. | 10 | * diff-mode.el (vc-backend-diff): get rid of the autoloaded advice. |
diff --git a/lisp/quickurl.el b/lisp/quickurl.el index 3089e44754d..71d73ffd541 100644 --- a/lisp/quickurl.el +++ b/lisp/quickurl.el | |||
| @@ -506,7 +506,10 @@ TYPE dictates what will be inserted, options are: | |||
| 506 | `with-lookup' - Insert \"lookup <URL:url>\" | 506 | `with-lookup' - Insert \"lookup <URL:url>\" |
| 507 | `with-desc' - Insert \"description <URL:url>\" | 507 | `with-desc' - Insert \"description <URL:url>\" |
| 508 | `lookup' - Insert the lookup for that URL" | 508 | `lookup' - Insert the lookup for that URL" |
| 509 | (let ((url (nth (count-lines (point-min) (point)) quickurl-urls))) | 509 | (let ((url (nth (save-excursion |
| 510 | (beginning-of-line) | ||
| 511 | (count-lines (point-min) (point))) | ||
| 512 | quickurl-urls))) | ||
| 510 | (if url | 513 | (if url |
| 511 | (with-current-buffer quickurl-list-last-buffer | 514 | (with-current-buffer quickurl-list-last-buffer |
| 512 | (insert | 515 | (insert |