Re: [O] Feature request: Allow export to convert broken links to plain text
Hi, This sounds like a good idea, but unfortunately it seems that the `broken-links:mark' option doesn't preserve the text of the link. In fact, looking at the source, the code that handles broken link errors doesn't even have access to the link's text, only the link target, so it's already too late once the org-link-broken signal is thrown. This also means that the implementation I was considering won't work. So, it looks like I need to intercept execution earlier in the export process. Any ideas on how to do that? Thanks, Ryan On Sun, Jan 13, 2019 at 9:50 AM Berry, Charles wrote: > > > > On Jan 12, 2019, at 12:38 PM, Ryan Thompson > wrote: > > > > Hi all, > > > > I have a use case where I'd like for Org Mode to remove broken links > while preserving their text when exporting. In particular, I'm exporting > the same file multiple times with different sets of headlines excluded each > time, and as a result I have to be careful of linking to headlines that > might not be present in every export. It would be much easier if such links > could simply be converted back to plain text for that export, while > remaining as a link for any exports that *do* include the target headline. > None of the existing settings do quite what I want. The "mark" option comes > closest. > > > > I basically want "mark" but without adding any additional text around > the link's text. > > > Sounds like a good use case for a filter. See > > (info "(org) Advanced Export Configuration") > > and scroll down to the `Filters' section. > > Just use the `broken-links:mark' option and set up your link filter to > strip the `BROKEN LINK:' part. > > HTH, > > Chuck > > > >
Re: [O] Feature request: Allow export to convert broken links to plain text
(Apologies for the double post of this email; due to a misconfiguration of my mailer, I believed my first email hadn't gone through until I remembered to check the archives.) On Sat, Jan 12, 2019 at 12:38 PM Ryan Thompson wrote: > Hi all, > > I have a use case where I'd like for Org Mode to remove broken links > while preserving their text when exporting. In particular, I'm exporting > the same file multiple times with different sets of headlines excluded each > time, and as a result I have to be careful of linking to headlines that > might not be present in every export. It would be much easier if such links > could simply be converted back to plain text for that export, while > remaining as a link for any exports that *do* include the target headline. > None of the existing settings do quite what I want. The "mark" option comes > closest. I basically want "mark" but without adding any additional text > around the link's text. Would the developers be willing to merge such a > feature if I wrote it? I would implement it by adding another possible > value to "org-export-with-broken-links", perhaps calling it something like > "unlink" or "strip" (suggestions for a better name welcome). Alternatively, > I could implement an option to dispatch broken link handling to an > arbitrary function. > > Thanks, > > Ryan Thompson > >
[O] Feature request: Allow export to convert broken links to plain text
Hi all, I have a use case where I'd like for Org Mode to remove broken links while preserving their text when exporting. In particular, I'm exporting the same file multiple times with different sets of headlines excluded each time, and as a result I have to be careful of linking to headlines that might not be present in every export. It would be much easier if such links could simply be converted back to plain text for that export, while remaining as a link for any exports that *do* include the target headline. None of the existing settings do quite what I want. The "mark" option comes closest. I basically want "mark" but without adding any additional text around the link's text. Would the developers be willing to merge such a feature if I wrote it? I would implement it by adding another possible value to "org-export-with-broken-links", perhaps calling it something like "unlink" or "strip" (suggestions for a better name welcome). Alternatively, I could implement an option to dispatch broken link handling to an arbitrary function. Thanks, Ryan Thompson
[O] Feature request: Allow export to convert broken links to plain text
Hi all, I have a use case where I'd like for Org Mode to remove broken links while preserving their text when exporting. In particular, I'm exporting the same file multiple times with different sets of headlines excluded each time, and as a result I have to be careful of linking to headlines that might not be present in every export. It would be much easier if such links could simply be converted back to plain text for that export, while remaining as a link for any exports that *do* include the target headline. None of the existing settings do quite what I want. The "mark" option comes closest. I basically want "mark" but without adding any additional text around the link's text. Would the developers be willing to merge such a feature if I wrote it? I would add another possible value to "org-export-with-broken-links", perhaps calling it something like "unlink" or "strip". Thanks, Ryan Thompson
[Orgmode] Bug: (org-set-tags t t) gives an error point is not currently on a headline
Hi, When I run (org-set-tags t t) to realign all tags in the buffer, it doesn't work unless the point is currently on a headline, because org-set-tags calls (org-get-tags-string) early on, and org-get-tags-string raises an error if not on a headline. This can be fixed by moving the binding of `current' to `(org-get-tags-string)' into the else clause of the first if statment. I have attached a patch -Ryan -- diff --git a/lisp/org.el b/lisp/org.el index dc45871..1745116 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -12113,7 +12113,7 @@ If DATA is nil or the empty string, any tags will be removed. With prefix ARG, realign all tags in headings in the current buffer. (interactive P) (let* ((re (concat ^ outline-regexp)) - (current (org-get-tags-string)) + ;(current (org-get-tags-string)) (col (current-column)) (org-setting-tags t) table current-tags inherited-tags ; computed below when needed @@ -12126,68 +12126,71 @@ With prefix ARG, realign all tags in headings in the current buffer. (org-set-tags nil t) (end-of-line 1))) (message All tags realigned to column %d org-tags-column)) - (if just-align - (setq tags current) - ;; Get a new set of tags from the user - (save-excursion - (setq table (append org-tag-persistent-alist - (or org-tag-alist (org-get-buffer-tags)) - (and org-complete-tags-always-offer-all-agenda-tags - (org-global-tags-completion-table (org-agenda-files - org-last-tags-completion-table table - current-tags (org-split-string current :) - inherited-tags (nreverse -(nthcdr (length current-tags) - (nreverse (org-get-tags-at - tags - (if (or (eq t org-use-fast-tag-selection) - (and org-use-fast-tag-selection - (delq nil (mapcar 'cdr table - (org-fast-tag-selection - current-tags inherited-tags table - (if org-fast-tag-selection-include-todo org-todo-key-alist)) - (let ((org-add-colon-after-tag-completion t)) - (org-trim - (org-without-partial-completion - (org-icompleting-read Tags: 'org-tags-completion-function - nil nil current 'org-tags-history))) - (while (string-match [-+]+ tags) - ;; No boolean logic, just a list - (setq tags (replace-match : t t tags - - (if org-tags-sort-function - (setq tags (mapconcat 'identity - (sort (org-split-string tags (org-re [^[:alnum:]...@]+)) - org-tags-sort-function) :))) - - (if (string-match \\`[\t ]*\\' tags) - (setq tags ) - (unless (string-match :$ tags) (setq tags (concat tags :))) - (unless (string-match ^: tags) (setq tags (concat : tags - - ;; Insert new tags at the correct column - (beginning-of-line 1) - (cond - ((and (equal current ) (equal tags ))) - ((re-search-forward - (concat \\([ \t]* (regexp-quote current) \\)[ \t]*$) - (point-at-eol) t) - (if (equal tags ) - (setq rpl ) - (goto-char (match-beginning 0)) - (setq c0 (current-column) p0 (if (equal (char-before) ?*) - (1+ (point)) (point)) - c1 (max (1+ c0) (if ( org-tags-column 0) -org-tags-column - (- (- org-tags-column) (length tags - rpl (concat (make-string (max 0 (- c1 c0)) ?\ ) tags))) - (replace-match rpl t t) - (and (not (featurep 'xemacs)) c0 indent-tabs-mode (tabify p0 (point))) - tags) - (t (error Tags alignment failed))) - (org-move-to-column col) - (unless just-align - (run-hooks 'org-after-tags-change-hook) + ;(let ((current (unless arg (org-get-tags-string + (let ((current (org-get-tags-string))) +(if just-align + +(setq tags current) + ;; Get a new set of tags from the user + (save-excursion +(setq table (append org-tag-persistent-alist +(or org-tag-alist (org-get-buffer-tags)) +(and org-complete-tags-always-offer-all-agenda-tags + (org-global-tags-completion-table (org-agenda-files + org-last-tags-completion-table table + current-tags (org-split-string current :) + inherited-tags (nreverse + (nthcdr (length current-tags) + (nreverse (org-get-tags-at + tags + (if (or (eq t org-use-fast-tag-selection) + (and org-use-fast-tag-selection + (delq nil (mapcar 'cdr table + (org-fast-tag-selection + current-tags inherited-tags table + (if org-fast-tag-selection-include-todo org-todo-key-alist)) +(let ((org-add-colon-after-tag-completion t)) + (org-trim + (org-without-partial-completion +(org-icompleting-read Tags: 'org-tags-completion-function +
[Orgmode] Org productivity tip to prevent accumulation of unscheduled undone tasks
Hi all, I recently found a small trick that makes Org nag me about undone TODO items that I have added via org-remember. Previously, I had the problem that I would use remember to add TODO items, but then they would languish in my TODO list because they would never appear in my agenda. To fix this, I set my normal TODO template to have a scheduled date. This way, the default is to schedule a task for today, instead of leave it unscheduled. Now, in my agenda, Org will nag me about anything I have added unless I explicitly went to the trouble of deleting the scheduled line or changing the default. I find that I tend to get more done now that Org-mode reminds me by default. Here are my two TODO templates. They are bound to t and uppercase T. The upper-case is my old TODO template, now called TODO unscheduled. (TODO 116 * TODO %^{Description}\n %U\n SCHEDULED: %^{Scheduled time}T\n %?\n tasks.org Unsorted Tasks nil) (TODO unscheduled 84 * TODO %^{Description}\n %U\n %? tasks.org Unsorted Tasks nil) -Ryan Thompson ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Timeline of completed tasks?
Yep, that looks like what I wanted. Thanks. On Wed, Mar 24, 2010 at 9:00 PM, Memnon Anon gegendosenflei...@googlemail.com wrote: Ryan Thompson r...@thompsonclan.org writes: Hi, Is there any way to view a timeline or agenda of completed tasks? That is, can I invert the normal logic of excluding finished tasks from the agenda? ,[ (info (org)Agenda commands) ] | `v l or short l' | Toggle Logbook mode. In Logbook mode, entries that were marked | DONE while logging was on (variable `org-log-done') are shown in | the agenda, as are entries that have been clocked on that day. | You can configure the entry types that should be included in log | mode using the variable `org-agenda-log-mode-items'. When called | with a `C-u' prefix, show all possible logbook entries, including | state changes. When called with two prefix args `C-u C-u', show | only logging information, nothing else. ` ,[ (info (org)Timeline) ] | 10.3.4 Timeline for a single file | - | | The timeline summarizes all time-stamped items from a single Org mode | file in a _time-sorted view_. The main purpose of this command is to | give an overview over events in a project. | | `C-c a L' | Show a time-sorted view of the Org file, with all time-stamped | items. When called with a `C-u' prefix, all unfinished TODO | entries (scheduled or not) are also listed under the current date. | | The commands available in the timeline buffer are listed in *note | Agenda commands::. ` Does that help? ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Timeline of completed tasks?
Hi, Is there any way to view a timeline or agenda of completed tasks? That is, can I invert the normal logic of excluding finished tasks from the agenda? -Ryan ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Org refile within current buffer?
Is there an org-mode command to refile only within the current buffer? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Cannot reschedule task with repeater
So if I pull from git now, I can reschedule repeated tasks? On Mon, Mar 8, 2010 at 9:24 AM, Tom levelha...@gmail.com wrote: Carsten Dominik carsten.dominik at gmail.com writes: I have now removed this limitation, because, as you say, it really should not be there.D Cool, thanks. ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Lesson Learned: Day needed for iCalendar export
Without the day, the timestamp is not valid according to Org, so it just treats it as normal text, or possibly something else entirely. The real lesson is no to type timestamps manually. Use C-c period. On Sat, Feb 27, 2010 at 6:49 PM, David A. Gershman dagersh...@dagertech.net wrote: Hello Everyone, I ran into this just now and I don't think it's documented anywhere so here is a tidbit thay may prevent some hair loss: I get a work calendar of my days off work for holidays. So I collect them in my .org file like so: * Work Holidays 2010-05-31 2010-07-05 2010-09-06 2010-11-25 { there are more } When exporting my .ics file I found these dates were not showing up, but they *were* showing on my .org Agenda view. Turns out the iCalendar export needs the *day* also: * Work Holidays 2010-05-31 Mon 2010-07-05 Mon 2010-09-06 Mon 2010-11-25 Thu .ics export worked great after that. Enjoy! David A. Gershman gersh...@dagertech.net http://dagertech.net/gershman/ It's all about the path! --d. gershman ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] default browser
I think you may have to look around in M-x customize-group browse-url. On Wed, Feb 24, 2010 at 9:45 AM, Henri-Paul Indiogine hindiog...@gmail.com wrote: OS: Ubuntu Karmic Emacs: 23.1.1 org-mode: 6.34trans I recently changed my default browser from Firefox to Chromium and have made my change in System - Preferences - Preferred Applications - /usr/lib/chromium-browser However, when I follow a URL link in org-mode Firefox is started. Any suggestion? Is this rather an Emacs issue? Thanks, Henri-Paul ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Scheduling an event of uncertain date within a month
Also, if you type in both a date and a day of the week, you'll get the first day after the specified date that falls on the specified day of the week. For example, if you Type in Fri 2 Feb, you'll get the first Friday on or after Feb. 2nd. Or something like that. On Mon, Feb 22, 2010 at 2:10 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Feb 22, 2010, at 10:21 PM, Alan E. Davis wrote: I am beginning to understand how to use scheduling. However I ran across a problem I didn't know how to solve: I know that in early March an event will take place on a Friday, but I don't remember the date. Well, while scheduling, a calendar gets popped up. Use it! :-) - Carsten Can anyone make a suggestion how to handle this? Thank you, again and again, for org-mode, the swiss-army-toolbox. Alan Davis ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Wiki?
If you want to edit existing Wiki pages with such a system, this would require a complete conversion of all Wiki syntax to an Org-mode equivalent, or else a way to leave unknown wiki syntax alone. Otherwise you would clobber any formatting that Org-mode doesn't know about when you edit the page. On Fri, Feb 19, 2010 at 2:24 PM, Andrea Crotti andrea.crott...@gmail.com wrote: Today I had to modify some wiki pages for a project and I realized how it sucked.. Stupid editor, annoying markup language, difficult to remember/track down what you've written and so on. So wouldn't be great to do something like this * Wiki stuff ** Page1 This is a wiki page, automatically created if not existing - item - item ** Page2 Another page. Than with one command like org-export-to-wiki look if the page is existing, if not create it, convert it to the right format and it's done! I think it should involve some rpc php stuff which is not directly related, and also if the page is modified by someone else is not so easy (unless we're able to update our org-version). But to create new pages it would be great (for me at least). What do you think? Thanks ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Deadline-scheduled workflow
This is cool. I'll test this out. My personal preference would be that a scheduled date should simply suppress deadline warnings before that date, and have no effect after it. I'll see if I can implement this as an option. -Ryan On Wed, Feb 17, 2010 at 2:43 PM, Norbert Zeh n...@cs.dal.ca wrote: Carsten Dominik [2010.02.17 2328 +0100]: Hi Norbert, Robert Goldman had the same request - that makes two of you. Implemented now, please use the variable Thanks a million, Carsten. I don't know how I would make it through the day without org-mode! Cheers, Norbert ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Which Emacs on Ubuntu
Even the most unstable development snapshot of emacs usually beats the MTBF of any other stable component of your operating system or applications. On Fri, Feb 12, 2010 at 12:47 PM, Ian Barton li...@manor-farm.org wrote: Graham Smith wrote: I have had to do a fresh install of Ubuntu 9.10, and on going to re-install Emacs, I see lots of choices. As I primarily use Emacs to run Orgmode and I find the list of Emacs options rather confusing, can anyone here suggest which is the best option to install. The key choices seem to be Emacs 22 or 23 with or without GTK. But there is also just an emacs option which is described as an Emacs 23 meta package. I realise this may well be an Ubuntu or Emacs question, but as I said my main use for Emacs is Orgmode, so I think some advice from here may be useful. So any help would be appreciated. I use the emacs-snapshot ppa from https://launchpad.net/~ubuntu-elisp/+archive/ppa. I had some problems with the Ubuntu Emacs 23 package (menu drawing, etc). However, these have probably been fixed by now. The snapshot is a bleeding edge version of Emacs, so you can expect bug fixes and new bugs - best of both worlds! Having said that I haven't encountered any bugs that affected me. Ian. ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] State Change with diary-float
From the Org Manual: SCHEDULED Meaning: you are planning to start working on that task on the given date. In other words, if you just want to mark the date and time at which an event (like a meeting) will occur, don't use a scheduled timestamp. Just use an unadorned timestamp (C-c .). On Sun, Feb 7, 2010 at 11:51 AM, Nick Parker ni...@developernotes.com wrote: All, I have several events that occur on a monthly basis where I use diary-float sexp for recurrence. Something like the following: Some Meeting SCHEDULED: 2010-02-04 Thu %%(diary-float t 4 1) I have noticed that while the sexp will correctly reschedule the item for me, it only tracks the state of the single entry. So when I complete the task and change it's state to DONE, the item no long repeats the schedule for the future. I therefore tried to remove the DONE and TODO states for my repeating events entirely (but left the schedule sexp), however when I view my agenda, I see an entry for the current day that says: Sched. 4x Some Meeting Where Some Meeting was in the past. Is there a way to tell it to not prompt me for a previously scheduled item, but still use the diary-float scheduling for items in the future? Nick Parker www.developernotes.com ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Repeating tasks in an interval
You could also use Remind along with remind2org. I think there's info about this in org-hacks on Worg. On Wed, Feb 3, 2010 at 8:18 PM, Robert Goldman rpgold...@sift.info wrote: Thanks to all for the help! I'll use the cloning. Best, r ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] S-Tab strange behavour
I don't think it is possible in general to know the startup state of a file. Files with a #+STARTUP line may be an execption. On Tue, Feb 2, 2010 at 11:28 AM, Ivan Vanyushkin va...@vanav.com.ua wrote: Hello. On initial file opening, S-TAB cycles through 1) OVERVIEW - 2) CONTENTS - 3) SHOW ALL not depending on current state of document. So, if (as default) document is in OVERVIEW state, first press _does nothing_ (switch to OVERVIEW again). Expected: CONTENTS. If document initially #+STARTUP: content, then first press switches it back to OVERVIEW. Expected: SHOW ALL. So, S-Tab (and maybe Tab) doesn't use context state when start cycling. Is it correct and why? org-version 6.21 and 6.34c Emacs 23.1.1 Thank you for your answer! -- Ivan Vanyushkin - Vanav. http://vanav.com.ua mailto:va...@vanav.com.ua Jabber/GTalk: va...@vanav.com.ua ICQ: 19068 Yahoo: Vanav_I MSN: va...@vanav.com.ua ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: S-Tab strange behavour
S-Tab probably checks the value of last-command to see if the previous command was also a S-Tab. If the previous command was anything else, then Org Mode has no idea whether the buffer or its visibility has changed since the last-executed S-Tab, since it cannot know which other commands will affect buffer visibility and which will not. So, if the previous command is not S-Tab, then the next S-Tab will restart the cycle from the beginning. Similarly, when you first open a buffer, the value of last-command is probably 'find-file or something. On Tue, Feb 2, 2010 at 12:38 PM, Ivan Vanyushkin va...@vanav.com.ua wrote: There is org-startup-folded that controls startup state, so org-mode should know it. Also S-Tab forgets state even in the middle of document. Key presses to reproduce: 1) S-Tab - OVERVIEW 2) S-Tab - CONTENTS 3) C-G (or any other) 4) S-Tab - OVERVIEW (expected: SHOW ALL) or 1) S-Tab - OVERVIEW 3) C-G (or any other) 4) S-Tab - OVERVIEW (nothing changed! expected: CONTENTS) Is it by design? Why? On 02.02.2010 21:40, Ryan Thompson wrote: I don't think it is possible in general to know the startup state of a file. Files with a #+STARTUP line may be an execption. On Tue, Feb 2, 2010 at 11:28 AM, Ivan Vanyushkinva...@vanav.com.ua wrote: Hello. On initial file opening, S-TAB cycles through 1) OVERVIEW - 2) CONTENTS - 3) SHOW ALL not depending on current state of document. So, if (as default) document is in OVERVIEW state, first press _does nothing_ (switch to OVERVIEW again). Expected: CONTENTS. If document initially #+STARTUP: content, then first press switches it back to OVERVIEW. Expected: SHOW ALL. So, S-Tab (and maybe Tab) doesn't use context state when start cycling. Is it correct and why? org-version 6.21 and 6.34c Emacs 23.1.1 Thank you for your answer! -- Ivan Vanyushkin - Vanav. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Bug: Docstring for org-cycle does not document org-cycle-level behavior
The variable is org-cycle-level-after-item/entry-creation. On Sun, Jan 31, 2010 at 12:54 AM, Noorul Islam gnu...@gmail.com wrote: Ryan Thompson r...@thompsonclan.org writes: Title says it all. In recent versions of Org, doing org-cycle at the end of an empty headline will cycle that headline through different levels, if the appropriate variable is non-nil. However, the docstring does not mention What is the appropriate variable? Thank you! Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug with cua-mode org-support-shift-select
Vanilla emacs now has shift selection (as of version 23?), so try disabling shift select in CUA and enabling the standard shift select. M-x customize-variable shift-select-mode On Sun, Jan 31, 2010 at 2:36 PM, Ivan Vanyushkin va...@vanav.com.ua wrote: Hello. I want to use C-x/C-c/C-v and Shift-arrows selection with org-mode. GNU Emacs 23.1.50.1, org-mode 6.34, .emacs: (cua-mode 1) (setq org-support-shift-select t) If this two options are on, then Shift key selection with arrow keys doesn't work: no selection, just cursor movements. According to http://orgmode.org/manual/Conflicts.html I think that org-mode should support CUA. If not, what can you suggest for correct support of C-x/C-c/C-v + org-support-shift-select? As far as I can say, the reason of problem is there: In org.el: (defun org-call-for-shift-select (cmd) (let ((this-command-keys-shift-translated t)) (call-interactively cmd))) Called like this: (org-call-for-shift-select 'forward-char) In cua-base.el Shift key is detected like this: (memq 'shift (event-modifiers (aref (this-single-command-raw-keys) 0))) binded as pre-command-hook. So, I think, Shift key is just not detected by CUA, and need a way to set it's flag. Sorry, I don't know emacs lisp. Thank you for your suggestions. -- Ivan Vanyushkin - Vanav. http://vanav.com.ua mailto:va...@vanav.com.ua Jabber/GTalk: va...@vanav.com.ua ICQ: 19068 Yahoo: Vanav_I MSN: va...@vanav.com.ua ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-remember-AFTER-finalize-hook , anyone?
Ooh, I solved this problem before, but then I accidentally deleted all my files. I have a backup, but I haven't gotten around to restoring everything yet. I'll get back to you later. -Ryan On Sat, Jan 30, 2010 at 8:54 AM, Stefano Zacchiroli z...@upsilon.cc wrote: Short summary: I'd like to have a org-remember-after-finalize-hook which is invoked *after* remember-finalize in function org-remember-finalize. Does it exist and I've missed it or there is a work-around for its lack? In more detail, my use case is that I invoke remember from mutt (more on this when I've solved this last remaining issue) to store org notes which have backlink to the originating mail. To that end, I use org-protocol with emacsclient, invoking the following pseudo command: emacsclient -t 'org-protocol:/remember:/m/mutt:$mid/mail/$note_body' It works fine. However, after having hit C-c C-c , only the org-mode *window* goes away, whereas the whole emacsclient instance stays around, usually with the scratch buffer. Given that I've invoked it only to execute org-protocol, it would be nice for the whole emacsclient instance to go away at the end. Having the requested hook I can hack a command which close the whole frame. Additionally I wonder: isn't this a bug in org-protocol? Can't it just use the whole frame and make it go away at the end? TIA, Cheers. -- Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 z...@{upsilon.cc,pps.jussieu.fr,debian.org} -- http://upsilon.cc/zack/ Dietro un grande uomo c'è ..| . |. Et ne m'en veux pas si je te tutoie sempre uno zaino ...| ..: | Je dis tu à tous ceux que j'aime ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] making key binding for timestamp alternative by default
All you need to do is define a function that supplies the prefix to org-time-stamp: (defun org-time-stamp-with-time (optional inactive) Prompt for a date/time and insert a time stamp containing a date and time. All parts of a date not specified by the user will be filled in from the current date/time. So if you press just return without typing anything, the time stamp will represent the current date/time. If there is already a timestamp at the cursor, it will be modified. (interactive) (org-time-stamp t inactive)) Then bind that you a key. On Sat, Jan 30, 2010 at 10:48 AM, John Withers graya...@reddagger.orgwrote: Folks, I am trying to figure out what to add to my .emacs to make the normal key binding call to org-time-stamp into the version with the C-u modifier by default. That is, in the default bindings, I am trying to make C-c . Perform the action that is normally performed by C-u C-c . I am sure this is dead simple, but I have no immediate clue how to do it. If these were two different functions I would know how to do it, but using the key binding commands I don't know how to tell my key binding that I want the C-u version. Any help would be greatly appreciated, as I am sure I will have use for this in many other places as well. -john ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-sort-multi??
Hi. Anyone can freely use any code I post here for any purpose, unless I specifically say otherwise for a particular piece of code (I can't think of any reason why would do this, though). I've included the code for org-sort-multi below. Carsten is correct, it is not an interactive function. In fact, it isn't really meant to be used directly at all in its current form. I use it for defining specific custom sort functions, of which I have also given an example below. (defun org-sort-multi (rest sort-types) Sort successively by a list of criteria. For example, sort first by TODO status, then by priority, then by date, then alphabetically, case-sensitive. Each criterion is either a character or a cons pair (BOOL . CHAR), where BOOL is whether or not to sort case-sensitively, and CHAR is one of the characters defined in ``org-sort-entries-or-items''. So, the example above could be accomplished with: (org-sort-multi ?o ?p ?t (t . ?a)) (mapc #'(lambda (sort-type) (org-sort-entries-or-items (car-safe sort-type) (or (cdr-safe sort-type) sort-type))) (reverse sort-types))) (defun org-sort-custom () Sort children of node by todo status and by priority, so the * TODO [#A] items go to the top. Then fold it the way I like it. (interactive) (org-sort-multi ?o ?p ?T) (dotimes (x 2) (org-cycle))) On Fri, Jan 29, 2010 at 1:23 AM, Carsten Dominik carsten.domi...@gmail.comwrote: Hi David, org-sort-multi is a utility function written by Ryan Thompson. So far it has not made it into Org-mode. I seem to remember that I did not have a convenient interactive interface for it, but I am not sure if I remember correctly. Another issue is that I am not sure if Ryan has signed the papers with the FSF, which would be required for this non-trivial change to Org. Why don't you take Ryan's function and play with it, check if it works for you, and if yes, try to convince me to add it to Org-mode..? Ryan, would you be willing to sign the papers with the FSF? Did I ask you that before? - Carsten On Jan 28, 2010, at 11:49 PM, David A. Gershman wrote: Hello Again, I'm looking to sort my outline (headlines, top level) by multi criteria (2 really). I see online references to 'org-sort-multi' as recently as August 2009. But my emacs can't find it. Help? David A. Gershman gersh...@dagertech.net http://dagertech.net/gershman/ It's all about the path! --d. gershman ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Utility functions for setting/clearing categories
Hi all, If anyone out there makes heavy use of categories and is sick of going through org-sort-property and org-delete-property to handle them, here's a pair of conveience functions for directly manipulating categories. It's a pity that emacs doesn't seem to support partially applying an interactive function and then having it interactively prompt for the remaining arguments. That would make org-set-category as short as org-delete-category. Moset of the code is copied from org-set-property's interactive definition, and then modified. -Ryan (defun org-set-category (property value) In the current entry, set category to VALUE. When called interactively, this will prompt for a value, offering completion either on allowed values (via an inherited xxx_ALL property) or on existing values in other instances of this property in the current file. (interactive (let* ((completion-ignore-case t) (prop CATEGORY) (cur (org-entry-get nil prop)) (allowed (org-property-get-allowed-values nil prop 'table)) (existing (mapcar 'list (org-property-values prop))) (val (if allowed (org-completing-read Value: allowed nil 'req-match) (let (org-completion-use-ido org-completion-use-iswitchb) (org-completing-read (concat Value (if (and cur (string-match \\S- cur)) (concat [ cur ]) ) : ) existing nil nil nil cur) (list prop (if (equal val ) cur val (unless (equal (org-entry-get nil property) value) (org-entry-put nil property value))) (defun org-delete-category () Delete the category of the current item. (interactive) (org-delete-property CATEGORY)) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: Docstring for org-cycle does not document org-cycle-level behavior
Title says it all. In recent versions of Org, doing org-cycle at the end of an empty headline will cycle that headline through different levels, if the appropriate variable is non-nil. However, the docstring does not mention this feature. org-version = 6.34c ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Alternate org-cycle-level behavior
Hi all, I've implemented my own org-cycle-level function. The major difference is that it's stateless, taking cues only from the level of the previous headline, rather than the level at which the current headline started. That way you can always look at the buffer and know what the TAB key will do on an empty headline. For example, if the previous headline is at level 4 and you create a new blank one under it, pressing TAB to cycle levels will cycle in the following order: 4 - 5 - 3 - 2 - 1 - 4. Even if you move the point away and back, then keep cycling, the cycling picks up where it left off. (The default org-cycle-level function does not work this way.) You can get it on Worg: http://orgmode.org/worg/org-hacks.php#sec-23 -Ryan ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode