unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
[parent not found: <<<CADwFkm=Bvo+Y3fjbzLdthQwPsjZ1sS_J4vMqNzp_rzX7DVUKzA@mail.gmail.com>]
* bug#36417: [PATCH] Document bookmark annotations in Emacs Manual
@ 2019-06-28 11:51 Stefan Kangas
  2019-06-28 14:19 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Kangas @ 2019-06-28 11:51 UTC (permalink / raw)
  To: 36417

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

bookmark.el has a useful feature to set and show annotations.  This is
unfortunately not very well documented in the Emacs manual.

Please find attached a patch that attempts to document this feature.

Thanks,
Stefan Kangas

[-- Attachment #2: 0001-Document-bookmark-annotations-in-Emacs-Manual.patch --]
[-- Type: text/x-patch, Size: 2072 bytes --]

From d13c355eb7d1cc345ae953ab9daefd81f12c8018 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Fri, 28 Jun 2019 13:40:37 +0200
Subject: [PATCH] Document bookmark annotations in Emacs Manual

* doc/emacs/regs.texi (Bookmarks): Document annotations.
* lisp/bookmark.el (bookmark-use-annotations): Clarify docstring.
---
 doc/emacs/regs.texi | 8 ++++++++
 lisp/bookmark.el    | 5 +----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/doc/emacs/regs.texi b/doc/emacs/regs.texi
index 3702694647..6a584038ed 100644
--- a/doc/emacs/regs.texi
+++ b/doc/emacs/regs.texi
@@ -359,6 +359,14 @@ Bookmarks
   The variable @code{bookmark-default-file} specifies the file in
 which to save bookmarks by default.
 
+@vindex bookmark-use-annotations
+@vindex bookmark-automatically-show-annotations
+  If you set the variable @code{bookmark-use-annotations} to t,
+setting a bookmark will query for an annotation.  The annotation will
+be automatically shown when you jump to that bookmark.  If you want to
+use annotations but not show them automatically, you can set
+@code{bookmark-automatically-show-annotations} to nil.
+
 @vindex bookmark-search-size
   Bookmark position values are saved with surrounding context, so that
 @code{bookmark-jump} can find the proper position even if the file is
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 381b912944..68b762ddd6 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -36,9 +36,6 @@
 
 ;;; Misc comments:
 ;;
-;; If variable bookmark-use-annotations is non-nil, an annotation is
-;; queried for when setting a bookmark.
-;;
 ;; The bookmark list is sorted lexically by default, but you can turn
 ;; this off by setting bookmark-sort-flag to nil.  If it is nil, then
 ;; the list will be presented in the order it is recorded
@@ -52,7 +49,7 @@ bookmark
 
 
 (defcustom bookmark-use-annotations nil
-  "If non-nil, saving a bookmark queries for an annotation in a buffer."
+  "If non-nil, setting a bookmark queries for an annotation in a buffer."
   :type 'boolean)
 
 
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-06-28 22:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <<CADwFkm=Bvo+Y3fjbzLdthQwPsjZ1sS_J4vMqNzp_rzX7DVUKzA@mail.gmail.com>
     [not found] ` <<83y31lhjwz.fsf@gnu.org>
2019-06-28 16:01   ` bug#36417: [PATCH] Document bookmark annotations in Emacs Manual Drew Adams
     [not found]   ` <<CADwFkmm89N1q7SQ0YY++Q=k5pOwZmQhjOs+aAT6BHptwk6eqHA@mail.gmail.com>
     [not found]     ` <<93a1eeb8-568b-4ecc-9d38-37ac23545977@default>
     [not found]       ` <<83mui1h7vf.fsf@gnu.org>
2019-06-28 18:52         ` Drew Adams
2019-06-28 19:45           ` Eli Zaretskii
     [not found] <<<CADwFkm=Bvo+Y3fjbzLdthQwPsjZ1sS_J4vMqNzp_rzX7DVUKzA@mail.gmail.com>
     [not found] ` <<<83y31lhjwz.fsf@gnu.org>
     [not found]   ` <<<CADwFkmm89N1q7SQ0YY++Q=k5pOwZmQhjOs+aAT6BHptwk6eqHA@mail.gmail.com>
     [not found]     ` <<<93a1eeb8-568b-4ecc-9d38-37ac23545977@default>
     [not found]       ` <<<83mui1h7vf.fsf@gnu.org>
     [not found]         ` <<079f4f36-497b-4580-905f-3acb2eb89f3e@default>
     [not found]           ` <<83k1d5h4u9.fsf@gnu.org>
2019-06-28 22:26             ` Drew Adams
2019-06-28 11:51 Stefan Kangas
2019-06-28 14:19 ` Eli Zaretskii
2019-06-28 15:13   ` Stefan Kangas
2019-06-28 15:18     ` Stefan Kangas
2019-06-28 18:37       ` Eli Zaretskii
2019-06-28 16:07     ` Drew Adams
2019-06-28 18:39       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).