From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hw Newsgroups: gmane.emacs.devel Subject: Re: visual-region-mode? Date: Fri, 21 Sep 2018 22:28:53 +0200 Organization: my virtual residence Message-ID: <87a7oa1toa.fsf@toy.adminart.net> References: <877ejxsm18.fsf@toy.adminart.net> <874lf0oul4.fsf@toy.adminart.net> <877ejuabdt.fsf_-_@toy.adminart.net> <878t473dhg.fsf@toy.adminart.net> <87pnxii2b7.fsf@toy.adminart.net> <87k1nm7eit.fsf@toy.adminart.net> <878t403dn5.fsf@toy.adminart.net> <878t3yv0p0.fsf@toy.adminart.net> <87d0t9ckzl.fsf@toy.adminart.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537562655 25512 195.159.176.226 (21 Sep 2018 20:44:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2018 20:44:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: cpitclaudel@gmail.com, lokedhs@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: charles@aurox.ch (Charles A. Roelli) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 21 22:44:10 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 1g3SHZ-0006U8-Ay for ged-emacs-devel@m.gmane.org; Fri, 21 Sep 2018 22:44:09 +0200 Original-Received: from localhost ([::1]:57252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3SJf-00010v-Sp for ged-emacs-devel@m.gmane.org; Fri, 21 Sep 2018 16:46:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3SJa-00010p-AU for emacs-devel@gnu.org; Fri, 21 Sep 2018 16:46:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3SJX-00056H-FL for emacs-devel@gnu.org; Fri, 21 Sep 2018 16:46:12 -0400 Original-Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::2]:15901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g3SJW-0004zl-QP; Fri, 21 Sep 2018 16:46:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1537562767; s=strato-dkim-0002; d=adminart.net; h=References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=NFuL60fDKFgaI7PGsuGwdqkwt8owYmlKPv4lkB4dR4I=; b=D3Lwm1Y9Ci/9kPMCyTG53kyHs8r42gR+eym+obq59m0ZTxY+/igam8lXl4aky38S5m o2nHwfm636uobfg1aynNjhiCiXlO7O4yZRqXLYYDeWoJxxxdL0XOyRM5Q1afvN5hbMDW 2aM60ISKD+SgA3NaY1EGrwXbZK5IQGJb17IzS8gXMiqCiPmTpRDmiJHklLf/CJaW72Cc ZiDlGkjdrYfTIlj51+OHMkvnHgxW32JGV/xQYuUnAPPcyyUmbYDHU8WzYuIPvlcHd5x7 UzboUeEHshE4Ng2kHgocS684v5HHHQyShjLOUTw7+JokSs3hBxatKyqbOrDXiTtb/vix hTpA== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from himinbjorg.adminart.net by smtp.strato.de (RZmta 44.1 DYNA|AUTH) with ESMTPSA id 20bdb7u8LKjvRPi (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 21 Sep 2018 22:45:57 +0200 (CEST) Original-Received: from toy.adminart.net ([192.168.3.55]) by himinbjorg.adminart.net with esmtp (Exim 4.90_1) (envelope-from ) id 1g3SJI-000254-HH; Fri, 21 Sep 2018 22:45:56 +0200 In-Reply-To: (Charles A. Roelli's message of "Thu, 20 Sep 2018 20:14:51 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::2 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:229990 Archived-At: charles@aurox.ch (Charles A. Roelli) writes: >> From: hw >> Date: Wed, 19 Sep 2018 22:04:14 +0200 > > [...] >> With t-m-m disabled, there is no way to fortify the region, and there is >> no highlighting. Why would I disable it? > > There would be a way to "fortify" the region, if you had another > binding for toggling whether the region is active or not. Without t-m-m, the region can not become active. >> With t-m-m disabled, the region can not be activated, so why would I try >> to do that? My function is ignorant of t-m-m anyway. >> >> Why would I disable t-m-m only to ask to temporarily enable it? > > That's how the current implementation is designed: the region is > considered "active" when both "mark-active" is non-nil /and/ "t-m-m" > is on. That doesn't explain why I would disable t-m-m. > [...] > I'd like to be able to "activate" the region with "t-m-m" off to use > commands that behave differently when the region is active (like M-%), > without the highlighting that "t-m-m" forces, Perhaps there is a way to disable the highlighting. I haven't found out how something is highlighted. > and without the region randomly deactivating itself after certain > commands as it does with "t-m-m" switched on. I've never had an issue with the region deactivating itself randomly. Under what circumstances exactly does this happen? Are you referring to commands deactivating the region? That could be configurable, though I'm not sure how useful it is to indefinitely do something with a region until it is explicitly deactivated. What do you plan on doing with it that would require this? > Highlighting the region could be a separate mode. Highlighting the region all the time is probably not very useful. >> Are there any disadvantages of having t-m-m enabled that would overcome >> all the advantages of having it disabled? > > Not sure I understand this. Disabling t-m-m doesn't make any sense at all. Why would anyone disable it? I can see it for someone who doesn't like the highlighting, so if it was configurable --- and it is amazing that is isn't --- whether to highlight the region when it's active or not, everyone who dislikes the highlighting could have t-m-m enabled. I would remove having it disabled entirely from Emacs because there is no point in that and only complication. Without highlighting, a different indicator could be useful to show whether the region is active or not, like a hint in the mode line.