From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: Allowing point to be outside the window? Date: Tue, 30 Nov 2021 20:57:59 +0000 Message-ID: References: <87ilwd7zaq.fsf.ref@yahoo.com> <87ilwd7zaq.fsf@yahoo.com> <83bl24yaed.fsf@gnu.org> <87sfvg7l51.fsf@yahoo.com> <83zgpowu23.fsf@gnu.org> <87zgpo5tws.fsf@yahoo.com> <83pmqkwi6r.fsf@gnu.org> <87v90c5su6.fsf@yahoo.com> <83o864wg2a.fsf@gnu.org> <87ilwb68ck.fsf@yahoo.com> <83zgpnunfo.fsf@gnu.org> <87fsrf3xmd.fsf@yahoo.com> <83y257ulfp.fsf@gnu.org> <8735ne4e0e.fsf@yahoo.com> <83pmqhtuzz.fsf@gnu.org> <87a6hlcy62.fsf@gnus.org> <83fsrdtpo7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16961"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "luangruo@yahoo.com" , "larsi@gnus.org" , "emacs-devel@gnu.org" To: Eli Zaretskii , Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 30 21:59:23 2021 Return-path: Envelope-to: ged-emacs-devel@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 1msADj-0004Bw-BA for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Nov 2021 21:59:23 +0100 Original-Received: from localhost ([::1]:60594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msADh-0007Mr-3R for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Nov 2021 15:59:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msACi-0006gd-SW for emacs-devel@gnu.org; Tue, 30 Nov 2021 15:58:21 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:27930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msACg-0000wR-94; Tue, 30 Nov 2021 15:58:20 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1AUKeu0V016572; Tue, 30 Nov 2021 20:58:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=ynEgJmJzsqWU4ojHShYwQ+eOenYYeBmX6IXcmjoXs1Q=; b=iFdD79sCAZ7m9un2zODA9zzbpu/DeK1AK0AJal2VLaewWI0/snfANLZlhwAz9du4My5R ediVMJG2dP1UF9ygguGJvNqKWP+7FUUaVpa0sUANe8iE21Zl0feO7ZRAGA8d1cG28RRe +vqipLxnYo0NtSPCFXiQX7N6lF1tKEaZd0VWxVHoaiAsTMm+GrTM7rcm4oRnbuCm83oN ytlAl+fup3eiS3428qhCc1V+T9dAR9+QN+BNp4CNGXcYJhiLRSbqeau8mS9dR3XPOU99 +m5UkAUST5eB3+ibFFFyL9Ze3lUb8l+qkPEiGYV0UKGoK9m4e7lt/4/H++RHWazBdAZy KA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3cmu1wkm7j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Nov 2021 20:58:03 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1AUKVeT0187577; Tue, 30 Nov 2021 20:58:01 GMT Original-Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1anam02lp2043.outbound.protection.outlook.com [104.47.57.43]) by aserp3030.oracle.com with ESMTP id 3ckaqfbss9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Nov 2021 20:58:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j5y83zDspGi9a2/FEgRFnTVbemiUj++DYIdugaj32wU3EPQLGuCUp6fZ267obEI8sK7Lji4JgQ8z7EcJdNo0fKys5v7eYG23pz+dtObOSvTxBAIX6xHgSovJ9c+PAoP1Fg2ga+yGFWWhRDO8RidkYOwbMkxLHfcs39D1ZRcrM22sHM8R9Yqqf/P8onmlcYlXOTAAICOd6zDJr55fvsoytFnHEW0HTB2C2y/0nZnjmcABKhu1+kqhMMa4xzLQg2kwLCeCT5xVtrVzWl7EY83Rt78HTxCcAKIgXuxz/xgyTp3Gu/sDw6eQOMl07NcNUMT9Ea/ePOx0VBrm0d40tulpMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ynEgJmJzsqWU4ojHShYwQ+eOenYYeBmX6IXcmjoXs1Q=; b=LSW0d28K9PtwsWzcL2if/KGjc2oUFvTnl2jzTNUmWpumpyvSSJQ5l0yRVGmSb4U84MHJYXU13ftuezQIgKathKZHJsLwctEfk1rJk9l9WF7jIeiatSqOLwg2xWSpBoJEOtiQu8/WkSCNfZW6+j1HRaDd2F0KBDntFUWeFI02TmhKupKxgvNP1HZv97EdhEMMC3Jat0O7RGz+lyr+8jb1Dkseaars/MnuPQyaOWaHp43ioft+mjIW35CZMPkXc1SsdoA15mNqqxpl34M9j0Q/5AokP+xmIUBNz4qcaQwqYcCWHtHOXSddxDXTTvFQ407d2EjX44z1V9IUCE9w+0C+dQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ynEgJmJzsqWU4ojHShYwQ+eOenYYeBmX6IXcmjoXs1Q=; b=qWviG1P1CKLlqfB3oWn7XxR9omk2ha27uxTWEPy2uDyikEhCenNVYyztOTER5fyz3I2xngG3/mDratcIsaDxoEYZENPb3JIveKk16yl0BOVlwxu43RTX4q5BXQI43K020I+x/21MLf+wQFhztEe/9G37mtmny8Sr67JGh/Iida8= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SJ0PR10MB5891.namprd10.prod.outlook.com (2603:10b6:a03:3ee::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.24; Tue, 30 Nov 2021 20:57:59 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::4588:646c:e330:8bc0]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::4588:646c:e330:8bc0%9]) with mapi id 15.20.4734.024; Tue, 30 Nov 2021 20:57:59 +0000 Thread-Topic: [External] : Re: Allowing point to be outside the window? Thread-Index: AQHX5h+KIZUl0tZH3U+XvsxxkhSZK6wcgJCQ In-Reply-To: <83fsrdtpo7.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c5cc02eb-8ebe-4071-e47c-08d9b4441798 x-ms-traffictypediagnostic: SJ0PR10MB5891: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bYwPCssbP+snUHPAGin1AEgMh0pwLFAtVPwcRTXLO3gEQRs4pB0ARMs/fiDmMTzvXsDA5cb8aSRRgha9dgJBSLmmefdGmJxx2s7ca3KSzZZ8t96P9FQ06Ed8mR5xFV4o0op+5fyNE8xeerYvRZ2iPBiaSnUOyTRkGn0SLz5BEqwTjTSMC+V9ClmDxYbMs36v/q0ehtRy/yf9cQ4CqjFIoN2Ln1v1CLf5DXt2XsEKPAylMnIkMkDe+FwIz/Jl2GsC4H38aBYheOQUtfki+s2FQI74J9am+EhPdR4+X9yn0qtphK9uLy3z+0pxMMlCX/7fSUxPehWYGeq4udQfElAk1/JlaK8y8YXMyO3UlXjpNrfTOe0vA3ZcmGNfAyjMl20MpwQxwDueyKRH4lMO04R//yY5JEeGm4w03TbuDaDysP1Y1+HDmx5q1/noz+k83QPw/uOhzki0w0tbABfVS+fW+bEx21ArXnK/16aP3+m8e7yaxJgHgUaReikX2RbYmXn+6y1M9xdAMxb83aKlrK9EgCXK6HYbljGaGvjyrPxVWgPrr+TA0kYlJoIZhcXtLz8e1Tupn/d3bThk6mylvhIi+71J8QRaiWsv7Bni84R3AGfJQ/5XsD6M8ba2rrmWz0HaMSefKBtxf67jcVm0SuACMNHvRn8CpQ2fovtu+VvD8Jnx6UxtlqXkGNKYk7pa2o3gNUOfIE7fmT2EXQQdwBdyHA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(33656002)(186003)(6506007)(66946007)(9686003)(4326008)(508600001)(76116006)(86362001)(8936002)(44832011)(26005)(66556008)(8676002)(122000001)(66446008)(316002)(38100700002)(38070700005)(66476007)(55016003)(7696005)(2906002)(64756008)(83380400001)(54906003)(52536014)(5660300002)(71200400001)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vom3hnXqhizHqWlUdYxZqGFs4/im6SJWJScZFnhi76b5QRDBF1FQ54Qor4xO?= =?us-ascii?Q?YC6Yt8GDg2QDVupBiQ5Uy6cBA8UDzhfKpSMgg1Xdq9Yu+UPQ3MMyh9iNbe4I?= =?us-ascii?Q?IRn0Qzo94p4OfJJy812H6fB0CXsmG/KHPGg8PdRlGl3oMj7vojG6q+fnjAjc?= =?us-ascii?Q?jNIuHDBvtKh0LoyGqaAClVNYAZckLUrEzUVA6U8zZR/7pTLsYvdtvK1Zhuu7?= =?us-ascii?Q?72AjihSykQ3Kr9W+PB5dtg33ytMJvAS9EomR96YYz5juYysyBzXBVtP2LFA7?= =?us-ascii?Q?LbI923scZ7R66k1YeAKGaMsdEqxRM5tCPpCsV6/vk2TDK73AzNe64uFEWBtX?= =?us-ascii?Q?tHbHTHmibjBnXCNgat551CByp2ixo3izD8I3CNYKm5G3rLTGOPIQmNpFxB5h?= =?us-ascii?Q?j1Z7LteBhdVysyyIw34n7DCJ6yN69NqcLNVEtzk6kO/gLKoH8vlLEDL3Qp3C?= =?us-ascii?Q?XezYbo4d4LElc7K0NxNDf+gnzNZjRhHpobnh1YLcSYKpW0CrL2zMwPYYKdwi?= =?us-ascii?Q?f7W9HYbQNjWuuVx8w+8HeIm59hvBCyUtgDg45HxkyfDcO7UqygLWuzvzMUSf?= =?us-ascii?Q?mnbJYJHlD/yyflordU/x/bREbboToP4vus4F8ameY4O1Nh/jn034pBwz4nas?= =?us-ascii?Q?so X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5cc02eb-8ebe-4071-e47c-08d9b4441798 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2021 20:57:59.5421 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OnovNQld5zue3jL3UgVlTSpEvyNF7lDTfK+g0LcVMLOEo50oJK/U/Xf9TWfrm4naRq6EgwkeIHFuNEBTAowUEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5891 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10184 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxscore=0 suspectscore=0 mlxlogscore=734 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111300105 X-Proofpoint-GUID: paPch8ZphA8aIDmbfI1JnKY798Oy-Jrj X-Proofpoint-ORIG-GUID: paPch8ZphA8aIDmbfI1JnKY798Oy-Jrj Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280559 Archived-At: My main purpose in raising this possible gotcha was just to point to it. And yes, the potential problem is wider than just `C-w'. ___ As for possible remedies - 1. A user option, to specify preferred behavior, for sure. This could even be per-command, either by way of the option value or via a command-symbol property - see below, at the end. 2. Some possible choices for the behavior: a. Do nothing special (just act, silently). b. Show a message that point is off-window. (Could also do it even for mark off-window). c. Require y/n confirmation, to act. d. Don't allow the command (raise an error). ___ For 2c, it might be good, while waiting for confirmation, to let you use a key to indicate the region in some way. Here's one way (similar to `C-x C-x' behavior): Move temporarily to point - and when repeated, move to mark, i.e., toggle between them. And highlight the region text, to make clear on which side of the boundaries the text to be operated on lies. Another possibility would be to automatically bounce to show you the off-window point location. But I think letting you do that on demand makes more sense. IOW, let me tell Emacs to show me point, before I decide whether to confirm, but also let me just confirm or not, without showing me point. ___ In any case, by default the feature should be off: no off-window point. ___ Another possibility might be to force users who want the ability to act on the region when point is off-window to use different commands for that. That is, bind particular (new) commands that allow it. This would let you, say, permit some=20 operations but not others. You could even be able to make a _per-command_ choice like what the user-option allows. And each command that lets you act on a region when point is off-window would be disabled, by default. E.g., (put 'kill-region-maybe-offscreen 'disabled)