emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Hugo Schmitt" <hugows@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Patch to allow quotes showing on *remember*
Date: Mon, 14 Jan 2008 16:45:19 -0300	[thread overview]
Message-ID: <2f1c7d020801141145ib4422ady3febf585dc1256c@mail.gmail.com> (raw)

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

Hi folks!
I'm sending this as a suggestion.
Right now the function 'org-remember-handler' removes the lines on the
beginning of the buffer that start with "##" (the ones explaining
usage, shortcuts, etc)
Yesterday i was trying out sachac's idea of putting quotes into
remember (on the bottom), but the text that went there was being added
to the todo.org with the actual todo.

W/ the fix org also removes the lines on the end that begin with '##'.

Cheers,
-Hugo

[-- Attachment #2: org.el.patch --]
[-- Type: application/octet-stream, Size: 499 bytes --]

*** c:/hugo/repo/emacs/other/org/org.ori.el	Mon Jan 14 17:30:12 2008
--- c:/hugo/repo/emacs/other/org/org.el	Mon Jan 14 17:30:52 2008
***************
*** 13568,13573 ****
--- 13568,13575 ----
    (while (looking-at "^[ \t]*\n\\|^##.*\n")
      (replace-match ""))
    (goto-char (point-max))
+   (while (looking-back "^[ \t]*\n\\|^##.*\n")
+ 	(replace-match ""))
    (catch 'quit
      (if org-note-abort (throw 'quit nil))
      (let* ((txt (buffer-substring (point-min) (point-max)))

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2008-01-14 19:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 19:45 Hugo Schmitt [this message]
2008-01-15 10:55 ` Patch to allow quotes showing on *remember* Carsten Dominik
2008-01-15 11:04   ` Hugo Schmitt
2008-01-15 11:17     ` Carsten Dominik
2008-01-15 11:26       ` Hugo Schmitt
2008-01-15 11:31         ` Carsten Dominik

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=2f1c7d020801141145ib4422ady3febf585dc1256c@mail.gmail.com \
    --to=hugows@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).