From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 134ba45: Allow two mouse functions to work with Rectangle Mark mode Date: Mon, 07 Jan 2019 12:40:54 -0500 Message-ID: References: <20181017063829.3775.67018@vcs0.savannah.gnu.org> <20181017063831.03DCB2044D@vcs0.savannah.gnu.org> <810f1e04-1117-476d-9a7d-d57002609bf8@default> <5BCC3743.8040103@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1546883777 2712 195.159.176.226 (7 Jan 2019 17:56:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2019 17:56:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 07 18:56:13 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggZ8H-0000ao-5H for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2019 18:56:13 +0100 Original-Received: from localhost ([127.0.0.1]:35635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggZAN-0008Tj-UO for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2019 12:58:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggZ5w-0004jm-Ki for emacs-devel@gnu.org; Mon, 07 Jan 2019 12:53:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggYtf-000068-G7 for emacs-devel@gnu.org; Mon, 07 Jan 2019 12:41:08 -0500 Original-Received: from [195.159.176.226] (port=60291 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggYtf-0008PE-8Y for emacs-devel@gnu.org; Mon, 07 Jan 2019 12:41:07 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ggYrU-0004R7-Pw for emacs-devel@gnu.org; Mon, 07 Jan 2019 18:38:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:7VbCg93y1N/yGamq9TSjTXEIbTY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:232229 Archived-At: > If we implemented the `reactivate-mark-function` variable instead (and > the function `reactivate-mark`), would it be OK to have code like this? > > (pcase reactivate-mark-function > ('normal-reactivate-mark-function ...) > ('rectangle-reactivate-mark-function ...)) It would be evidence that the design isn't very good: a function should be treated as a black box with which the only thing you can do is to call it. You generally shouldn't look at it (e.g. with an equality test) or care about its name. Stefan