Mercurial > hg > xemacs-beta
diff lisp/packages/bookmark.el @ 189:489f57a838ef r20-3b21
Import from CVS: tag r20-3b21
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:57:07 +0200 |
parents | 5a88923fcbfe |
children | 850242ba4a81 |
line wrap: on
line diff
--- a/lisp/packages/bookmark.el Mon Aug 13 09:56:30 2007 +0200 +++ b/lisp/packages/bookmark.el Mon Aug 13 09:57:07 2007 +0200 @@ -99,12 +99,20 @@ ;;; User Variables -(defvar bookmark-use-annotations nil - "*If non-nil, saving a bookmark will query for an annotation in a -buffer.") +(defgroup bookmarks nil + "Set bookmarks, maybe annotate them, jump to them later." + :prefix "bookmark-" + :group 'editing) -(defvar bookmark-save-flag t +(defcustom bookmark-use-annotations nil + "*If non-nil, saving a bookmark will query for an annotation in a +buffer." + :type 'boolean + :group 'bookmarks) + + +(defcustom bookmark-save-flag t "*Controls when Emacs saves bookmarks to a file. --> Nil means never save bookmarks, except when `bookmark-save' is explicitly called \(\\[bookmark-save]\). @@ -120,7 +128,11 @@ behavior.\) To specify the file in which to save them, modify the variable -bookmark-default-file, which is `~/.emacs.bmk' by default.") +bookmark-default-file, which is `~/.emacs.bmk' by default." + :type '(choice (const :tag "Never" nil) + (const :tag "On Exit" t) + (number :tag "Frequency" 1)) + :group 'bookmarks) (defconst bookmark-old-default-file "~/.emacs-bkmrks" @@ -139,43 +151,57 @@ "*File in which to save bookmarks by default.") -(defvar bookmark-version-control 'nospecial +(defcustom bookmark-version-control 'nospecial "*Whether or not to make numbered backups of the bookmark file. It can have four values: t, nil, `never', and `nospecial'. The first three have the same meaning that they do for the variable `version-control', and the final value `nospecial' means just -use the value of `version-control'.") +use the value of `version-control'." + :type '(choice (const t) (const nil) (const never) (const nospecial)) + :group 'bookmarks) -(defvar bookmark-completion-ignore-case t - "*Non-nil means bookmark functions ignore case in completion.") +(defcustom bookmark-completion-ignore-case t + "*Non-nil means bookmark functions ignore case in completion." + :type 'boolean + :group 'bookmarks) -(defvar bookmark-sort-flag t +(defcustom bookmark-sort-flag t "*Non-nil means that bookmarks will be displayed sorted by bookmark name. Otherwise they will be displayed in LIFO order (that is, most -recently set ones come first, oldest ones come last).") - - -(defvar bookmark-automatically-show-annotations t - "*Nil means don't show annotations when jumping to a bookmark.") +recently set ones come first, oldest ones come last)." + :type 'boolean + :group 'bookmarks) -(defvar bookmark-bmenu-file-column 30 - "*Column at which to display filenames in a buffer listing bookmarks. -You can toggle whether files are shown with \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-toggle-filenames].") +(defcustom bookmark-automatically-show-annotations t + "*Nil means don't show annotations when jumping to a bookmark." + :type 'boolean + :group 'bookmarks) -(defvar bookmark-bmenu-toggle-filenames t +(defcustom bookmark-bmenu-file-column 30 + "*Column at which to display filenames in a buffer listing bookmarks. +You can toggle whether files are shown with \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-toggle-filenames]." + :type 'integer + :group 'bookmarks) + + +(defcustom bookmark-bmenu-toggle-filenames t "*Non-nil means show filenames when listing bookmarks. This may result in truncated bookmark names. To disable this, put the following in your .emacs: -\(setq bookmark-bmenu-toggle-filenames nil\)") +\(setq bookmark-bmenu-toggle-filenames nil\)" + :type 'boolean + :group 'bookmarks) -(defvar bookmark-menu-length 70 - "*Maximum length of a bookmark name displayed on a popup menu.") +(defcustom bookmark-menu-length 70 + "*Maximum length of a bookmark name displayed on a popup menu." + :type 'integer + :group 'bookmarks) ;;; No user-serviceable parts beyond this point.