From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ye Wenbin" Newsgroups: gmane.emacs.help Subject: how to restore let binding variables after minibuffer keybord-quit Date: Tue, 06 Jun 2006 18:06:17 +0800 Organization: ywb Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=gbk Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1149588438 20918 80.91.229.2 (6 Jun 2006 10:07:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jun 2006 10:07:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 06 12:07:15 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 1FnYSs-0005sx-DC for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jun 2006 12:07:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnYSr-0001Zc-Vm for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jun 2006 06:07:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FnYSg-0001ZC-Q8 for help-gnu-emacs@gnu.org; Tue, 06 Jun 2006 06:06:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FnYSa-0001Wm-Rf for help-gnu-emacs@gnu.org; Tue, 06 Jun 2006 06:06:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FnYSa-0001Wj-OU for help-gnu-emacs@gnu.org; Tue, 06 Jun 2006 06:06:52 -0400 Original-Received: from [202.108.5.84] (helo=m5-84.163.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1FnYZs-0005gV-Mu for help-gnu-emacs@gnu.org; Tue, 06 Jun 2006 06:14:28 -0400 Original-Received: from ye (unknown [218.17.227.217]) by smtp4 (Coremail) with SMTP id wKjRDrDLqgeYU4VEt5mKAA==.6639S2; Tue, 06 Jun 2006 18:06:18 +0800 (CST) Original-To: emacs User-Agent: Opera M2/8.54 (Win32, build 7730) 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:35340 Archived-At: 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? Thanks! -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/