emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Failure in compiling org-capture.el
Date: Mon, 17 Apr 2017 15:10:54 +0000	[thread overview]
Message-ID: <CAFyQvY1jEGo0R=KW-5Fk2cAWXJ9uk6CH2DCWaF_B2tigq6B9sg@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY0A5_Dmghp622EyuAeAbBx82HuUEgo3C-2rRLwTi8bvnA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

This patch works:

From 5edec74298a0140c5ebf55e7be0d64de6c702b17 Mon Sep 17 00:00:00 2001
From: Kaushal Modi <kaushal.modi@gmail.com>
Date: Mon, 17 Apr 2017 11:01:28 -0400
Subject: [PATCH] Fix nil case in pcase

* lisp/org-capture.el (org-capture-fill-template): Use `nil for the
  nil case in pcase form.
---
 lisp/org-capture.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 76cacdda764..cd67c280392 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1782,7 +1782,7 @@ The template may still contain \"%?\" for cursor
positioning."
  (lambda (s) (org-insert-link 0 s))))
    (first-value (car org-capture--clipboards)))
        (pcase (length org-capture--clipboards)
- (nil nil)
+ (`nil nil)
  (`(,value) (funcall insert-fun value))
  (`(,first-value . ,_)
   (funcall insert-fun
-- 
2.11.0

> --

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2071 bytes --]

  reply	other threads:[~2017-04-17 15:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-17 14:11 Failure in compiling org-capture.el Kaushal Modi
2017-04-17 14:55 ` Kaushal Modi
2017-04-17 15:10   ` Kaushal Modi [this message]
2017-04-17 15:19     ` Kaushal Modi
2017-04-17 18:05       ` Nicolas Goaziou
2017-04-17 18:11         ` Kaushal Modi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyQvY1jEGo0R=KW-5Fk2cAWXJ9uk6CH2DCWaF_B2tigq6B9sg@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).