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 6DwXBbR7VmBwbQAA0tVLHw (envelope-from ) for ; Sat, 20 Mar 2021 22:48:20 +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 +HnYALR7VmDgOQAAB5/wlQ (envelope-from ) for ; Sat, 20 Mar 2021 22:48:20 +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 5B74813FCD for ; Sat, 20 Mar 2021 23:48:19 +0100 (CET) Received: from localhost ([::1]:44786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNkOG-0001fL-Vt for larch@yhetil.org; Sat, 20 Mar 2021 18:48:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNkN9-0001er-Jz for emacs-orgmode@gnu.org; Sat, 20 Mar 2021 18:47:09 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:36518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNkN3-0003Qw-Ke for emacs-orgmode@gnu.org; Sat, 20 Mar 2021 18:47:06 -0400 Received: by mail-lf1-x12f.google.com with SMTP id n138so15494757lfa.3 for ; Sat, 20 Mar 2021 15:47:00 -0700 (PDT) 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=wlmzK6VYxYM9YXOgTNvbaYnD4AMM7TbLub9mUTw5J6Q=; b=M9Sb4hi9obLTIwrKRTfuSjDhR2ZjNRG2po7M8A0euXaRRsIomlEUqqV3PkfPHNYeyX CVYzMgDFak2WYwz4NkhK0vENr6tPdviLaUrZeBQKKEIMWj3zYGI9RZxXvXavQXcjIdZ3 GQIR22qRMo/v/GQGnTOn3uVmEoLr72TM3CdW9k/FnKYESteb2ONijMjFb5nrR6mq2vQF Hu/SfyTeVhM6XCxX5BSDEWYTOI+SAr7kYqyNnY5e/zIOia9hew7X6t+mrzdsakH33CbJ 2/PDUAmIjbDCbvWYGn5sqx7HCTZtCVy9GuHl7p1ElXUsYnKazGlHEHDjaBy331G2lqPd cEJg== 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=wlmzK6VYxYM9YXOgTNvbaYnD4AMM7TbLub9mUTw5J6Q=; b=IjueVNaph+O0M9PVSLCW53+lJFgC3S6JGO+pDQ7m1Y5nENeQD1EYT9WYLZGVUJD56v SsXLRYHoSl9oNHClUjrDY7dchPIxMo8tpklrK6HeyTwXTlXOMaIjS6TbrNkEwSWLPGeK DJB64+r/1EZe1ABd0ahy0Cge34hAlkSrk7oUi16RjEGy0quZJcIWUNe3Vu20VF3zxe26 sfw12gJnbT3tqh9gp4oO7VlJZbcosB1kaJEFwlCU41zsTHXsf1OIJr1mVNsBsuR0Tzq/ ElBqGzbx0T3AnZZU/ptoDoOIsjXdyG2vcg4ZhEemv9wFAzIrDWMq40UXVOj85XY6Is4O iLmA== X-Gm-Message-State: AOAM531ZEBGXirvsu/Ak7uqfvcsmMu9RVMaRlM82oGcJ7B67Ch33mnnz IWVj2KQ7usVgP/LCxjcCxUgjrpKWeEC3aWTqNnRsKV+8V58= X-Google-Smtp-Source: ABdhPJzymr1PFgsJrkc3z1QjE91XbLpPgkFQpkofc38eizjZg3NZj3gjfF5E2MyQbKNZ9ICtX/tMpp5F7vnB0AjmpPA= X-Received: by 2002:a19:8048:: with SMTP id b69mr4820315lfd.458.1616280418730; Sat, 20 Mar 2021 15:46:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:7842:0:0:0:0:0 with HTTP; Sat, 20 Mar 2021 15:46:58 -0700 (PDT) From: Samuel Wales Date: Sat, 20 Mar 2021 15:46:58 -0700 Message-ID: Subject: link syntax fixing bug? To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=samologist@gmail.com; helo=mail-lf1-x12f.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-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616280499; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wlmzK6VYxYM9YXOgTNvbaYnD4AMM7TbLub9mUTw5J6Q=; b=DsZnb5l2W47Xv7WW/+T1clwoATQ+D9vwzffwpWEjOu9Y24V/JHGqHaMaO2Kpp/hNYw1BiT Tj7N+4Ds+T7qQZsGt7fKmN9fbt7dGYi76L0MnSymvRLo2ukE+jW1nXzTUlUaCAYtKgkXxM L4gshzLHmOK2ggnHjDvjxvUk/Zkd06aYWJ68/N3A3qj40+cReKmdkhvv0Ybfe8H2S821Oq M5Za1Lojfe60C3JEl0boan81CXq8lH+eRdc7xJnoasxrl7d1lXMGgPqqHRJwkPi7PPycOk FmOkSKcoZyzyMXWKPypTsnl6DpHfPN8NQ8oAuRzozc6JQNpELOHTMjZRM08+wg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616280499; a=rsa-sha256; cv=none; b=BrbPDWPNtEWIex7ASTNNTFPj3Hz8BloD0bjll7zS6qUxh3+MGoyJMf8NPrpTHl/6p7H5on y/r88JB/TTFOWi5lOLaSKncIenqcqhceDzk394RBoDuBlsl7H44fLmcj9P53nOAbiRNWal gwzsxM7rdnIq5lOCeDUUhEFrbirSeN6kDTPtPXJgIqTX/aJm7c2mLTV5Xs3UdsAO5Mhidd Jv7tad3OSeLBviFZdHBmlXKR9a+mTMTbn3lo3mqyOxej2cvlxNi6SfzkC7cgtIk4n6Emc2 OA1eAcgMt9RYZm8qSmxyPMYh9tVna+QpfZzf8uhjpUpRYN7Cad6A9r3whwI6yA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=M9Sb4hi9; 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-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=M9Sb4hi9; 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: 5B74813FCD X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: yqvPzddgSOXK in recent maint, i am trying the code included with the maint release to update org link escaping syntax. the issue is that when i click on google, the space before "hi" does not show up in the earch box. ergo, different results. *** should be orig [[http://www.google.com/search?q=3D%7E%22retroactive%20whatever%22%20%22hi%= 22][retro original]] *** should be fixed, is not? [[http://www.google.com/search?q=3D~"retroactive whatever" "hi"][retro original]] *** [[https://orgmode.org/Changes.html][Org mode for Emacs =E2=80=93 Releas= e notes]] The following function will help switching your links to the new syntax: (defun org-update-link-syntax (&optional no-query) "Update syntax for links in current buffer. Query before replacing a link, unless optional argument NO-QUERY is non-nil." (interactive "P") (org-with-point-at 1 (let ((case-fold-search t)) (while (re-search-forward "\\[\\[[^]]*?%\\(?:2[05]\\|5[BD]\\)" nil t) (let ((object (save-match-data (org-element-context)))) (when (and (eq 'link (org-element-type object)) (=3D (match-beginning 0) (org-element-property :begin object))) (goto-char (org-element-property :end object)) (let* ((uri-start (+ 2 (match-beginning 0))) (uri-end (save-excursion (goto-char uri-start) (re-search-forward "\\][][]" nil t) (match-beginning 0))) (uri (buffer-substring-no-properties uri-start uri-end))= ) (when (or no-query (y-or-n-p (format "Possibly obsolete URI syntax: %S. Fix? " uri))) (setf (buffer-substring uri-start uri-end) (org-link-escape (org-link-decode uri))))))))))) i'm kind of clueless about what the issue is. thank you. --=20 The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged= .html