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 18:52:57 +0200	[thread overview]
Message-ID: <aoosl7x27e.ln2@news.c0t0d0s0.de> (raw)
In-Reply-To: r4rml7xgk6.ln2@news.c0t0d0s0.de

Hello Ingrid,

changing the code as follows leads to better results:

(setq org-remember-templates
   (quote (("aaa" 116 "* %u %?" hmw-get-notes-file-name "Notes"))))

(defun hmw-get-notes-file-name ()
(let ((fname (buffer-file-name (current-buffer))))
  (if (eq fname nil)
    "~/work/ORG/nil.org"
    (if (string-match "\\.org$" fname)
      fname
       "~/work/ORG/notes1.org"))))

The remaining problem is that fname is always nil. Why?


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 16:52 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 ` Michael Welle [this message]
2010-09-11 17:35   ` org-mode, remember Michael Welle

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=aoosl7x27e.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).