From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QJctCo8l9WLgHAAAbAwnHQ (envelope-from ) for ; Thu, 11 Aug 2022 17:51:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cDwmCo8l9WJZLwAAauVa8A (envelope-from ) for ; Thu, 11 Aug 2022 17:51:43 +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 BDA04275F for ; Thu, 11 Aug 2022 17:51:42 +0200 (CEST) Received: from localhost ([::1]:54798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMATE-0007hB-M8 for larch@yhetil.org; Thu, 11 Aug 2022 11:51:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMARi-0007ex-MV for emacs-orgmode@gnu.org; Thu, 11 Aug 2022 11:50:07 -0400 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:40657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMARg-0003lO-6M for emacs-orgmode@gnu.org; Thu, 11 Aug 2022 11:50:06 -0400 Received: by mail-lf1-x131.google.com with SMTP id x19so17822501lfq.7 for ; Thu, 11 Aug 2022 08:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc; bh=kc+ZhhrEaRl6WDWwcFenWr+WqUYCtNhPUUilDfoj1JU=; b=e1GPaZfHRV2i2E+5Q/2pp/3vEpQPajWre0+7S94gUUupKHwroPAPrP3/TKJX4t1H5z w0hz9R/8fDevtEdnJuTEx3hH7r2Q6Qrsdb06kvterrQHA37+COVJcqs10aoUfnwZj0xJ 347+hdyorbjScK/n+5DhGx96GXZkjGWnSqvL68UlA2FxasOux37IypFXZn9QItlE5L6p lB/EeQ3zLpvrv85htLskod5LU/9vfi5uknqG9rFSs4OZ09eFQd67ngn7vtZ26UIsbXao wRCPcdKg0jKfXK1fnelGlZFHu9Hv1r6COp2wroH//YmI4Nf8Wlsta7kMZbu1oqBVLwK+ YNSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc; bh=kc+ZhhrEaRl6WDWwcFenWr+WqUYCtNhPUUilDfoj1JU=; b=2Jl1VX6RpE8/Sn9Pjfbw8Gu82oMD3nQ32jubNFWdos9KeNjZeMatbVy0x2WaGxGvYs QMhy86z6P+gRddKLlzhjcj9GJcPI8NLzcW9KsYE9yoWs980f7yk3OxgXyoybtXbp05kL CGxpM33fYkQwWOHe4IaJ0aqWAFYt67owEz7pj1V1Z3yl9EqsSctzu5C9KWb0V5AHK7bM +YUku4n9DZsjg0hwwZ3HirHvTMeFTXiGevUfdjRQGDCB6cmBkL8BCc44q9kFDFlxnAka sge7NPoadokh4B2pgd2kE7Zm8K/6Gwn9OLjH8uxKOjYH1+2+JI4ZnKa4KU4HlDyn5arb NV1A== X-Gm-Message-State: ACgBeo09oEHP1o+DvAWT1C0DGYag2dqhuWVyBgFxvwebjjRoQsyT4nGP 6hJPaqYSjCBjwn7N4ICJLJo= X-Google-Smtp-Source: AA6agR507kV+ZE+akvBmjopd0ZiykZpt+GsUCwQm5ZNE4R2z8nUL/cGLXi46RdVAju6UEW/e+8gW8w== X-Received: by 2002:a19:c506:0:b0:48a:ee19:a820 with SMTP id w6-20020a19c506000000b0048aee19a820mr12621968lfe.38.1660233002343; Thu, 11 Aug 2022 08:50:02 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id n20-20020a05651203f400b0048b2b1d4831sm739152lfq.196.2022.08.11.08.50.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Aug 2022 08:50:01 -0700 (PDT) Message-ID: Date: Thu, 11 Aug 2022 22:50:00 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] Re: Adding target and custom id links doesn't ask for description Content-Language: en-US To: Carlos Pita Cc: emacs-orgmode References: <87a68c4pyc.fsf@localhost> From: Max Nikulin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=manikulin@gmail.com; helo=mail-lf1-x131.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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660233102; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kc+ZhhrEaRl6WDWwcFenWr+WqUYCtNhPUUilDfoj1JU=; b=LX/NmMQiVychYF7o5Zj9gUoPA8K1HoAu6j7X0m/1KArgVyvp8+68gH7oeEE9DZVdTTJmPt pOHH8kEmEgRWTpUsOmcxMtdKpZtpOOaW7M97JojzaA1QI3KG7qECqqq2/Uk18BDSZrEChN opsaIow1J9HQmyC1CFfOdLBU6rM1UirVDXoOir0ELCPmcZBkQgi+tCH/RU1hDL/c7kJokg 1a46ZwVWTUTUyEommJjZABwQ3ZahnbnBmWt47dzTaQhp2SV/XmPLt/z87jNgBCjp7khsjF POUvS5Y/tT729LKSLHvDWHJZOR7DFAqE73LYQAeoalTxbnE1mdIsEiYBSm2tQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660233102; a=rsa-sha256; cv=none; b=Yf9C2oBQgzxgMTLFIGr1ZMijw5oGHNiqFbJ/y3InhiP9iYX74GXncH6CJQBubdit/Ej8HG xuAVIq4DDoyFfUZuyjDyyLRRFFzGH9hFp/uZ4owX5u80sQ4dqR0vyyP98DYznAeRj9/kbD dT6BIuXVc57qYkWs8IyGg497kfTC/pA258CdcOM1jM7DwsvuP11SRzHPMuasLNsi2+iyUE 4gP+4TY9DYEhY016rkhWKmyrUoFQ++qpA+UaU4rfJilwidoi/Sw+nCYFBHfH4RGwqL7nJu TBTX9yFZnYJQkFDwnWqscY+/TIBlnoFVAmNcT1UgvOEqmTzEcvfSH5oL9MPdsA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=e1GPaZfH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 5.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=e1GPaZfH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: BDA04275F X-Spam-Score: 5.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: iHIQMyyMRVWa On 10/08/2022 19:30, Carlos Pita wrote: > > I suggest to set description to nil and thus ask the user in such > scenario. > > I'm fine with that. Alternatively the default may be the target or > custom id (that is, the same that is in the link part), again letting > the user change it. Thanks! Carlos, have you tried Ihor's patch? I like the intention, but I do not see any effect. If I read the code correctly, first chunk is for C-u C-u, second one for id, not CUSTOM_ID links. The latter works on the main branch: I am prompted to confirm heading title as description. So I am confused. In my environment my patches: Max Nikulin. Re: Bug: org-store-link uses CUSTOM_ID instead of target point. Sat, 6 Nov 2021 19:51:29 +0700. https://list.orgmode.org/e2c807a7-1924-6f08-9e63-4f70aee9d3b5@gmail.com helps for #CUSTOM_ID and <> links. Heading title is offered in the first case and empty description in the latter. P.S. The reason why file name is originally stored is that the link may be inserted to another file. When link is inserted to the same document, only target part is transformed to strip file name, description remains as it was stored.