From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: masashi ito Newsgroups: gmane.emacs.help Subject: Re: execute a command with euc-jp Date: Thu, 5 May 2011 23:50:22 -0400 Message-ID: <20110506035022.GA3944@masashi-netbook> References: <20110505002934.GB18433@masashi-netbook> <87wri5r1jb.fsf@ambire.localdomain> <20110505220110.GA22712@masashi-netbook> <87pqnwr7dr.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1304653838 29736 80.91.229.12 (6 May 2011 03:50:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 May 2011 03:50:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Thien-Thi Nguyen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 06 05:50:34 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QIC3l-0004bS-No for geh-help-gnu-emacs@m.gmane.org; Fri, 06 May 2011 05:50:33 +0200 Original-Received: from localhost ([::1]:33058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIC3l-0006K8-AL for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 23:50:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIC3f-0006Jb-GA for help-gnu-emacs@gnu.org; Thu, 05 May 2011 23:50:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIC3e-0006G4-Fm for help-gnu-emacs@gnu.org; Thu, 05 May 2011 23:50:27 -0400 Original-Received: from mailout-us.gmx.com ([74.208.5.67]:54298 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QIC3e-0006Fo-7N for help-gnu-emacs@gnu.org; Thu, 05 May 2011 23:50:26 -0400 Original-Received: (qmail invoked by alias); 06 May 2011 03:50:24 -0000 Original-Received: from pool-71-172-177-31.nwrknj.east.verizon.net (EHLO localhost) [71.172.177.31] by mail.gmx.com (mp-us008) with SMTP; 05 May 2011 23:50:24 -0400 X-Authenticated: #115825669 X-Provags-ID: V01U2FsdGVkX19ylGkF31dy2Mp8gv1h6A2v433gIxy5HRvMCUKR7b uiZm4YsUUHEnda Content-Disposition: inline In-Reply-To: <87pqnwr7dr.fsf@ambire.localdomain> User-Agent: Mutt/1.5.20 (2009-06-14) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.5.67 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80939 Archived-At: Dear Thien-Thi Nguyen, Thank you very much again for your kind, thorough instruction. And I apologize for my mistake. As you said, I didn't evaluate the newly defined function properly. I did C-x, C-e, which I found somewhere on the Internet. When I did C-M-x, everything worked like a charm! I appreciate your help very much! Sincerely yours, Masashi On Fri, May 06, 2011 at 02:37:52AM +0200, Thien-Thi Nguyen wrote: > () masashi ito > () Thu, 5 May 2011 18:01:10 -0400 > > As for the function definition, however, the code you suggested, > unfortunately, didn't work (M-x myhowm-menu-eucjp didn't show anything). > > Perhaps you did not evaluate the new definition? > I was able to see the menu appear with > > (defun ttn-howm-menu () > (interactive) > (let ((coding-system-for-read 'euc-jp) > (coding-system-for-write 'euc-jp) > (coding-system-require-warning t)) > (call-interactively 'howm-menu))) > > and an installation of howm from howm-1.3.9.1.tar.gz. After copying this > definition into *scratch*, i typed ‘C-M-x’ (i.e., ‘eval-defun’) and then > ‘M-x ttn-howm-menu’. > > To verify that ‘eval-defun’ worked correctly, you can type into *scratch*: > > (symbol-function 'ttn-howm-menu) > > then type ‘C-j’ to inspect what Emacs thinks is the current definition.