From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0BcaFwhha18CWwAA0tVLHw (envelope-from ) for ; Wed, 23 Sep 2020 14:51:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UPxAEwhha19wQwAA1q6Kng (envelope-from ) for ; Wed, 23 Sep 2020 14:51:52 +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 DFCA19403D6 for ; Wed, 23 Sep 2020 14:51:51 +0000 (UTC) Received: from localhost ([::1]:46110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL67a-0005dq-U4 for larch@yhetil.org; Wed, 23 Sep 2020 10:51:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL65f-0004aM-8Q for emacs-orgmode@gnu.org; Wed, 23 Sep 2020 10:49:51 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:34925) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kL65d-0007QK-Lv for emacs-orgmode@gnu.org; Wed, 23 Sep 2020 10:49:50 -0400 Received: by mail-pl1-x633.google.com with SMTP id bb1so1250565plb.2 for ; Wed, 23 Sep 2020 07:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:cc:subject:in-reply-to :message-id:date:mime-version; bh=gdwfAFe+o/DLrgzHHj14mcn5rsY8rkxJ2FP3D09MJec=; b=iDK6n2bHjMT5cTFHQ2Z/LXIrgH6v0fBVzobvALTV39JbfECiaIY8sxFXm4XjTTbx44 eRJFFoBkBmPxc0Yz/qTB8iPqgUdgEoTA/OHY6orXfrWwq0LtDQ/NpVC2kvts4t6Ayi0b P9QTlqb15Nm2QmdRwAdwcZf3cXm5I8+6zZ9mx2I8efJqYBsV9MIu9HvWULKrNNau7aL+ WXKlt7o9AGGJpHbRr0GIJcqGqVrar1K7mgDXvEUPArogOCwFc03xEzz8XnUdAungJIvm v16AGo9fF5SwIcm1n4tz8r6Gzlipyyim4EMCtsaiH2qMATngsiR1R5jIQcQFUQSGFFLX +nqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=gdwfAFe+o/DLrgzHHj14mcn5rsY8rkxJ2FP3D09MJec=; b=ZIFgCU500EbdR9wLy/FEimMoXLwFbKiX1wQ5TG/LayzLqaXO2NEfB9ur+uwB7q7W7R EHsy9dDRq9SiF3YHNRpoJ/fD987e5Ex6kByVTUbeYiQooUJmoT1Z3lGWQv8qnaMGVcvp k/MiH3KXftri88jUIA91zEROW+5EcP+PZcqaJjdiJ8H2wf6OPvLZ45Y+vUfBOV+CTpgk ULr2rC170zAiGsC5xNnbfmZWONb4ic+KAUs/+gNxhxoaK/0pmPltunFjicifmhMnxUgr BOuFzc5ctp34paQ3Ibz2sUkY4YeAbFUrlCV9vIFEC5k3fM/Sqxsu1D3Cz12q9mBNf2hY vowQ== X-Gm-Message-State: AOAM530VNFcMnWSCh/qhs/GHLMQ+jJFcS9CoyjaggzT4Pma71DPLSNWV DH3GIpzQ3Mjx7L640cmvje5/TtftDoc= X-Google-Smtp-Source: ABdhPJxoIwAvXsjFA4rpTub1n6sxDu+zD5hr1UB4RAGxxQwwNqHTXJLqoYmbBy4FmvEycpmaB3/V/Q== X-Received: by 2002:a17:902:6844:b029:d2:4300:b936 with SMTP id f4-20020a1709026844b02900d24300b936mr224446pln.32.1600872587562; Wed, 23 Sep 2020 07:49:47 -0700 (PDT) Received: from gusbrs-laptop ([91.207.175.213]) by smtp.gmail.com with ESMTPSA id i17sm48506pfa.2.2020.09.23.07.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 07:49:46 -0700 (PDT) References: <87tuvrj7ww.fsf@gmail.com> <5f6b58e7.1c69fb81.c7d4c.c515@mx.google.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Gustavo Barros To: numbchild@gmail.com Subject: Re: Bug: Double trailing slash for default candidate in org-refile-get-target [9.4 (9.4-7-g3eccc5-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200921/)] In-reply-to: <5f6b58e7.1c69fb81.c7d4c.c515@mx.google.com> Message-ID: <871rislf97.fsf@gmail.com> Date: Wed, 23 Sep 2020 11:49:41 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=gusbrs.2016@gmail.com; helo=mail-pl1-x633.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: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=iDK6n2bH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Spam-Score: 3.39 X-TUID: Ku9Q7IO91VLQ Hi stardiviner, On Wed, 23 Sep 2020 at 11:17, stardiviner wrote: > I have same issue when using Ivy. But can't reproduce this by disabled > ivy-mode. > And only happened when I refiled once, then the target will has two > slash like this: > > #+begin_example > Tasks/kk// (file.org) > Tasks/hello/ (file.org) > #+end_example > Thank you for checking this and for confirming you also observe this behavior with Ivy. Regarding when ivy-mode is off, as I argued in the original report, the problem is indeed *not visible* when using `completing-read-default', the double trailing slash is nevertheless there if you inspect the value being passed as default value to the completing-read-function. The tests included with ivy-mode turned off were meant to emphasize things are expected to work with the suggested fix also in this case, in other words, that this is not "just a fix for ivy-mode", which is not the problem here. Best, Gustavo.