From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: visual-region-mode? (was: delete-selection-mode as default) Date: Tue, 11 Sep 2018 12:43:16 +0700 Message-ID: References: <83k1nxvm5j.fsf@gnu.org> <877ejxsm18.fsf@toy.adminart.net> <874lf0oul4.fsf@toy.adminart.net> <877ejuabdt.fsf_-_@toy.adminart.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1536644943 8474 195.159.176.226 (11 Sep 2018 05:49:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2018 05:49:03 +0000 (UTC) Cc: hw@adminart.net, =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , =?UTF-8?Q?Elias_M=C3=A5rtenson?= , rms@gnu.org, Emacs developers To: charles@aurox.ch Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 07:48:58 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 1fzbXk-0001xn-Lm for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 07:48:56 +0200 Original-Received: from localhost ([::1]:55539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzbZl-0003LT-JK for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2018 01:51:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzbYo-0003EZ-Ix for emacs-devel@gnu.org; Tue, 11 Sep 2018 01:50:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzbST-0002dO-QD for emacs-devel@gnu.org; Tue, 11 Sep 2018 01:43:30 -0400 Original-Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:41520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzbSS-0002aJ-Ny; Tue, 11 Sep 2018 01:43:28 -0400 Original-Received: by mail-oi0-x231.google.com with SMTP id k12-v6so44877088oiw.8; Mon, 10 Sep 2018 22:43:28 -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=pT3UClVggMNNQrCpQRfBtKFeri/AEHOkIsVf5+FXwUY=; b=h28+vfLYbV4zlP34k1I03Ox2ZqbCi8zvYYXjKSFU8PcOZFigKt1mvlBzvxoy0dN8sE GuAfV5LLTULr2ya4ddrZ8i7n9qIXxMwSviYrvWhlzgwv8sSTNWT9jd4krAkmO7Y3DWsh AQ80IuHUMsy/qBdLxGhesl8L+rSSuf13mHkb0sV3V1FxSQihJ2mfke2zzZ370GupZ/+d xaknyJTCnzPl10tvSKo3a3yRp2tsnTnFoh0/dp6ca8CkO0g1uTqCSeQHat9D7Z79LLXu /OARMT3WKCH+Zex3lfL4J9DNeYRhxqjOVJIOP9hjUy46iC5xl2bU4yLDaZGcNQ9gmftz 1q5Q== 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=pT3UClVggMNNQrCpQRfBtKFeri/AEHOkIsVf5+FXwUY=; b=AYkX+61x1ldHkLrJIxdRiPlAoTeLoW66wYxhEvMjmOw/2/74JuKi3JAXJpYlcllPRa QSL3CcUN0qSoC0szX1166ahycclNJ1oYq/N/5wMmmqCiIdhUNIKw6S6yxpFkugH7VCwo Fr8j6imFMYWCmXauiF+xVOsNAP5Wk2rDKGh3z9M0FJw5YrMjpb4S9Hl+ZMaF4CBypH/F a6FrCnmegLPxJbDDDagWPyIdS0wSqvmt5RRuY1ViB7xLkiF+OIpwfJSbGkFWeJPpFMpi unFha0M9ddc2KEZcrwHOnCv67yi8dyndfHWOAn0MNEc9oIAFUPksoKiv3Ft3lr7nEisJ HAsQ== X-Gm-Message-State: APzg51DmsIt0imPsfngsapshmrgkOxdRBpvaEzPQ8TS8hd8Jb9FlCMGe mN8NnCrp7g7CYv2zI40/h6DaXOa2JShwasPZOBc= X-Google-Smtp-Source: ANB0Vdbtz9HxqyBzVOeWZY99+rIkNBELPXv9anDRyUCI6dA2ZcVGrv1NsY0RprojmbjgOb1dGtzu0burfFszVqzZ3jo= X-Received: by 2002:aca:4802:: with SMTP id v2-v6mr26451112oia.259.1536644608080; Mon, 10 Sep 2018 22:43:28 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::231 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:229661 Archived-At: On Tue, Sep 11, 2018 at 3:01 AM Charles A. Roelli wrote: > Can you say how there can be multiple regions active, and how there > can be "multiple ways of being active"? The region is normally > defined as "the text between point and mark", for one, and whether the > mark is active depends on the value of the buffer-local variable > 'mark-active'. By the way, this definition of region is flawed. The mark is buffer-local, while the point is buffer-and-window-local. Display a buffer B in windows X and Y, mark a region in window X, then switch to window Y. Suddenly, an entirely unrelated fragment of text is highlighted as region. A consistent definition of a persistent region would make it an interval between two buffer-local markers, both of which are distinct from the point. A consistent definition of a transient region would make the mark also buffer-and-window-local, so that buffer B in windows X and Y could have completely independently marked regions.