emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inputting characters by hexadigit


From: Lennart Borgman (gmail)
Subject: Re: inputting characters by hexadigit
Date: Thu, 24 Jul 2008 23:59:34 +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

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]