From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: elisp question Date: Fri, 02 Dec 2005 15:43:09 +0100 Organization: sometimes Message-ID: <7efypb4l1e.fsf@ada2.unipv.it> References: <86acfl49nn.fsf@riemann.mri.ernet.in> <86mzjkwlaq.fsf@riemann.mri.ernet.in> <7er78w4c9t.fsf@ada2.unipv.it> <86psogj648.fsf@riemann.mri.ernet.in> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133543154 11479 80.91.229.2 (2 Dec 2005 17:05:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2005 17:05:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 02 18:05:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EiEIr-0003D4-PL for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Dec 2005 18:02:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EiEIn-0001VN-JK for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Dec 2005 12:02:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: ada2.unipv.it Original-X-Trace: quimby.gnus.org 1133534588 24743 193.204.44.145 (2 Dec 2005 14:43:08 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Fri, 2 Dec 2005 14:43:08 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:vpiwWSHN8rKPQD8c8NG/avLnVFc= Original-Xref: shelby.stanford.edu gnu.emacs.help:136007 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31614 Archived-At: "N. Raghavendra" writes: > There seems to be some incompatibility between the index files created > from the same fortune file by strfile(8) and `fcookie-create-index'. > In particular, if I create an index file with `fcookie-create-index' > and apply fortune(1) to it, I sometimes get the first cookie in the > file, or no cookie at all. OTOH, the same index file works well with > `fcookie'. > > Similarly, if I create an index file with strfile(8) and evaluate > `fcookie' on the corresponding cookie file, a buffer containing the > entire cookie file is displayed. the index file format and/or the programs that read/write it have mutated slightly over the years. tracking the variations is not worth it for the elisp manual where the priority, as i see it, of conciseness and clarity in the example would be defeated by the lengthenend code required for completeness. however, leaving such weirdness to fester outside the manual[1] is rather uncool. at the moment i have no cycles for debugging this, but if someone digs into the details and sends me a patch that includes not only a fix to the code but an explanation of the format drift, i would be glad to install it and give credit. on the other hand, if the patch reveals an actual bug in my understanding (reverse-engineering) of the index file format, i suppose i would install it and give credit (anyway), but only begrudgingly (don't let that dissuade anyone ;-). thi [1] http://www.glug.org/people/ttn/software/personal-elisp/ (look for fcookie.el in dist-lisp-index.html)