From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qIPDJENxNmSwwgAASxT56A (envelope-from ) for ; Wed, 12 Apr 2023 10:52:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yKHLJENxNmTEfwAA9RJhRA (envelope-from ) for ; Wed, 12 Apr 2023 10:52:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4546D9D4F for ; Wed, 12 Apr 2023 10:52:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmWC0-0000SW-Hv; Wed, 12 Apr 2023 04:51:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmWBy-0000S5-RY for emacs-orgmode@gnu.org; Wed, 12 Apr 2023 04:51:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmWBu-0007Wp-IY for emacs-orgmode@gnu.org; Wed, 12 Apr 2023 04:51:01 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3E4E72401F2 for ; Wed, 12 Apr 2023 10:50:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681289455; bh=61LsEe5LlnH3Jhg4Fxu9OUg9iLJ7zwTdglm2uObOSMU=; h=From:To:Cc:Subject:Date:From; b=nco9xvHjioXtXlSx1hSFzwv/2T13KFilapMFjYu+6G12wSaGo6U38bX9vxtTRqEPh 6iPAp5hxmKuNGIDW2DfosVb05NDnn5HwAdZnKW/qQZNsotIgNAq95QR0VRNZ8/WgzF I7qmm3SeFlfN2MudSWylfI2Y6zmcxMxu18YYH3JWaRpm6/3P5SK97/av7U4i9gDTS3 5Bwv3a4KlbIJe+mNHsE2OYxmVxf/9KJtPR0TU2Xo0VpJ50/hZhPe4rKAgNCNyTnoIm LgmsFkhc/3iUrH/HQcC91pSJd+frtHSfoZmqglnrZlTvzktcQcd9R/kKQv3pn34Bn0 uQ4Ul+ty5ofog== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PxGdV5P9gz9rxK; Wed, 12 Apr 2023 10:50:54 +0200 (CEST) From: Ihor Radchenko To: Miguel Garza Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Killing link located at beginning of line does not kill full link if region is selected to beginning or end of line by either mouse or arrow keys [9.5.2 (release_9.5.2-13-gdd6486 @ c:/Program Files/Emacs/emacs-29.0.50-snapshot/share/emacs/29.0.50/lisp/org/)] In-Reply-To: <4277d947-36de-45fd-b161-c8e4af5d17eb@app.fastmail.com> References: <4277d947-36de-45fd-b161-c8e4af5d17eb@app.fastmail.com> Date: Wed, 12 Apr 2023 08:53:20 +0000 Message-ID: <87bkjt8osf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681289539; a=rsa-sha256; cv=none; b=DMaCmAof+nd7bVmYfafjObNYu8RIVV334FCN2RBHolKJdWijPm9pDFMweIp80QLt3LdjiX xcsXwECtECjvibXnUDedbhVjzOW3oQxIBLgQgBAW84CtuwXwGstvIxFgzcU5v9c9HmuMTB 5TvSXA58tNf43BA32MBmh3Do6Hg66SMMophTt/uYiSY40FXqkpCSgJwfORz2Khdu7i86TB +2xv+ADtPL+qOkPT3OKeMALKQNAt7GX5eSITlO6OUyNUo5IzupT3kLMr/GnsDl418CEF8/ oPwJe9x9PIQUsn6fN9rVWNy7LrcXO9qhvjocnqKqxfXirOHGCsNxaffJ4rzfIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nco9xvHj; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681289539; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=x3ylziFiVxY9QKqR925nyCIFsMqaPGjl3QCBH4GblIc=; b=JxoBQSLn1c/T8WIac7jir/MscPV9Ef3unpUwJHlReH75JB+udy8+nMZCv6oDg/QqGb0l/3 vNWTum9xi1ohnuBZE+SgAabcj50pqnmNyduAIcbrbrtQxvtgHWrYobX+H8h/TwvlY+q26r i2KObdgjaUTs/rJ0roxX2exb7+99HqrbUOsnfkGUIzfugDH61k1pd91dmbcc8PPXBbzttp o27hIjFw0v41Y8Y8ou1Y/a4Sqj7ehMPMguzb/XwlJfX9gOnCVQJ7Tgto3MxdjSUsFGRn9W E+ztT6ai06wHLTJRR0StQEVe0H6wGztRdDwuPvLtj+JY7dYkEyo7lnW1e4pXZw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.24 X-Spam-Score: -4.24 X-Migadu-Queue-Id: 4546D9D4F Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nco9xvHj; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: Dt/0JxXb0ecY "Miguel Garza" writes: > [[www.google.com][link]] > > Org Mode will turn the above text into a clickable link called "link". > > Now, select the link either by clicking and dragging the mouse from the end of the word "link" to the beginning of the word, or by starting a region at either the beginning or end of the word (or on the next line) and then using the arrow keys to move point to either the "l" or "k" in "link". > > Your region should now encompass "link" and nothing else. > > Now, kill the line or region. > > You will see immediately that the full text was not killed. Instead, the link description is killed, along with, depending on where point was, possibly some of the brackets, leaving behind the opening brackets, the link URL, the URL closing bracket, and in some cases the final two brackets. Well. Part of the link text is indeed hidden, causing all kinds of unexpected behaviours depending on the point move direction. I am not sure what can be done here. I am not even sure what is the expected behaviour. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at