* Patch to allow quotes showing on *remember* @ 2008-01-14 19:45 Hugo Schmitt 2008-01-15 10:55 ` Carsten Dominik 0 siblings, 1 reply; 6+ messages in thread From: Hugo Schmitt @ 2008-01-14 19:45 UTC (permalink / raw) To: emacs-orgmode [-- 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Patch to allow quotes showing on *remember* 2008-01-14 19:45 Patch to allow quotes showing on *remember* Hugo Schmitt @ 2008-01-15 10:55 ` Carsten Dominik 2008-01-15 11:04 ` Hugo Schmitt 0 siblings, 1 reply; 6+ messages in thread From: Carsten Dominik @ 2008-01-15 10:55 UTC (permalink / raw) To: Hugo Schmitt; +Cc: emacs-orgmode Hi Hugo, I am not sure what the purpose of this is. The ## stuff at the beginning is stuff to remind the user on how to proceed further. What is the idea of Sacha you are referring to? What is the use case? Thanks. On Jan 14, 2008, at 8:45 PM, Hugo Schmitt wrote: > 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 > <org.el.patch>_______________________________________________ > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Patch to allow quotes showing on *remember* 2008-01-15 10:55 ` Carsten Dominik @ 2008-01-15 11:04 ` Hugo Schmitt 2008-01-15 11:17 ` Carsten Dominik 0 siblings, 1 reply; 6+ messages in thread From: Hugo Schmitt @ 2008-01-15 11:04 UTC (permalink / raw) To: Carsten Dominik; +Cc: emacs-orgmode Hi again. Let me just show you the use case. Take a look at my current remember buffer: ---start ## Filing location: Select interactively, default, or last used: ## C-u C-c C-c to select file and header location interactively. ## C-c C-c "~/hugo/docs/org/todo.org" -> "* Inbox" ## C-u C-u C-c C-c "???" -> "* ???" ## To switch templates, use `C-c r'. To abort use `C-c C-k'. * TODO todo title goes here [2008-01-15 ter] ## An Emacs reference mug is what I want. It would hold ten gallons of coffee. ## -- Steve VanDevender ---end I need that patch so that the bottom lines (the quote) aren't appended into the org file after remember. I was just saying that, if more people use something like this *and* it doesn't mess up for people who don't, the patch could be added to org. -hugo On Jan 15, 2008 7:55 AM, Carsten Dominik <carsten.dominik@gmail.com> wrote: > Hi Hugo, > > I am not sure what the purpose of this is. The ## stuff at the > beginning > is stuff to remind the user on how to proceed further. What is the idea > of Sacha you are referring to? What is the use case? > > Thanks. > > > > On Jan 14, 2008, at 8:45 PM, Hugo Schmitt wrote: > > > 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 > > <org.el.patch>_______________________________________________ > > 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 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Patch to allow quotes showing on *remember* 2008-01-15 11:04 ` Hugo Schmitt @ 2008-01-15 11:17 ` Carsten Dominik 2008-01-15 11:26 ` Hugo Schmitt 0 siblings, 1 reply; 6+ messages in thread From: Carsten Dominik @ 2008-01-15 11:17 UTC (permalink / raw) To: Hugo Schmitt; +Cc: emacs-orgmode Hi Hugo, On Jan 15, 2008, at 12:04 PM, Hugo Schmitt wrote: > Hi again. > Let me just show you the use case. Take a look at my current > remember buffer: > > ---start > ## Filing location: Select interactively, default, or last used: > ## C-u C-c C-c to select file and header location interactively. > ## C-c C-c "~/hugo/docs/org/todo.org" -> "* Inbox" > ## C-u C-u C-c C-c "???" -> "* ???" > ## To switch templates, use `C-c r'. To abort use `C-c C-k'. > > * TODO todo title goes here > [2008-01-15 ter] > > ## An Emacs reference mug is what I want. It would hold ten gallons > of coffee. > ## -- Steve VanDevender > ---end > > I need that patch so that the bottom lines (the quote) aren't appended > into the org file after remember. > I was just saying that, if more people use something like this *and* > it doesn't mess up for people who don't, the patch could be added to > org. My question is: how did this extra commend get into the remember buffer in the first place? Why is it there? just for fun? - Carsten > > > -hugo > > > On Jan 15, 2008 7:55 AM, Carsten Dominik <carsten.dominik@gmail.com> > wrote: >> Hi Hugo, >> >> I am not sure what the purpose of this is. The ## stuff at the >> beginning >> is stuff to remind the user on how to proceed further. What is the >> idea >> of Sacha you are referring to? What is the use case? >> >> Thanks. >> >> >> >> On Jan 14, 2008, at 8:45 PM, Hugo Schmitt wrote: >> >>> 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 >>> <org.el.patch>_______________________________________________ >>> 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 >> >> ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Patch to allow quotes showing on *remember* 2008-01-15 11:17 ` Carsten Dominik @ 2008-01-15 11:26 ` Hugo Schmitt 2008-01-15 11:31 ` Carsten Dominik 0 siblings, 1 reply; 6+ messages in thread From: Hugo Schmitt @ 2008-01-15 11:26 UTC (permalink / raw) To: Carsten Dominik; +Cc: emacs-orgmode Carsten, Yeah, mostly for fun, but for example Sacha used it for learning English-Japanese translations.. If there is a better way to fix the remember buffer, please tell me. Here's a excerpt from Sacha's post: Adding Other Text to the Remember Buffer Remember has plenty of hooks that let you modify the behavior. For example, you might want to insert a random tagline or fortune-cookie saying whenever you create a note. This is a fun way to encourage yourself to write more, because then there's a little surprise every time you open a Remember buffer. and here is the code that inserts that (rest is on the blog): (eval-after-load 'remember '(progn (defadvice remember (after wicked activate) "Add random tagline." (save-excursion (goto-char (point-max)) (insert "\n\n" (wicked/random-tagline) "\n\n"))))) Maybe i can implement that "cleaning the remember buffer" also as an advice or hook? Thanks in advance. Hugo Here's the link: http://sachachua.com/wp/2008/01/13/capturing-notes-with-remember/ search for subtitle "Adding Other Text to the Remember Buffer" On Jan 15, 2008 8:17 AM, Carsten Dominik <carsten.dominik@gmail.com> wrote: > Hi Hugo, > > On Jan 15, 2008, at 12:04 PM, Hugo Schmitt wrote: > > > Hi again. > > Let me just show you the use case. Take a look at my current > > remember buffer: > > > > ---start > > ## Filing location: Select interactively, default, or last used: > > ## C-u C-c C-c to select file and header location interactively. > > ## C-c C-c "~/hugo/docs/org/todo.org" -> "* Inbox" > > ## C-u C-u C-c C-c "???" -> "* ???" > > ## To switch templates, use `C-c r'. To abort use `C-c C-k'. > > > > * TODO todo title goes here > > [2008-01-15 ter] > > > > ## An Emacs reference mug is what I want. It would hold ten gallons > > of coffee. > > ## -- Steve VanDevender > > ---end > > > > I need that patch so that the bottom lines (the quote) aren't appended > > into the org file after remember. > > I was just saying that, if more people use something like this *and* > > it doesn't mess up for people who don't, the patch could be added to > > org. > > > My question is: how did this extra commend get into the remember buffer > in the first place? Why is it there? just for fun? > > - Carsten > > > > > > > > -hugo > > > > > > On Jan 15, 2008 7:55 AM, Carsten Dominik <carsten.dominik@gmail.com> > > wrote: > >> Hi Hugo, > >> > >> I am not sure what the purpose of this is. The ## stuff at the > >> beginning > >> is stuff to remind the user on how to proceed further. What is the > >> idea > >> of Sacha you are referring to? What is the use case? > >> > >> Thanks. > >> > >> > >> > >> On Jan 14, 2008, at 8:45 PM, Hugo Schmitt wrote: > >> > >>> 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 > >>> <org.el.patch>_______________________________________________ > >>> 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 > >> > >> > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Patch to allow quotes showing on *remember* 2008-01-15 11:26 ` Hugo Schmitt @ 2008-01-15 11:31 ` Carsten Dominik 0 siblings, 0 replies; 6+ messages in thread From: Carsten Dominik @ 2008-01-15 11:31 UTC (permalink / raw) To: Hugo Schmitt; +Cc: emacs-orgmode Hi Hugo, I see now what you mean, and I have no objections to remove comment lines at the end. However, I believe that Sacha's idea it terrible and completely orthogonal to the idea of remember, which was written to *minimize* distraction :-) Anyway, I will add your patch. - Carsten On Jan 15, 2008, at 12:26 PM, Hugo Schmitt wrote: > Carsten, > Yeah, mostly for fun, but for example Sacha used it for learning > English-Japanese translations.. > If there is a better way to fix the remember buffer, please tell me. > > Here's a excerpt from Sacha's post: > > Adding Other Text to the Remember Buffer > > Remember has plenty of hooks that let you modify the behavior. For > example, you might want to insert a random tagline or fortune-cookie > saying whenever you create a note. This is a fun way to encourage > yourself to write more, because then there's a little surprise every > time you open a Remember buffer. > > and here is the code that inserts that (rest is on the blog): > > (eval-after-load 'remember > '(progn > (defadvice remember (after wicked activate) > "Add random tagline." > (save-excursion > (goto-char (point-max)) > (insert "\n\n" (wicked/random-tagline) "\n\n"))))) > > Maybe i can implement that "cleaning the remember buffer" also as an > advice or hook? > Thanks in advance. > Hugo > > > Here's the link: > http://sachachua.com/wp/2008/01/13/capturing-notes-with-remember/ > search for subtitle "Adding Other Text to the Remember Buffer" > > > On Jan 15, 2008 8:17 AM, Carsten Dominik <carsten.dominik@gmail.com> > wrote: >> Hi Hugo, >> >> On Jan 15, 2008, at 12:04 PM, Hugo Schmitt wrote: >> >>> Hi again. >>> Let me just show you the use case. Take a look at my current >>> remember buffer: >>> >>> ---start >>> ## Filing location: Select interactively, default, or last used: >>> ## C-u C-c C-c to select file and header location >>> interactively. >>> ## C-c C-c "~/hugo/docs/org/todo.org" -> "* Inbox" >>> ## C-u C-u C-c C-c "???" -> "* ???" >>> ## To switch templates, use `C-c r'. To abort use `C-c C-k'. >>> >>> * TODO todo title goes here >>> [2008-01-15 ter] >>> >>> ## An Emacs reference mug is what I want. It would hold ten gallons >>> of coffee. >>> ## -- Steve VanDevender >>> ---end >>> >>> I need that patch so that the bottom lines (the quote) aren't >>> appended >>> into the org file after remember. >>> I was just saying that, if more people use something like this *and* >>> it doesn't mess up for people who don't, the patch could be added to >>> org. >> >> >> My question is: how did this extra commend get into the remember >> buffer >> in the first place? Why is it there? just for fun? >> >> - Carsten >> >> >>> >>> >>> -hugo >>> >>> >>> On Jan 15, 2008 7:55 AM, Carsten Dominik <carsten.dominik@gmail.com> >>> wrote: >>>> Hi Hugo, >>>> >>>> I am not sure what the purpose of this is. The ## stuff at the >>>> beginning >>>> is stuff to remind the user on how to proceed further. What is the >>>> idea >>>> of Sacha you are referring to? What is the use case? >>>> >>>> Thanks. >>>> >>>> >>>> >>>> On Jan 14, 2008, at 8:45 PM, Hugo Schmitt wrote: >>>> >>>>> 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 >>>>> <org.el.patch>_______________________________________________ >>>>> 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 >>>> >>>> >> >> > > > _______________________________________________ > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-01-15 11:31 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-01-14 19:45 Patch to allow quotes showing on *remember* Hugo Schmitt 2008-01-15 10:55 ` 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
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.