unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <bug-gnu-emacs@gnu.org>
Subject: bookmark structure
Date: Fri, 4 Apr 2008 17:02:44 -0700	[thread overview]
Message-ID: <000d01c896b0$6044c7f0$0200a8c0@us.oracle.com> (raw)

The doc string of bookmark-alist says each entry has this form:
 
(NAME
  (filename . FILE)
  (front-context-string . FRONT-STR)
  (rear-context-string  . REAR-STR)
  (position . POS)
  (info-node . POS)
  (annotation . ANNOTATION))
 
There should not be two occurrences of POS, unless they always have
the same value. The doc string says that info-node is optional, but it
doesn't say that annotation is optional. And the syntax description
doesn't reflect the fact that these are optional (no brackets).
 
The comments in the code, on the other hand, say that this is the(new)
structure:
 
;;        (bookmark-name ((filename . FILENAME)
;;                        (front-context-string . string-in-front)
;;                        (rear-context-string  . string-behind)
;;                        (position . POINT)
;;                        (annotation . annotation)
;;                        (whatever   . VALUE)
;;                        ...
;;                        ))
 
bookmark-name, string-in-front, string-behind, and the second
occurrence of annotation here should be uppercase here.
 
Compared to the doc string, there is an additional level of parens
here for the body, info-node is missing, and additional kinds of
entries (whatever . VALUE)..., are acceptable.
 
The two descriptions should be similar.  It seems that neither is
quite correct. The doc string is missing a level of parens, at least.
 

In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
 of 2008-03-26 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
 





             reply	other threads:[~2008-04-05  0:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-05  0:02 Drew Adams [this message]
2008-04-05 14:15 ` bookmark structure Stefan Monnier
2008-04-05 16:53   ` Drew Adams
2008-04-05 18:02     ` Stefan Monnier

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='000d01c896b0$6044c7f0$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=bug-gnu-emacs@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).