From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WNVWK3S96F/HagAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 16:59:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yEFMJ3S96F9hXgAAB5/wlQ (envelope-from ) for ; Sun, 27 Dec 2020 16:59:32 +0000 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 D47279401CD for ; Sun, 27 Dec 2020 16:59:31 +0000 (UTC) Received: from localhost ([::1]:53562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktZOE-0005nS-Du for larch@yhetil.org; Sun, 27 Dec 2020 11:59:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktZ9z-0004I4-0T for emacs-orgmode@gnu.org; Sun, 27 Dec 2020 11:44:47 -0500 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]:45846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktZ9w-0004Z6-Rz for emacs-orgmode@gnu.org; Sun, 27 Dec 2020 11:44:46 -0500 Received: by mail-ot1-x330.google.com with SMTP id n42so7330835ota.12 for ; Sun, 27 Dec 2020 08:44:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=y7AW8zpjHMnwc1gLrpig2kR6kD1pdIsaxe6QlVel7h4=; b=UJY8qKcxazme/FBqrYqothQq2Xu808JgHIvR64LNUXhxW/Fwks8SjuI5wLWsqEZJmE 9bDQu2QPEjnbM74DcqoeIh37/tNGzrfhSr0CgKUzAKxREMqIgb00aqMOFnI+q/WKNSZJ GJVM3YGS1Z1PVdI6+twtp8bSFQgdQWr/pCPCOY4M1tMZ2/7NbJjtWZ9rhzOg5aDShW0Q /vK5oTDgnprdFxBixdP78o2vF9JGVOheppQezXpmtVwTKigZC8gV+R/x9fPfxdZwvSwM uEDrkSuf31BKNt6r0GQ8nMKD/K6VonNQi40NZAhepJ+fKMZkdyIpL7qsqDCKQKgbN0PS GYDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=y7AW8zpjHMnwc1gLrpig2kR6kD1pdIsaxe6QlVel7h4=; b=jQ/Fji75Uro/65Ea5gwyOED48FG6Urx0KpoJkmrdXkfhDcq8MLUCV2NrYMwkqINJTu 85dxhTjVkUhFD+iMX63NkV1fL03iqaKkNDHs4l19PwNNts//wXBdz/KvDKlWOcL5vsQS gl4SegFPPRPTKTZ4nnKtoScIwRHb/UnE0OgcxK9+X4iatrXIFvOPaLpWLhDaya7ME57W n7jO2C9zk7LpZBuuvt7hYshcwV4BDLiTkA+Qbo17EnDF+7SyB2aGmA36AP6qflVsdlBU nvBwizibBVAyd0rx435rqEhsFYTNoANEejBiy2ELrFTVv/Iz8OeMy0wzW3lXxP1BecIg D9fw== X-Gm-Message-State: AOAM531KJesLYGF3pIvvahtfrmS+rWfP/AIRKb9kO4nsqUl3VetR1oua 8PLFczeN21vRro9/MxEHqaNod83+1Ym6nEg3lYmOMSuXixQ46w== X-Google-Smtp-Source: ABdhPJyuL6tgDynbJ13NoIPHiVqS9MxAc6kt/G1gEqrb3wWTIDBZRad0iG7XhNEOBNUekfnpk+ZLFo6qKsHyrPC6tho= X-Received: by 2002:a9d:1c6:: with SMTP id e64mr23388810ote.50.1609087482916; Sun, 27 Dec 2020 08:44:42 -0800 (PST) MIME-Version: 1.0 From: Chris Hunt Date: Sun, 27 Dec 2020 11:44:07 -0500 Message-ID: Subject: Bug: Tildes in URL impact visible link text [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)] To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=chrahunt@gmail.com; helo=mail-ot1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, 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-Mailman-Approved-At: Sun, 27 Dec 2020 11:54:24 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=UJY8qKcx; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D47279401CD X-Spam-Score: -3.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: XzFLTAQDcLPQ I'm trying to create a link in an org file with this URL: https://console.aws.amazon.com/cloudwatch/home?region=3Dus-east-1#metri= csV2:graph=3D~(view~'timeSeries~stacked~false~metrics~(~(~'CWAgent~'backup_= time~'host~'desktop~'metric_type~'timing))~region~'us-east-1);query=3D~'*7b= CWAgent*2chost*2cmetric_type*7d and this description: "metrics". To do it, I followed these steps: 1. run `emacs -Q test.org`, where test.org is not an existing file 2. emacs GUI displays, type `M-x org-insert-link` 3. a "Link" prompt is displayed, paste the link and press return 4. a "Description" prompt is displayed, type "metrics" and press return At this point I expect to see only the text "metrics" in the buffer, with n= ormal link decoration (underline and highlight). Instead, I see "~(~'CWAgent~metrics" with some mix of link decoration and some other style, as shown in the following image: https://i.imgur.com/vb9vE43.png The actual text from the file is [[https://console.aws.amazon.com/cloudwatch/home?region=3Dus-east-1#met= ricsV2:graph=3D~(view~'timeSeries~stacked~false~metrics~(~(~'CWAgent~'backu= p_time~'host~'desktop~'metric_type~'timing))~region~'us-east-1);query=3D~'*= 7bCWAgent*2chost*2cmetric_type*7d][metrics]] This is emacs 27.1 from http://ppa.launchpad.net/kelleyk/emacs/ubuntu, with org version 9.3. Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-09-19 Package: Org mode version 9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org= /) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lin= es org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-open-link :export org-attach-export-link :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow eww :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[257 "\301\300\302 Q!\207" ["news" browse-url ":"] 5 "\n\n(fn URL)"] ) ("mailto" :follow #[257 "\301\300\302 Q!\207" ["mailto" browse-url ":"] 5 "\n\n(fn URL)"] ) ("https" :follow #[257 "\301\300\302 Q!\207" ["https" browse-url ":"] 5 "\n\n(fn URL)"] ) ("http" :follow #[257 "\301\300\302 Q!\207" ["http" browse-url ":"] 5 "\n\n(fn URL)"] ) ("ftp" :follow #[257 "\301\300\302 Q!\207" ["ftp" browse-url ":"] 5 "\n\n(fn URL)"] ) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) org-link-elisp-confirm-function 'yes-or-no-p )