From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: execute a command with euc-jp Date: Fri, 06 May 2011 02:37:52 +0200 Message-ID: <87pqnwr7dr.fsf@ambire.localdomain> References: <20110505002934.GB18433@masashi-netbook> <87wri5r1jb.fsf@ambire.localdomain> <20110505220110.GA22712@masashi-netbook> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304642353 13963 80.91.229.12 (6 May 2011 00:39:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 May 2011 00:39:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: masashi ito Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 06 02:39:09 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 1QI94U-00058v-2s for geh-help-gnu-emacs@m.gmane.org; Fri, 06 May 2011 02:39:06 +0200 Original-Received: from localhost ([::1]:47257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI94T-0008B5-BJ for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 20:39:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI94O-0008B0-1e for help-gnu-emacs@gnu.org; Thu, 05 May 2011 20:39:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI94J-0005rB-BQ for help-gnu-emacs@gnu.org; Thu, 05 May 2011 20:39:00 -0400 Original-Received: from smtp209.alice.it ([82.57.200.105]:33743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI94J-0005qt-2w for help-gnu-emacs@gnu.org; Thu, 05 May 2011 20:38:55 -0400 Original-Received: from ambire.localdomain (95.244.64.247) by smtp209.alice.it (8.5.124.08) id 4D498EF307EA57EC; Fri, 6 May 2011 02:38:50 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1QI93I-00078Q-C7; Fri, 06 May 2011 02:37:52 +0200 In-Reply-To: <20110505220110.GA22712@masashi-netbook> (masashi ito's message of "Thu, 5 May 2011 18:01:10 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 82.57.200.105 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:80937 Archived-At: () 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 =E2=80=98C-M-x=E2=80=99 (i.e., =E2=80=98= eval-defun=E2=80=99) and then =E2=80=98M-x ttn-howm-menu=E2=80=99. To verify that =E2=80=98eval-defun=E2=80=99 worked correctly, you can type = into *scratch*: (symbol-function 'ttn-howm-menu) then type =E2=80=98C-j=E2=80=99 to inspect what Emacs thinks is the current= definition.