From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: helpex.el 0.2 --- useful extensions for the C-h prefix Date: Wed, 21 Jan 2004 20:44:16 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074718078 16044 80.91.224.253 (21 Jan 2004 20:47:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2004 20:47:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 21 21:47:49 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AjPGO-0008EM-00 for ; Wed, 21 Jan 2004 21:47:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AjPFb-00019n-0r for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Jan 2004 15:46:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1074717856 132.204.24.84 (Wed, 21 Jan 2004 15:44:16 EST) Original-NNTP-Posting-Date: Wed, 21 Jan 2004 15:44:16 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:120310 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16254 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16254 >>> (defun helpex-find-library (library) >> Emacs-CVS has `find-library' which does the same (with completion and all). > Nice. I don't have Emacs CVS ;) I assumed that much. Just letting you know. > Does that break helpex in any way on Emacs-CVS or do you just don't > like having redundant code loaded? It doesn't break anything, but you might want to only use your definition if the underlying Emacs does not offer its own (unless yours has some extra feature, of course). > Is there a good solution for the Info-goto-node "problem" as well? IIRC, the goto-node code in CVS does completion within the parenthesese, but it does not do completion of the node name afterwards (this requires looking inside the Info file and I didn't bother writing it up). > IOW: If you have an info file called "foo" with a node "Bar Baz" (e.g. > "(elisp)Regular Expressions"), can you type > C-h i g (foo)Bar SPC Baz RET > while p-c-m is enabled, *without* making Emacs barf about no > completion when hitting SPC? I haven't used p-c-m in a while and I use C-a SPC to insert a space, so I wouldn't know. If it works without p-c-m, then it's a bug in p-c-m, otherwise it's a misfeature. >> I think (fboundp 'locate-file-completion) is a good way to tell whether to >> use your own code or the built-in one (I think the built-in's completion is >> slightly better because it is more complete (e.g. works when the user has >> entered /foo/bar/baz) and it is "on-the-fly" (i.e. it only searches the >> file-system when you press TAB rather than when you call locate-library)). > Since you don't have to bind my functions to any key, it should not > make any problems to the "minority" using CVS versions, does it? Or > are the key bindings used by helpex (C-h L, C-h o) used by CVS emacs > by default as well? Oh, no, as I said, there's no problem whatsoever. I was just advocating my own code, hoping you'd try it out and improve it further rather than just replicate it in your own corner with just slightly different limitations. Stefan