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: [elpa] 01/21: company-begin-commands: add `org-self-insert-command' Date: Mon, 03 Feb 2014 22:43:44 -0500 Message-ID: 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 1391485442 18988 80.91.229.3 (4 Feb 2014 03:44:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2014 03:44:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 04 04:44:06 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 1WAWva-0003Gn-IK for ged-emacs-devel@m.gmane.org; Tue, 04 Feb 2014 04:44:02 +0100 Original-Received: from localhost ([::1]:50567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAWva-00013j-3s for ged-emacs-devel@m.gmane.org; Mon, 03 Feb 2014 22:44:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAWvQ-00011o-M9 for emacs-devel@gnu.org; Mon, 03 Feb 2014 22:44:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAWvJ-0008DY-DC for emacs-devel@gnu.org; Mon, 03 Feb 2014 22:43:52 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:57028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAWvJ-0008DS-9G for emacs-devel@gnu.org; Mon, 03 Feb 2014 22:43:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EABK/CFFFxLyZ/2dsb2JhbABEvw4Xc4IfAQVWMws0EhQYDYhIwS2NYU2CXAOIYZwZgV6Cais X-IPAS-Result: Av0EABK/CFFFxLyZ/2dsb2JhbABEvw4Xc4IfAQVWMws0EhQYDYhIwS2NYU2CXAOIYZwZgV6Cais X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46722128" Original-Received: from 69-196-188-153.dsl.teksavvy.com (HELO pastel.home) ([69.196.188.153]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 03 Feb 2014 22:43:44 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 8416760335; Mon, 3 Feb 2014 22:43:44 -0500 (EST) In-Reply-To: (Dmitry Gutov's message of "Mon, 03 Feb 2014 17:36:15 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:169379 Archived-At: > -(defcustom company-begin-commands '(self-insert-command) > +(defcustom company-begin-commands '(self-insert-command org-self-insert-command) 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)) -- Stefan