unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 36417@debbugs.gnu.org
Subject: bug#36417: [PATCH] Document bookmark annotations in Emacs Manual
Date: Fri, 28 Jun 2019 17:13:33 +0200	[thread overview]
Message-ID: <CADwFkmm89N1q7SQ0YY++Q=k5pOwZmQhjOs+aAT6BHptwk6eqHA@mail.gmail.com> (raw)
In-Reply-To: <83y31lhjwz.fsf@gnu.org>

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

Eli Zaretskii <eliz@gnu.org> writes:
> > +@vindex bookmark-use-annotations
> > +@vindex bookmark-automatically-show-annotations
>
> How about "@cindex bookmark annotations" as well?

Done.

> > +  If you set the variable @code{bookmark-use-annotations} to t,
>                                                                 ^
> @code{t}

Done.  Would we also want to do this change while we're at it, or is
it ok as is?

-  If you set the variable @code{bookmark-save-flag} to 1, each command
+  If you set the variable @code{bookmark-save-flag} to @code{1}, each command

> > +setting a bookmark will query for an annotation.  The annotation will
> > +be automatically shown when you jump to that bookmark.
>
> Please explain what does "show" mean in this context.

Done.  Let me know if it's not clear enough.

> Btw, what is the use case for using annotations but not showing them?
> If that use case is not important enough, perhaps we shouldn't mention
> the second option.

Good point.  I don't think it's a very important use case, so I
removed it.

Thank you for reviewing; sorry about the basic mistakes.  Please find
attached an updated patch.

Thanks,
Stefan Kangas

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

From 251d4b3de994a4d9a55e2ec94a3c9945d4297d38 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 | 7 +++++++
 lisp/bookmark.el    | 5 +----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/doc/emacs/regs.texi b/doc/emacs/regs.texi
index 3702694647..1c8e338e65 100644
--- a/doc/emacs/regs.texi
+++ b/doc/emacs/regs.texi
@@ -359,6 +359,13 @@ Bookmarks
   The variable @code{bookmark-default-file} specifies the file in
 which to save bookmarks by default.
 
+@vindex bookmark-use-annotations
+@cindex bookmark annotations
+  If you set the variable @code{bookmark-use-annotations} to @code{t},
+setting a bookmark will query for an annotation.  The annotation will
+be automatically shown in a separate window when you jump to a
+bookmark.
+
 @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 9a3a2a3bdf..bbef0a927d 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
   :group 'bookmark)
 
-- 
2.11.0


  reply	other threads:[~2019-06-28 15:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-28 11:51 bug#36417: [PATCH] Document bookmark annotations in Emacs Manual Stefan Kangas
2019-06-28 14:19 ` Eli Zaretskii
2019-06-28 15:13   ` Stefan Kangas [this message]
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
     [not found] <<CADwFkm=Bvo+Y3fjbzLdthQwPsjZ1sS_J4vMqNzp_rzX7DVUKzA@mail.gmail.com>
     [not found] ` <<83y31lhjwz.fsf@gnu.org>
2019-06-28 16:01   ` 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmm89N1q7SQ0YY++Q=k5pOwZmQhjOs+aAT6BHptwk6eqHA@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=36417@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).