From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: minibuffer, input methods Date: Sun, 29 Oct 2006 16:42:57 -0500 Organization: UseNetServer.com Message-ID: <4ea8c$45451e3c$49f2612$23481@DIALUPUSA.NET> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162161651 673 80.91.229.2 (29 Oct 2006 22:40:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Oct 2006 22:40:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 29 23:40:44 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GeJKS-0008PV-SH for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Oct 2006 23:40:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeJKS-0005P0-B2 for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Oct 2006 17:40:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!208.49.83.154!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!DIALUPUSA.NET!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 103 Original-X-Trace: 4ea8c45451e3ca13a83b723481 Original-Xref: shelby.stanford.edu gnu.emacs.help:142779 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:38398 Archived-At: "Martin Steffen" wrote in message news:mailman.403.1162151752.27805.help-gnu-emacs@gnu.org... > > > Hi, > > I got the folling question/problem. It has to do > with the following: > > I want to type in characters not supported by my keyboard (to be concrete, > German umlauts) but not only that: > > I want that this is done also in the mini-buffer. > > > > As far as I have read through the ``theory'' of all it, I > have come so far that > > 1) I have installed leim in addition to the > plain emacs distrition > > > 2) I can activate some specific input-method, for > instance > > M-x set-input-method ->> german-prefix > > 3) Since point 2) does not lead to the fact that > that method is _inherited_ into the mini-buffer > (and since enable-recursive-minibuffers is > kind of weird and unpractical), I can set > > (setq minibuffer-allow-text-properties t) > > so that for instance when I do a ``text search'' > I can use this input method also when being > prompted for the search string. Is the integer that represents a character really a property? I don't think that diacriticals are properties even when using non pre-composed glyphs. I have this variable left at nil and the minibuffer inherits the input method wherever I think it should. > > > -- > > So far so good, now the problem starts :-) I have written > some home-brew emacs-lisps functions, which prompt > the user for some string, using for instance > > (read-string "word: " word)); > > Now, in the minibuffer, which is opened by read-string, > > > the input method is not inherited > > > Now, how can I have that? > > > I'm grateful for any hints, not only for in relation with the > last question (what's wrong with read-string?) but maybe > I'm in the complete wrong direction anyway? > > > > For instance, I remember in the good old days, there had been > the possiblity to type in umlauts with > > C-x 8 " u > > or analogously. > > I can still type this, but it has not the wanted effect. I see that the > "key" C-x 8 is bound to "iso-transl-ctl-x-8-map" but it doesn't do what I > expect. > > Or maybe german-prefix is a wrong choice? > > > Or maybe a trick could be, to set the input-method globally > for all of emacs, maybe then it gets inherited by all > minibuffers, also for read-string. > > Anyway, cheers, Martin (read-string "string: " nil nil nil t) works for me on 21.3 w32 build. I didn't use german-prefix (latin-1-postfix instead) but it should work for any of them. Have a look at the read-string function via C-h f. The fourth optional argument is INHERIT-INPUT-METHOD. Ed