From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [elpa] 01/21: company-begin-commands: add `org-self-insert-command' Date: Tue, 04 Feb 2014 13:52:56 +0200 Message-ID: <87wqhbyu07.fsf@yandex.ru> References: <20140203173614.20092.2049@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391514797 6118 80.91.229.3 (4 Feb 2014 11:53:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2014 11:53:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 04 12:53:25 2014 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 1WAeZ9-0006Vc-Tc for ged-emacs-devel@m.gmane.org; Tue, 04 Feb 2014 12:53:24 +0100 Original-Received: from localhost ([::1]:51972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAeZ9-0001c8-Ah for ged-emacs-devel@m.gmane.org; Tue, 04 Feb 2014 06:53:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAeZ1-0001c0-6t for emacs-devel@gnu.org; Tue, 04 Feb 2014 06:53:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAeYt-0000qG-06 for emacs-devel@gnu.org; Tue, 04 Feb 2014 06:53:15 -0500 Original-Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:47242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAeYs-0000q4-Ou for emacs-devel@gnu.org; Tue, 04 Feb 2014 06:53:06 -0500 Original-Received: by mail-ea0-f181.google.com with SMTP id m10so4358902eaj.12 for ; Tue, 04 Feb 2014 03:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=c2eydmH3PwHzWlD6uO6K4Eo4RiSERbxY0MmwpW6umQM=; b=iqdS8QG+VSVzO1e0CyxdseOSynIjZQcS5TUJ4zuZOGTEwzuzZqrXKQ2V1kckA0ftaf eFkja9OSmtH2IHHLQiF9xXOHbtZ4v1WT3hXW0En65V1hAF9ApAUEZ1WqsHfW3GGppQ4y KYF5yJl739679x6Kcn19t719KySLV4CM35zZtwMH/u9ir3PVqXA5bGTceuDdktTLEONM 3zN8zBUWyB69jARNHYECy9ptTReVKycQJ8mcRG7WUA1vH5fjbht+2TFHgsknmOUwANtO Ok4B6IhbTMt759zL08mNklZZnl/+rCv0WAIjCejCRvMXl6basELrSPKPzD5/DCjxWjBL cKWg== X-Received: by 10.14.194.131 with SMTP id m3mr50596846een.2.1391514785854; Tue, 04 Feb 2014 03:53:05 -0800 (PST) Original-Received: from axl (83-54-31.netrun.cytanet.com.cy. [83.168.54.31]) by mx.google.com with ESMTPSA id v7sm87562474eel.2.2014.02.04.03.53.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 04 Feb 2014 03:53:04 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Mon, 03 Feb 2014 22:43:44 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::235 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:169381 Archived-At: Stefan Monnier writes: > One way to remove the need for org-self-insert-command is to check not > just (memq this-command company-begin-commands) but also check > (memq this-command > (mapcar (lambda (cmd) (key-binding `[remap ,cmd])) > company-begin-commands)) Thank you, I'll keep this in mind the next time the issue comes up. This could very well have been the last time, though: not many modes remap self-insert-command, and putting other kinds of commands in this variable is not very likely.