From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sFKJGcP6l2CHDQAAgWs5BA (envelope-from ) for ; Sun, 09 May 2021 17:07:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8PQjFcP6l2CtJwAAB5/wlQ (envelope-from ) for ; Sun, 09 May 2021 15:07:47 +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 B9995197D6 for ; Sun, 9 May 2021 17:07:46 +0200 (CEST) Received: from localhost ([::1]:55220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfl21-00062t-RL for larch@yhetil.org; Sun, 09 May 2021 11:07:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfkie-0003cg-6a for emacs-orgmode@gnu.org; Sun, 09 May 2021 10:47:44 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:40903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfkiV-0006Z5-5y for emacs-orgmode@gnu.org; Sun, 09 May 2021 10:47:42 -0400 Received: by mail-pg1-x533.google.com with SMTP id j12so5427071pgh.7 for ; Sun, 09 May 2021 07:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jZ4jj4i29yZOfoFjKoPs63oNnvxeg8z6KHYG39T3QfY=; b=p2djIr985eMHCok3aRAoc4I2/irPGMI8OZSNSwyahKprd5a8DTdpRk/CmA1VDDrrBG sRrKd9OLeOvOF1+nQ252gNlNaD5+91RAMc+tr7mE2mzq9K6j0+cM6ZKGMypThObLDSBj IgsPsIq1r4hGi7kOXfLCFqNUtQGErDI2h7DNIMSWzWOsc98SwZRYl6lLsD7s61fLgMTq bzz72vNTHtTm9qaNszBATbsgxAPXb2pyPmNh8Bisuzgo5v3n1OeD5V2irt1iZkJgHHuP 0tFPEp5IWbSfhlRxh9mWLEitM/C8hWri8IuSIKwxMXWNob0SnN/1+L9R3/RDT9u+DX4q nKLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jZ4jj4i29yZOfoFjKoPs63oNnvxeg8z6KHYG39T3QfY=; b=tR/40macCQTU9KTuyQIVjWcq8yW1NJQS9swSume+2Bj2tGx+eJOm2jhXGgk0OvAnkl KyMnhFN2Z9FOc04mSwVFYx9i2i2Skv/sgm+wkhy522eWAM1qWbp+pY/naLPjIMZ21KPB xTs/GM+jpv4/lYM1M4zymBVkQXxTEQNdC+QFFzrS/U61QSAyXhWW6Zq6cqjs2WEhHkm2 JZkZVuD66QROwCBsY9nkCa59FP4LvfJ0i4dhuLLdRlf9AaZGk1Sr7OagQtxKUF+8miy8 66d4uqPE6w2RhHAIaKWL5f+0EjPNieDcYUdcFxf0BWaxNAQxwLurHavYmaKAnDrV7cdI de2g== X-Gm-Message-State: AOAM532bKgOd6H/6V9J6K9nmVm34AS19rbSbaSix9rMCgtv+29afFKoT jQ0GWxQnDftXFXvHh3isuuOmrrZvOP2SIg== X-Google-Smtp-Source: ABdhPJz4CJOb4K6egCnVLFD2xOpJ2YZjX6hvF9UAlTOftV9nZUEyT/L+4RDZnI3x8AJ6IJ5ckGMafA== X-Received: by 2002:a05:6a00:ac6:b029:27b:5d2:6e66 with SMTP id c6-20020a056a000ac6b029027b05d26e66mr20260159pfl.14.1620571651793; Sun, 09 May 2021 07:47:31 -0700 (PDT) Received: from localhost.localdomain (KD106154103141.au-net.ne.jp. [106.154.103.141]) by smtp.gmail.com with ESMTPSA id y64sm9184190pfy.204.2021.05.09.07.47.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 May 2021 07:47:31 -0700 (PDT) From: satotake To: emacs-orgmode@gnu.org Subject: org-refile.el: Fix the case of emtpy buffer name Date: Sun, 9 May 2021 23:47:11 +0900 Message-Id: <20210509144712.23387-1-doublequotation@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=doublequotation@gmail.com; helo=mail-pg1-x533.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, 09 May 2021 11:07:17 -0400 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=1620572867; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=jZ4jj4i29yZOfoFjKoPs63oNnvxeg8z6KHYG39T3QfY=; b=kzxb9Pp81R/s7hjZL9UH0+XW0JgfoenVNw4IVqk6PMc1bNN02ekMMbUQJCurmufXgISP48 CUWcDtuS7zcz3PN+yYnQO4boWyEM/pWeUC4OqTlFKsaE3jc06H4mDKfjX2awqqG1aLey+T M3keIjddWUfKz2HeS+3EwpEqsqvCoX+Xy8f3lrQ4c2Ych9nGcpAd+EE1EpS7biKJw2EeOn quVKnBbYrcejmS6k2kSyCM/yd0U71p/gSnCxmmQiQ5V58PVzoEUjR9wNL9skN+hCxQ1Jvd TsfIyRTQHsSt0u1WHp4Y7HHMJtHZ3p8NDczX77LDJ/TufJIq9UfZ7UiqGyjn7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620572867; a=rsa-sha256; cv=none; b=owiWk4/iIgNKFXe7AGFLbxS/HFN0BXdM8JtpCiuqHyBurbNF5SGNFCcuCEknIiHifhkw9/ mkkPxwKw1eFxJnaCmssHLdAM6hOyvDpblMUJ8U4R8FPwcsNfgy1bxCWQhRlCZDH22dEmgr YTMSUNsUV7/G9hdZGC74C6wUNq0gb1AZ0e3X4RqQCRSWHlDwdZI+wjsp/ndsxKsOAmRzFC Iug7DYSF7791HZzhXMIwMw/Y1PytoBv6qL2ZjWPGgwwLnYn+JaOtrOXUwVB8kFcOk0Mnw2 dd9N9eFZM3S1fCOn9xw4ooCU+7q8vcgKOiWMy98UNHc6g5X7spYPEiFzQq7nOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=p2djIr98; 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: 1.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=p2djIr98; 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: B9995197D6 X-Spam-Score: 1.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: GXBbm6oHbUSc Dear Org maintainers, I often use org-mode for note-taking and so on. Sometimes, I would like to refile the headings in the scratch to other org files while I am writing. When I call `org-refile' in the buffer, Emacs throws errors on `org-refile-get-targets' because, typically, these buffers do not have `buffer-name' and I set `org-refile-use-outline-path' `file'. To fix it, I have created my first patch. Regards Takeshi SATO