diff options
| author | Karl Fogel | 2009-10-04 23:48:33 +0000 |
|---|---|---|
| committer | Karl Fogel | 2009-10-04 23:48:33 +0000 |
| commit | 5c1b3e94ad244e8aa79314907b47fae25844cc3e (patch) | |
| tree | c1a210bc49495e002a67912718463034af915871 | |
| parent | 8559076d2072ba7dec9445368b7db66e520ada2d (diff) | |
| download | emacs-5c1b3e94ad244e8aa79314907b47fae25844cc3e.tar.gz emacs-5c1b3e94ad244e8aa79314907b47fae25844cc3e.zip | |
(bookmark-alist): Document the new `handler' element in the param alist.
(bookmark-make-record-function): Adjust documentation for above.
(Bug#4193)
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/bookmark.el | 14 |
2 files changed, 16 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2f65655e4ab..cf070abcce5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2009-10-04 Karl Fogel <kfogel@red-bean.com> | 1 | 2009-10-04 Karl Fogel <kfogel@red-bean.com> |
| 2 | 2 | ||
| 3 | * bookmark.el (bookmark-alist): Document the new `handler' element | ||
| 4 | in the param alist. | ||
| 5 | (bookmark-make-record-function): Adjust documentation for above. | ||
| 6 | (Bug#4193) | ||
| 7 | |||
| 8 | 2009-10-04 Karl Fogel <kfogel@red-bean.com> | ||
| 9 | |||
| 3 | * info.el (Info-bookmark-make-record): Document this function. | 10 | * info.el (Info-bookmark-make-record): Document this function. |
| 4 | (Info-bookmark-jump): Document with a doc string, not just a comment. | 11 | (Info-bookmark-jump): Document with a doc string, not just a comment. |
| 5 | (Bug#4203) | 12 | (Bug#4203) |
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 613c3e07c85..c072b568a82 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -270,7 +270,12 @@ the new favored one. PARAM-ALIST is typically of the form: | |||
| 270 | (front-context-string . FRONT-STR) | 270 | (front-context-string . FRONT-STR) |
| 271 | (rear-context-string . REAR-STR) | 271 | (rear-context-string . REAR-STR) |
| 272 | (position . POS) | 272 | (position . POS) |
| 273 | (annotation . ANNOTATION)))") | 273 | (handler . HANDLER-FUNC) |
| 274 | (annotation . ANNOTATION)) | ||
| 275 | |||
| 276 | If the element `(handler . HANDLER-FUNC)' is present, HANDLER-FUNC | ||
| 277 | will be used to open this bookmark instead of `bookmark-default-handler', | ||
| 278 | whose calling discipline HANDLER-FUNC should of course match.") | ||
| 274 | 279 | ||
| 275 | 280 | ||
| 276 | (defvar bookmarks-already-loaded nil) | 281 | (defvar bookmarks-already-loaded nil) |
| @@ -457,10 +462,9 @@ the current location. | |||
| 457 | 462 | ||
| 458 | The returned record should be a cons cell of the form (NAME . ALIST) | 463 | The returned record should be a cons cell of the form (NAME . ALIST) |
| 459 | where ALIST is as described in `bookmark-alist' and may typically contain | 464 | where ALIST is as described in `bookmark-alist' and may typically contain |
| 460 | a special cons (handler . SOME-FUNCTION) which sets the handler function | 465 | a special cons (handler . HANDLER-FUNC) which specifies the handler function |
| 461 | that should be used to open this bookmark instead of | 466 | that should be used instead of `bookmark-default-handler' to open this |
| 462 | `bookmark-default-handler'. The handler should follow the same calling | 467 | bookmark. See the documentation for `bookmark-alist' for more. |
| 463 | convention as the one used by `bookmark-default-handler'. | ||
| 464 | 468 | ||
| 465 | NAME is a suggested name for the constructed bookmark. It can be nil | 469 | NAME is a suggested name for the constructed bookmark. It can be nil |
| 466 | in which case a default heuristic will be used. The function can also | 470 | in which case a default heuristic will be used. The function can also |