From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: pre-command-hook with input methods Date: Fri, 06 Feb 2015 18:58:54 -0500 Message-ID: References: <878ugcmqr6.fsf@newcastle.ac.uk> <87fvajb0vs.fsf@newcastle.ac.uk> <87siej9h8c.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423267150 15516 80.91.229.3 (6 Feb 2015 23:59:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2015 23:59:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 07 00:59:06 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJsnh-0008Is-2s for ged-emacs-devel@m.gmane.org; Sat, 07 Feb 2015 00:59:05 +0100 Original-Received: from localhost ([::1]:50959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJsng-0001EM-CN for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2015 18:59:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJsne-0001Do-43 for emacs-devel@gnu.org; Fri, 06 Feb 2015 18:59:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJsnZ-0007ua-2Z for emacs-devel@gnu.org; Fri, 06 Feb 2015 18:59:02 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJsnY-0007uV-U5 for emacs-devel@gnu.org; Fri, 06 Feb 2015 18:58:57 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t16NwsUW009820; Fri, 6 Feb 2015 18:58:54 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 57497FB0; Fri, 6 Feb 2015 18:58:54 -0500 (EST) In-Reply-To: <87siej9h8c.fsf@newcastle.ac.uk> (Phillip Lord's message of "Fri, 06 Feb 2015 15:45:07 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5209=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5209> : inlines <2047> : streams <1385958> : uri <1848494> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182564 Archived-At: > That's because by default there's no input method active. So, I guess, > the trick would be to use input-method-activate-hook to advice the > input-method-function. The Right Way to fix this is to change the default value to be non-nil. In this case, I think using #'list might work. >> (you'll need an :around advice, and you'll need to check the orig >> function (in case it's nil) before calling it). >> There's clearly room for improvement here. > A bit messy, yes. I blame all foreigners and their diacritics. Obviously if we could ditch those damn foreigners things would be a lot easier. Stefan