From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Federico Tedin Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 134ba45: Allow two mouse functions to work with Rectangle Mark mode Date: Mon, 29 Oct 2018 20:40:18 -0300 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; charset="UTF-8" X-Trace: blaine.gmane.org 1540856333 849 195.159.176.226 (29 Oct 2018 23:38:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2018 23:38:53 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 00:38:49 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHH7Q-00008I-Ac for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2018 00:38:48 +0100 Original-Received: from localhost ([::1]:49673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHH9W-0002AT-Jw for ged-emacs-devel@m.gmane.org; Mon, 29 Oct 2018 19:40:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHH9L-00029g-JN for emacs-devel@gnu.org; Mon, 29 Oct 2018 19:40:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHH9G-0001mI-GT for emacs-devel@gnu.org; Mon, 29 Oct 2018 19:40:45 -0400 Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:42736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHH9E-0001jS-9N for emacs-devel@gnu.org; Mon, 29 Oct 2018 19:40:42 -0400 Original-Received: by mail-lj1-x22b.google.com with SMTP id f3-v6so9571070ljk.9 for ; Mon, 29 Oct 2018 16:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C2CFlLO+0LKxA5RWZ3qHC6ZqIe3TaH2NHPExnoi+9pk=; b=ZSlP4lC+wzhgz6lWp83jQl5nObvYCJthf6gm7xxRpeieLKo1KxAuQ8xJDu1cDk194Q 7Q1rJefc3OrpdCboIoZw0YDHd++hys3vbIj1lc+s7aghVJ7zexU0yLHpjO1FVbUWsleC /dSu7a7K7Up92/GyKm6koBkLiUAdFp/qvWMekZiHruC28jLVzMKlv+kklczv3IRt1A75 NnKtHjyolllFxKCu06mz8iOSp1EvtZF+WsSkmXvFsRlTUYYvaIDnMEGU0AzC0x06BoCD J7gwEdvGVSiJlgV6gm95alIByBYy+CUG1cY6OTfh0Fjxvrkx/yC0Tv1sVIskBQr9rJ15 bx1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C2CFlLO+0LKxA5RWZ3qHC6ZqIe3TaH2NHPExnoi+9pk=; b=pmQREcrfCpdKGXNLq1I8vUv3S5BkpD6Fbr3e1mJR5AOA10n9aSTOtjajFyDWbZAlTh T3A32ivv8f239rUWXEbdnCIVQ1WD1g9idBFkwpz1jR1MloR2lrRett0erKTpzHl+u5DU GKk1DLOEiQGgJEeU+587gt00/kb/is7U6vEFYU77+ap8jjT/q+r892NED9htk8O/tNcJ cI1fPLaHZdEwvRBquzUUGu+MGzsoFhcsIRRCP23IPGEx4jE7nXGWj5ZsI4eYhlYIUTR9 pzcuuYUiZsqqQua6Bvu7eNmyHKrIm8wgm9nbFP7kZDGRbd5NYcKegTt/CJIGo1RVY1Yb t6jg== X-Gm-Message-State: AGRZ1gLETqjdt0hamidNAfp48+Ls7ZjeVjOQ2lPCc63EmfD2IYbLFbK0 48QThDLPymfVeEpdJPiFiAqLrXR0NF234++XcWWgWiZo X-Google-Smtp-Source: AJdET5fUTwoib/cgQl8gyOqWHJlRhfckW0MHQGI3CRIrkAXfIV9umVV9W1mklKgooD77z4Q+bcZWdeu50OuE3v8zpec= X-Received: by 2002:a2e:484:: with SMTP id a4-v6mr10471942ljf.27.1540856431352; Mon, 29 Oct 2018 16:40:31 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22b 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:230785 Archived-At: > We don't want the code to list the finite set of known region types, I think. > > We could try and make it a cl-defgeneric, but we need something on which > to dispatch. Right, to use cl-defgeneric, the region would need to be represented with different types of objects depending on the region type (from what I understand about the mechanics of cl-defgeneric). 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 ...)) I can imagine using something like that in mouse-drag-and-drop-region, when deciding how to calculate if the drag was negligible.