all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ye Wenbin" <wenbinye@163.com>
Cc: emacs <help-gnu-emacs@gnu.org>
Subject: Re: how to restore let binding variables after minibuffer keybord-quit
Date: Tue, 06 Jun 2006 19:20:01 +0800	[thread overview]
Message-ID: <op.tap1rng8rgymni@ye> (raw)
In-Reply-To: <87odx65zz6.fsf@robotron.kosmorama>


Thanks!
Because I use the after-change-functions to convert letters to chinese  
charaters,
so I need to set the after-change-functions.

But I found I made a stupid mistake that after-change-functions in  
minibuffer doesn't
equal to the variable of current buffer. That means I needn't change  
after-change-functions.
This will work:

(defun eim-insert-ascii ()
   (interactive)
   (insert (read-from-minibuffer "")))

On Tue, 06 Jun 2006 18:40:29 +0800, David Hansen <david.hansen@gmx.net>  
wrote:

>
> On Tue, 06 Jun 2006 18:06:17 +0800 Ye Wenbin wrote:
>
>> Hello,
>> I wrote a elisp to input chinese character. I want add a command to  
>> input
>> english letter when the input method activated. The function
>> defined as following:
>>
>>   (defun eim-insert-ascii ()
>>     (interactive)
>>     (let (after-change-functions)
>>       (insert (read-from-minibuffer ""))))
>>
>> But when use C-g to quit from minibuffer, the
>> after-change-functions doesn't restore
>> to the original value. Is there a way to restore let binding
>> variables after keybord-quit?
>
> Use `condition-case' but i would rather temporally disable
> the input method than let binding `after-change-function'.
>
> David
>
>
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

      reply	other threads:[~2006-06-06 11:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-06 10:06 how to restore let binding variables after minibuffer keybord-quit Ye Wenbin
2006-06-06 10:40 ` David Hansen
2006-06-06 11:20   ` Ye Wenbin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.tap1rng8rgymni@ye \
    --to=wenbinye@163.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.