From: "Robert Thorpe" <robert.thorpe@antenova.com>
Subject: Re: info,bookmark and bzip2
Date: Mon, 10 Jun 2002 10:35:57 +0100 [thread overview]
Message-ID: <3D04810D.3978.6F1C42@localhost> (raw)
In-Reply-To: <87d6v2ppaw.fsf@floss.i-did-not-set--mail-host-address--so-shoot-me>
On 7 Jun 2002, at 19:49, Karl Fogel wrote:
> Okay, Robert, I applied a fix to bookmark.el. Please let me know how
> it works for you.
>
> The new revision of bookmark.el is 1.60; here is the diff from 1.59 to
> 1.60:
This works fine. It doesn't check vc anymore as far as I can tell.
I don't know whether this is a problem, I just thought you might
have forgotten about it.
>
> 2002-06-07 Karl Fogel <kfogel@red-bean.com>
>
> * bookmark.el (bookmark-file-or-variation-thereof): Just use
> Info-suffix-list, as suggested by Stefan Monnier.
>
>
> $ cvs diff -c -r 1.59 -r 1.60 bookmark.el
> Index: bookmark.el
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/lisp/bookmark.el,v
> retrieving revision 1.59
> retrieving revision 1.60
> diff -c -r1.59 -r1.60
> *** bookmark.el 20 Dec 2001 18:32:12 -0000 1.59
> --- bookmark.el 8 Jun 2002 03:33:09 -0000 1.60
> ***************
> *** 1072,1090 ****
>
>
> (defun bookmark-file-or-variation-thereof (file)
> ! "Return FILE (a string) if it exists in any reasonable variation, else nil.
> ! Reasonable variations are FILE.gz, FILE.Z, FILE.info, FILE.info.gz, etc."
> ! (cond
> ! ((file-exists-p file) file)
> ! ((file-exists-p (concat file ".Z")) (concat file ".Z"))
> ! ((file-exists-p (concat file ".gz")) (concat file ".gz"))
> ! ((file-exists-p (concat file ".z")) (concat file ".z"))
> ! ((file-exists-p (concat file ".info")) (concat file ".info"))
> ! ((file-exists-p (concat file ".info.gz")) (concat file ".info.gz"))
> ! ((file-exists-p (concat file ".info.Z")) (concat file ".info.Z"))
> ! ((file-exists-p (concat file ".info.z")) (concat file ".info.z"))
> ! ((vc-backend file) file) ; maybe VC has it?
> ! (t nil)))
>
>
> (defun bookmark-jump-noselect (str)
> --- 1072,1089 ----
>
>
> (defun bookmark-file-or-variation-thereof (file)
> ! "Return FILE if it exists, or return the first variation based on
> ! `Info-suffix-list' that exists, else return nil."
> ! (if (file-exists-p file)
> ! file
> ! (require 'info) ; ensure Info-suffix-list is bound
> ! (catch 'found
> ! (mapc (lambda (elt)
> ! (let ((suffixed-file (concat file (car elt))))
> ! (if (file-exists-p suffixed-file)
> ! (throw 'found suffixed-file))))
> ! Info-suffix-list)
> ! nil)))
>
>
> (defun bookmark-jump-noselect (str)
>
--
The information in this e-mail is for use by the addressee(s) only. If you
are not the intended recipient, please notify us immediately and delete the
message from your computer. No liability or responsibility is accepted for
viruses and it is your responsibility to scan attachments (if any).
Opinions and views expressed in this email are those of the sender and
do not reflect the opinions and views of antenova Ltd.
prev parent reply other threads:[~2002-06-10 9:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020605091708.6000BAA1@smtp.ether.antenova.co.uk>
2002-06-07 0:46 ` info,bookmark and bzip2 Richard Stallman
2002-06-07 15:18 ` Stefan Monnier
2002-06-07 15:33 ` Karl Fogel
[not found] ` <87d6v2ppaw.fsf@floss.i-did-not-set--mail-host-address--so-shoot-me>
2002-06-10 9:35 ` Robert Thorpe [this message]
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=3D04810D.3978.6F1C42@localhost \
--to=robert.thorpe@antenova.com \
/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).