unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Welle <mwe012008@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: org-mode, remember
Date: Sat, 11 Sep 2010 19:35:57 +0200	[thread overview]
Message-ID: <u8rsl7x9fj.ln2@news.c0t0d0s0.de> (raw)
In-Reply-To: aoosl7x27e.ln2@news.c0t0d0s0.de

Hello,

and a last one...

The problem is that (buffer-file-name (current-buffer)) is evaluated in
the buffer that asks to choose a template. This buffer has no file
associated, so buffer-file-name is nil. The work around:

(defun hmw-remember ()
  (interactive)
  (setq org-default-notes-file (hmw-get-notes-file-name))
  (remember)
)

I first set the file name while the buffer in which I want the note to
be inserted is current. Then I evaluate (remember), which ask for a
template etc. In the template specification the filename parameter is
set to nil.

Regards
hmw

-- 
biff4emacsen - A biff-like tool for (X)Emacs
http://www.c0t0d0s0.de/biff4emacsen/biff4emacsen.html
Flood - Your friendly network packet generator
http://www.c0t0d0s0.de/flood/flood.html


      reply	other threads:[~2010-09-11 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <r4rml7xgk6.ln2@news.c0t0d0s0.de>
2010-09-11 16:52 ` org-mode, remember Michael Welle
2010-09-11 17:35   ` Michael Welle [this message]

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=u8rsl7x9fj.ln2@news.c0t0d0s0.de \
    --to=mwe012008@gmx.net \
    --cc=help-gnu-emacs@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.
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).