From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#43209: 27.1; rectangle-mark-mode does not activate region if transient mark mode disabled Date: Fri, 04 Sep 2020 20:04:06 -0700 Message-ID: <80363w3owp.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33808"; mail-complaints-to="usenet@ciao.gmane.io" To: 43209@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 05 05:05:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEOVt-0008hV-Rh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 05:05:13 +0200 Original-Received: from localhost ([::1]:48446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEOVs-0004Gu-A8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 23:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEOVi-0004Gn-ST for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 23:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEOVi-0008Vv-Jp for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 23:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEOVi-000640-F0 for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 23:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Sep 2020 03:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43209 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159927505323238 (code B ref -1); Sat, 05 Sep 2020 03:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Sep 2020 03:04:13 +0000 Original-Received: from localhost ([127.0.0.1]:41242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEOUu-00062k-Jm for submit@debbugs.gnu.org; Fri, 04 Sep 2020 23:04:13 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEOUt-00062d-Qx for submit@debbugs.gnu.org; Fri, 04 Sep 2020 23:04:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEOUt-0004FK-LW for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 23:04:11 -0400 Original-Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:45123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEOUr-0008Sp-LD for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 23:04:11 -0400 Original-Received: by mail-pf1-x430.google.com with SMTP id k15so5587488pfc.12 for ; Fri, 04 Sep 2020 20:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=Ewmi8AtqQ/CUQ/mgH1+XldQ/sPs1rWR2cDihSYOKni8=; b=UJbeB5uSNnw9mC30ojpacaacTXm+PjxKHR0Z8vOdqWG0oWKnkGCzVxOtsQsdNe5K+X OLUeYM/efCfkw4lzoDzC95i0i0kKp9zNt2iiM+7dcmCQIzP/ipOAiBgfj7Ytt5pLVUfk dpOYt0dm9UBOreUnpfTrs3Rr7WtW+b1Rm/JuGjGx2SObrogeuLHq+jZjqjEUMrwk2RqJ 4VlgNY+D4tnxHZOIVOmR+wedSLVPj67b22lWCSUqtbTnmKPLm3J0KvHv3bvJC3q3s0ND 1yHm7biLl5v94pYf/TB+grLxXWe33STFd5SetSeFkSlrkk1WsWK9bpCyvGNLq/EywSgy etSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Ewmi8AtqQ/CUQ/mgH1+XldQ/sPs1rWR2cDihSYOKni8=; b=rRY68qfauHVM/3aXnQGZUCN1JY/EGInIwIF0hymO0Lbkjzq+8U7U6PdQG/r3dJDCuh lvWyCJTmCcsgguq/lw0m2seBqVF7LDaO688xTm9P2JL4w52gDQ2GSxz+8rLhL5UN0cFy IpBUq4WDn983raLEoLQUcZwJFeTiBBAKYkksc8T6XYCT0iLTvy8Aw1fBH+Y0QZ5Zhqvo dppsbaJ4cPcXGfXfgy1WJFWpRr70HEcJaFo4YckB0YH5+5It4x0yeCVuc2Yw/WjfOK7/ lPqpPZzgEwFYRNj9b19qNQ9nXmEAEYR82OfztI2uwltwzCMUz+Bn7Mm3gtPZOzg0BhwK up+g== X-Gm-Message-State: AOAM530s0fZP8I2xFNF2WbEnnrDQL/d9PqPUPKj6abvGgJW6Savfqmod 4OUIjvSnHe8ZXa9asuanoUmH1xvwr969Qw== X-Google-Smtp-Source: ABdhPJxiFDO+tjdACcsD01Y3AX1sNT4gHF2AEvE0NsnEvFDvlvQ3HvhHJ7jRjWYSjmVerbODQMlRPw== X-Received: by 2002:a62:2646:: with SMTP id m67mr10748153pfm.165.1599275047328; Fri, 04 Sep 2020 20:04:07 -0700 (PDT) Original-Received: from localhost ([2600:1700:7270:7d1f:fa59:71ff:fe00:10cc]) by smtp.gmail.com with ESMTPSA id m7sm8059857pfm.31.2020.09.04.20.04.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 20:04:06 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=darkfeline@felesatra.moe; helo=mail-pf1-x430.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187180 Archived-At: rectangle-mark-mode does not activate region if transient mark mode is disabled. Steps: 1. emacs -Q 2. M-x transient-mark-mode RET 3. C-x SPC Expected: Region is activated temporarily. Actual: Region is not activated. Note that rectagle-mark-mode is still partially enabled. For example, C-x C-x moves point according to the rectangular region, but you cannot move point beyond the end of the line. I propose making rectangle-mark-mode activate the region even if transient-mark-mode is disabled for a number of reasons. I think it's a reasonable interpretation of the docstring: Activates the region if needed. Only lasts until the region is deactivated. rectangle-mark-mode is transient like having an active region and unlike having a mark. That is to say, someone who uses the mark with transient-mark-mode off may not want to operate on the region and thus not want to activate the region (e.g., when using the mark to jump to later), but there is no use case for rectangle-mark-mode that does not involve operating on the region. Also since rectangle-mark-mode is transient, it makes sense to couple it with region activation as the active region is also transient with the same lifespan. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22) of 2020-08-13 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Arch Linux