1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
Commit Graph

104 Commits

Author SHA1 Message Date
Stefan Monnier
3da360a745 * progmodes/ada-xref.el (ada-prj-find-prj-file):
* progmodes/ada-mode.el (comment-region):
* calendar/todo-mode.el (todo-insert-item):
* bookmark.el (bookmark-buffer-name): Test major-mode rather than mode-name.
2008-01-04 06:18:31 +00:00
Karl Fogel
03e26a796d Change a return type, for greater extensibility. See
http://lists.gnu.org/archive/html/emacs-devel/2007-12/msg01077.html
and its thread for discussion leading to this change.

* emacs-cvs/lisp/bookmark.el:
(bookmark-jump-noselect): Return an alist instead of a dotted pair.
(bookmark-jump, bookmark-jump-other-window, bookmark-insert)
(bookmark-bmenu-2-window, bookmark-bmenu-other-window)
(bookmark-bmenu-switch-other-window): Adjust accordingly.
(bookmark-make-cell-function): Adjust documentation accordingly.

* emacs-cvs/lisp/image-mode.el
(image-bookmark-jump): Adjust return type accordingly; document.

* emacs-cvs/lisp/doc-view.el
(doc-view-bookmark-jump): Adjust return type accordingly; document.
2008-01-02 07:49:04 +00:00
Tassilo Horn
1666a6b3e8 2007-12-26 Tassilo Horn <tassilo@member.fsf.org>
* bookmark.el (bookmark-make-cell-function): New variable.
	(bookmark-make): Call bookmark-make-cell-function's function
	instead of bookmark-make-cell.
	(bookmark-get-handler, bookmark-jump-internal): New functions.
	(bookmark-jump, bookmark-jump-other-window, bookmark-insert)
	(bookmark-bmenu-2-window, bookmark-bmenu-other-window): Use
	bookmark-jump-internal.
	(bookmark-make-cell-for-text-file): Renamed from
	bookmark-make-cell.

	* doc-view.el (doc-view-bookmark-make-cell)
	(doc-view-bookmark-jump): New functions.
	(doc-view-mode): Set bookmark-make-cell-function buffer-locally.
2007-12-26 08:53:06 +00:00
Juanma Barranquero
768656652f (bookmark-bmenu-list, bookmark-show-all-annotations):
Use `mapc' rather than `mapcar'.
2007-09-25 10:43:39 +00:00
Dan Nicolaescu
4211e4349d (bookmark-xemacsp): Remove.
(bookmark-make): Don't use bookmark-xemacsp, use
(featurep 'xemacs) instead.
2007-09-22 03:11:04 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Thien-Thi Nguyen
089fb40e27 (bookmark-maybe-sort-alist): Don't modify bookmark-alist.
Instead, if not sorting, simply return it.
(bookmark-bmenu-list): Call bookmark-maybe-sort-alist
for its return value, not for its side effect.
2007-07-17 16:14:25 +00:00
Thien-Thi Nguyen
23fe28f248 (bookmark-show-all-annotations):
Make sure each inserted annotation ends with newline.
2007-07-17 16:10:13 +00:00
Thien-Thi Nguyen
1de49d4e21 (bookmark-maybe-sort-alist): Don't modify bookmark-alist.
Instead, if not sorting, simply return it.
(bookmark-bmenu-list): Call bookmark-maybe-sort-alist
for its return value, not for its side effect.
2007-07-16 16:59:58 +00:00
Thien-Thi Nguyen
fd5306d288 (bookmark-show-all-annotations):
Make sure each inserted annotation ends with newline.
2007-07-16 02:17:28 +00:00
Karl Fogel
36ae4ff74e Revert recent bookmark keybinding changes, thus returning to using
three slots under C-x r.  See this message and its thread for details:
http://lists.gnu.org/archive/html/emacs-devel/2007-07/msg00705.html.

* lisp/bookmark.el: Revert 2007-07-13T18:16:17Z!kfogel@red-bean.com.

* etc/NEWS: Revert 2007-07-13T23:20:21Z!kfogel@red-bean.com, which
  documented bookmark keybinding changes that were later reverted.

* man/ChangeLog: Remove ChangeLog entry for accidentally uncommitted
  changes to regs.texi that would have documented the keybinding
  change reverted above.
2007-07-15 01:34:15 +00:00
Karl Fogel
241ab2b5f9 * bookmark.el (bookmark-jump-other-window): New function.
(bookmark-map): Bind it to "o".

Patch by Drew Adams <drew.adams{_AT_}oracle.com>.  See
http://lists.gnu.org/archive/html/emacs-devel/2007-07/msg00633.html.
2007-07-13 18:20:55 +00:00
Karl Fogel
d14c45f7aa * bookmark.el: Shorten some comments to fit within 80 lines. 2007-07-13 18:18:04 +00:00
Karl Fogel
e4f6f302a5 * bookmark.el: Don't define bookmark keys under the "C-xr" map;
instead, make "C-xp" a prefix for bookmark-map.  Patch by Drew
  Adams <drew.adams{_AT_}oracle.com>, mildly tweaked by me.  See
  http://lists.gnu.org/archive/html/emacs-devel/2007-07/msg00633.html.
2007-07-13 18:16:17 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Karl Fogel
acf3709f01 * bookmark.el (bookmark-buffer-file-name): Abbreviate the bookmark path.
Rewrite function in `cond' style for readability.

Suggested by: Stephen Eglen <S.J.Eglen{_AT_}damtp.cam.ac.uk>
(The path shortening, that is, not the rearrarangement.)
2007-01-15 20:04:26 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Karl Fogel
9a9f1fddff * bookmark.el (bookmark-maybe-message): New function to reduce code
duplication: invokes `message' iff baud-rate is high enough.
  (bookmark-write-file): Use above instead of an inline conditional.
  (bookmark-load): Same.
2005-11-12 20:46:10 +00:00
Karl Fogel
a506054af7 (bookmark-write-file): Don't visit the destination file, just write
the data to it using write-region.  This is similar to 2005-05-29T08:36:26Z!rms@gnu.org
of saveplace.el, but with an additional change to avoid visiting the
file in the first place.
2005-11-12 20:30:22 +00:00
Romain Francoise
3778929297 (bookmark-menu-heading): New face.
(bookmark-bmenu-list): Use it.
Don't fiddle with `baud-rate' at top-level.
2005-10-19 09:45:43 +00:00
Romain Francoise
8b1b64617b * bookmark.el (bookmark-insert-location, bookmark-bmenu-list)
(bookmark-bmenu-hide-filenames): Improve help-echo text.
2005-10-18 18:29:11 +00:00
Romain Francoise
ee9791afe2 * bookmark.el (bookmark-insert-location, bookmark-bmenu-list)
(bookmark-bmenu-hide-filenames): Add follow-link property.
2005-10-18 11:05:11 +00:00
Deepak Goel
8a26c16552 Message format spec fixes (1) 2005-09-18 12:25:02 +00:00
Carsten Dominik
f74505caad Fixed typo. 2005-08-25 08:25:51 +00:00
Carsten Dominik
866a725707 (bookmark-after-jump-hook): New hook.
(bookmark-jump): Run `bookmark-after-jump-hook'.
2005-08-24 10:18:29 +00:00
Richard M. Stallman
08dcfdf600 (Info-current-file): Add defvar.
(bookmark-jump-noselect): Use with-no-warnings.
2005-08-09 02:54:39 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
d32ff76aa2 (bookmark-automatically-show-annotations, bookmark-read-annotation-text-func): Doc fixes.
(bookmark-save): Improve argument/docstring consistency.
(bookmark-get-bookmark, bookmark-get-bookmark-record,
bookmark-alist-from-buffer, bookmark-upgrade-file-format-from-0,
bookmark-grok-file-format-version, bookmark-maybe-upgrade-file-format,
bookmark-kill-line, bookmark-read-annotation-mode,
bookmark-insert-current-bookmark, bookmark-jump, bookmark-exit-hook):
Fix typos in docstrings.
(bookmark-exit-hooks): Define as obsolete alias.
(bookmark-exit-hook-internal): Run `bookmark-exit-hook',
not `bookmark-exit-hooks'.  Fix docstring.
(bookmark-bmenu-select): "?\ " -> "?\s".
2005-07-26 13:56:01 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Richard M. Stallman
f8e1f21382 (Info-current-node, Info-suffix-list): Add defvars. 2005-07-03 16:08:19 +00:00
Lute Kamstra
f33cee8546 (bookmark-read-annotation-mode, bookmark-edit-annotation-mode)
(bookmark-bmenu-mode): Use run-mode-hooks.
2005-05-26 12:28:39 +00:00
Karl Fogel
9552bee8c6 (bookmark-write-file): Catch errors writing file.
This is the same change as saveplace.el at 2005-04-10T23:32:00Z!rms@gnu.org.
2005-04-11 01:18:35 +00:00
Juri Linkov
b2a664c0dd (menu-bar-bookmark-map): Add ellipsis to "Jump to
Bookmark", "Set Bookmark", "Insert Contents", "Insert Location",
"Rename Bookmark", "Delete Bookmark".
2005-03-28 01:19:46 +00:00
Richard M. Stallman
5d8d3a34e5 (bookmark-jump): Nice error if BOOKMARK is nil. 2004-12-27 16:41:59 +00:00
Karl Fogel
037b0a8797 * bookmark.el (bookmark-bmenu-relocate): New function, as
suggested by David J. Biesack <David.Biesack@sas.com>.
  (bookmark-bmenu-mode-map): Bind `bookmark-bmenu-relocate' to "R".
  (bookmark-bmenu-mode): Describe binding in doc string.
  (bookmark-set-filename): Save the bookmark list if it's time.
2004-06-13 01:59:21 +00:00
Juanma Barranquero
dc5dcc000a (bookmark-send-edited-annotation): Fix docstring.
(bookmark-edit-annotation-mode): Add mode name.
2004-04-15 23:13:16 +00:00
Richard M. Stallman
d09596261d (bookmark-get-bookmark): Use assoc-string. 2003-12-29 19:04:08 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
175d0960bf (bookmark-completing-read): Use a popup menu if activated from the mouse.
Return a string, instead of a list of one string.
(bookmark-edit-annotation): Remove unused vars.
(bookmark-jump, bookmark-relocate, bookmark-insert-location)
(bookmark-rename, bookmark-insert, bookmark-delete): Adjust calls
to bookmark-completing-read.
(bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames)
(bookmark-bmenu-mark, bookmark-bmenu-select, bookmark-bmenu-unmark)
(bookmark-bmenu-delete, bookmark-bmenu-list): Use inhibit-read-only
and erase-buffer.
(bookmark-menu-delete, bookmark-menu-rename, bookmark-menu-locate)
(bookmark-menu-jump, bookmark-menu-insert)
(bookmark-popup-menu-and-apply-function)
(bookmark-menu-popup-paned-bookmark-menu): Remove.
(bookmark-menu-build-paned-menu): Remove by folding it into
bookmark-menu-popup-paned-menu.
(menu-bar-bookmark-map): Move the define-key statements here.
Use the "non-menu" commands since they now pop up a menu if needed.
(bookmark-exit-hook-internal): Simplify.
2003-08-11 17:30:47 +00:00
Andreas Schwab
a1ff29b98a Don't redo key bindings on loading, put them only in loaddefs.el. 2003-08-02 22:06:12 +00:00
Markus Rost
85d457c69c (bookmark-menu-length): Fix typo in group name. 2002-11-18 00:15:37 +00:00
Karl Fogel
76bc6ee386 * bookmark.el (bookmark-file-or-variation-thereof): Restore vc-backend
check, thanks to Robert Thorpe <robert.thorpe@antenova.com> for
  noticing.  Redocument.
2002-06-12 21:44:33 +00:00
Richard M. Stallman
99d30b0c06 (bookmark-file-or-variation-thereof): Doc fix. 2002-06-08 10:42:54 +00:00
Karl Fogel
dd33e6e94b * bookmark.el (bookmark-file-or-variation-thereof): Just use
Info-suffix-list, as suggested by Stefan Monnier.
2002-06-08 03:33:09 +00:00
Pavel Janík
f0529b5b1a Doc fix. 2001-12-20 19:01:00 +00:00
Sam Steingold
8a9463543d Converted backquote to the new style. 2001-11-27 15:52:52 +00:00
Gerd Moellmann
1672462f74 (bookmark-write-file): Bind print-length and
print-level to nil.  From Tom Capey <tomc@edina.co.uk>.
2001-09-04 13:17:56 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Eli Zaretskii
2fbb6576c8 (bookmark-insert-location, bookmark-bmenu-list)
(bookmark-bmenu-hide-filenames): Add help-echo to mouse-highlighted text.
(bookmark-bmenu-show-filenames): Remove help-echo property from
the whitespace.
2001-06-24 11:14:12 +00:00