From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: inputting characters by hexadigit Date: Thu, 24 Jul 2008 23:59:34 +0200 Message-ID: <4888FB46.5040307@gmail.com> References: <868ww3vydn.fsf@lifelogs.com> <87mykhz6tf.fsf@jurta.org> <87tzeokrku.fsf@jurta.org> <87od4wgg8p.fsf@catnip.gol.com><86od4vmi5i.fsf@lifelogs.com> <873am6n21q.fsf@jurta.org> <87sku5if8t.fsf_-_@jurta.org> <87od4sti4g.fsf@jurta.org><867ibcekf3.fsf@lifelogs.com> <86tzegcq15.fsf@lifelogs.com> <86bq0nctbv.fsf@lifelogs.com> <86r69jb8z2.fsf@lifelogs.com> <005a01c8edae$beff6480$0ab32382@us.oracle.com> <008001c8edcb$b5276120$0ab32382@us.oracle.com> <4888E819. 3050500@gmail.com> <4888F464.90304@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216936814 27201 80.91.229.12 (24 Jul 2008 22:00:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 22:00:14 +0000 (UTC) Cc: 'Stefan Monnier' , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 25 00:01:02 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KM8rk-00089f-F7 for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2008 00:00:52 +0200 Original-Received: from localhost ([127.0.0.1]:39942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM8qq-0004B6-Mt for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 17:59:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KM8qk-00046H-Nd for emacs-devel@gnu.org; Thu, 24 Jul 2008 17:59:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KM8qi-00041c-6B for emacs-devel@gnu.org; Thu, 24 Jul 2008 17:59:49 -0400 Original-Received: from [199.232.76.173] (port=56357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM8qh-00041S-Sv for emacs-devel@gnu.org; Thu, 24 Jul 2008 17:59:47 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:51169) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KM8qg-0006FJ-SN for emacs-devel@gnu.org; Thu, 24 Jul 2008 17:59:47 -0400 Original-Received: from c83-254-151-176.bredband.comhem.se ([83.254.151.176]:61841 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KM8qZ-00072Z-8B; Thu, 24 Jul 2008 23:59:39 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <4888F464.90304@gmail.com> X-Antivirus: avast! (VPS 080724-1, 2008-07-24), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.176 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1KM8qZ-00072Z-8B. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KM8qZ-00072Z-8B 91d04b236fc7d5e5f50fd1324aa1e6f2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101425 Archived-At: Lennart Borgman (gmail) wrote: >> Could not this be done by just renaming the C function completing-read >> to completing-read-1 and then adding >> >> (defun completing-read (prompt >> collection >> &optional predicate require-match >> initial-input hist def >> inherit-input-method) >> ... documentation ... >> (if completing-read-function >> (funcall completing-read-function ...) >> (completing-read-1 ...))) >> >> to minibuffer.el? > > > If implemented like this then completing-read-1 and completing-read will > have identical argument lists. How should the doc strings for those > functions be handled in a case like this? > > Is it ok to refer from completing-read to completing-read-1 and keep the > full doc in the C code? (I guess it is very useful in the C code as a > comment to the code.) And it can not be done that simple ;-( There are some calls to Fcompleting_read (the C imlementation of completing-read). This makes is necessary to write a new C function taking care of these calls. This new function must be able to call the lisp function pointed to by completing-read-function. I do not know how to do that.