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 aLKwJaH0lV5YSwAA0tVLHw (envelope-from ) for ; Tue, 14 Apr 2020 17:36:33 +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 mOvqHaT0lV7GNAAAB5/wlQ (envelope-from ) for ; Tue, 14 Apr 2020 17:36:36 +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 900A494218C for ; Tue, 14 Apr 2020 17:36:34 +0000 (UTC) Received: from localhost ([::1]:36480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOPU8-00005u-Gq for larch@yhetil.org; Tue, 14 Apr 2020 13:36:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50135) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOPRe-0005sd-4u for emacs-orgmode@gnu.org; Tue, 14 Apr 2020 13:33:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOPRZ-0007lz-SU for emacs-orgmode@gnu.org; Tue, 14 Apr 2020 13:33:54 -0400 Received: from zed.grinta.net ([109.74.203.128]:53790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jOPRZ-0007jz-AK for emacs-orgmode@gnu.org; Tue, 14 Apr 2020 13:33:53 -0400 Received: from 688dnmac.campus.nist.gov (unknown [132.163.253.37]) (Authenticated sender: daniele) by zed.grinta.net (Postfix) with ESMTPSA id 95239E1059; Tue, 14 Apr 2020 17:33:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=mail; t=1586885631; bh=A1n1cB6UAn/h2awBAGFwpfLqSVU+kExoW9mKIfpjlU8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=iU60bVRZ4tdsOUv4fdFR7odB+osyhoJnG2Uz467+e9PDDeiJlJkd7y8aIwT4fXLXq zrImvca0+bXyqDcXuP5G5dv8XhNRueZ5TBl1fFXa1XytpiVaubBUtfaaCDtsSSdJdP 6pJZ8uWoM1pzFVo0j8jxS8yma5rqbBYxhdsKhwSw= Subject: Re: org-ref: xxx-add-bibtex-entry with an org-capture like interface To: John Kitchin References: <3637b672-535c-2a73-d793-9cc2f479ab2b@grinta.net> From: Daniele Nicolodi Message-ID: <934ea660-2aad-f450-f7a7-1ccd0195d3f0@grinta.net> Date: Tue, 14 Apr 2020 11:33:48 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 109.74.203.128 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 X-Spam-Score: -0.01 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=grinta.net header.s=mail header.b=iU60bVRZ; dmarc=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-Scan-Result: default: False [-0.01 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.57540558079902]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.27), country: US(-0.01), ip: 209.51.188.17(-0.58)]; R_DKIM_REJECT(1.00)[grinta.net:s=mail]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[grinta.net:-]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[daniele@grinta.net,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grinta.net]; HAS_LIST_UNSUB(-0.01)[]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: NptUvRfKEH08 On 09-04-2020 13:43, John Kitchin wrote: > This is basically what doi-add-bibtex-entry does. There isn't one > function that does arxiv too, but there is arxiv-add-bibtex-entry. Those > are both commands in org-ref. These don't pop up a buffer for approval, > that is something you would have to build yourself. > > There are many workflows people want, the one above works for me when I > am writing, and just want to add entries with minimal disruption. I > usually polish the entries later if needed. I can see a slower, approach > like you describe too. Hello John, I have been able to hack something combining org-capture and the utility functions you mention that implements the workflow I described. There is only one issue: doi-utils-insert-bibtex-entry-from-doi contains a (save-buffer) call that does not play nicely when I call it on a temporary buffer. Why is the (save-buffer) there? doi-utils-insert-bibtex-entry-from-doi looks like an utility function, thus I think it should not try to save the current buffer. What do you think? Thank you. Cheers, Dan