Re: How to create a priority sorted list of tasks agenda ?
Samuel Wales writes: > ok i was completely wrong depending on which meaning of priority you > want. in the docstring in my old version of org, > org-agenda-sorting-strategy is ambiguous on which one it means, so you > might or might not need user-defined. Priority is the "[#A]" type cookie in the header of a task. A user-defined property that is a meaning of "priority" is not recognized by standard Org as a PRIORITY. You could write some Elisp to incorporate it into Org agendas with user-defined sorting functions. -- David Masterson
Re: How to create a priority sorted list of tasks agenda ?
Samuel Wales writes: > (info "(org) Presentation and Sorting") Yeah, my bad -- that should've been obvious. :-\ > emacs docs and info are both rather good. i used to dislike info for > years and catted it like a manpage but only a few commmand like u ret > l r are needed. Whoa. Interesting writing style. Info is pretty good, but lacks images to provide visual backing to the description. Also, some package writers write their docs for HTML (with images) and it doesn't quite come out write in Info. > note tht the word priority is used in 2 senses. t hre is a kind of > defult agend sorting that has its own calcualted priority and then > ther eare the priority cookies. i don't use the calculated priority > --- there is custom sorting avail via a var. maybe that is what you > are asking for ad if so you'd have to write a bit of lisp, which i > can't help you with but others might be able to. Hmm. I'll have to look at calculated priority. Thanks -- David Masterson
Re: How to create a priority sorted list of tasks agenda ?
pardon my scattershot emails. info and default value are suggesting that if you want the calculated priority, you can use the sorting stratgegy, but that is default, within category-keep, so you might be asking for the priority cookies. On 1/8/23, Samuel Wales wrote: > ok i was completely wrong depending on which meaning of priority you > want. in the docstring in my old version of org, > org-agenda-sorting-strategy is ambiguous on which one it means, so you > might or might not need user-defined. > > > On 1/8/23, Samuel Wales wrote: >> (info "(org) Presentation and Sorting") >> >> emacs docs and info are both rather good. i used to dislike info for >> years and catted it like a manpage but only a few commmand like u ret >> l r are needed. >> >> note tht the word priority is used in 2 senses. t hre is a kind of >> defult agend sorting that has its own calcualted priority and then >> ther eare the priority cookies. i don't use the calculated priority >> --- there is custom sorting avail via a var. maybe that is what you >> are asking for ad if so you'd have to write a bit of lisp, which i >> can't help you with but others might be able to. >> >> >> On 1/8/23, David Masterson wrote: >>> This seems like a typical request, but I don't readily see in the >>> manual. I was thinking org-sort on an agenda, but it doesn't seem to do >>> that. Any hints? >>> -- >>> David Masterson >>> >>> >> >> >> -- >> The Kafka Pandemic >> >> A blog about science, health, human rights, and misopathy: >> https://thekafkapandemic.blogspot.com >> > > > -- > The Kafka Pandemic > > A blog about science, health, human rights, and misopathy: > https://thekafkapandemic.blogspot.com > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com
Re: How to create a priority sorted list of tasks agenda ?
ok i was completely wrong depending on which meaning of priority you want. in the docstring in my old version of org, org-agenda-sorting-strategy is ambiguous on which one it means, so you might or might not need user-defined. On 1/8/23, Samuel Wales wrote: > (info "(org) Presentation and Sorting") > > emacs docs and info are both rather good. i used to dislike info for > years and catted it like a manpage but only a few commmand like u ret > l r are needed. > > note tht the word priority is used in 2 senses. t hre is a kind of > defult agend sorting that has its own calcualted priority and then > ther eare the priority cookies. i don't use the calculated priority > --- there is custom sorting avail via a var. maybe that is what you > are asking for ad if so you'd have to write a bit of lisp, which i > can't help you with but others might be able to. > > > On 1/8/23, David Masterson wrote: >> This seems like a typical request, but I don't readily see in the >> manual. I was thinking org-sort on an agenda, but it doesn't seem to do >> that. Any hints? >> -- >> David Masterson >> >> > > > -- > The Kafka Pandemic > > A blog about science, health, human rights, and misopathy: > https://thekafkapandemic.blogspot.com > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com
Re: How to create a priority sorted list of tasks agenda ?
(info "(org) Presentation and Sorting") emacs docs and info are both rather good. i used to dislike info for years and catted it like a manpage but only a few commmand like u ret l r are needed. note tht the word priority is used in 2 senses. t hre is a kind of defult agend sorting that has its own calcualted priority and then ther eare the priority cookies. i don't use the calculated priority --- there is custom sorting avail via a var. maybe that is what you are asking for ad if so you'd have to write a bit of lisp, which i can't help you with but others might be able to. On 1/8/23, David Masterson wrote: > This seems like a typical request, but I don't readily see in the > manual. I was thinking org-sort on an agenda, but it doesn't seem to do > that. Any hints? > -- > David Masterson > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com
How to create a priority sorted list of tasks agenda ?
This seems like a typical request, but I don't readily see in the manual. I was thinking org-sort on an agenda, but it doesn't seem to do that. Any hints? -- David Masterson
Question about deadline/schedule events date text property
Hi, I'm working on an unrelated project that collects events from agenda buffers. I noticed the following: when you have a series of a repeating events, scheduled events have a date text property of the form (1 9 2023) date matches the instance date while deadline events have 738529 which repeats for all instances Is this intentional? Why don't they have the same format/behavior? The setup - events have the form: * TODO Test SCHEDULED: <2023-01-09 Mon +1w> or * TODO Test DEADLINE: <2023-01-09 Mon +1w> Open an org agenda for a month and examine the text properties of the events. -- Daniel Fleischer
Re: Export Org with Org concept -- Re: Problems with C-c C-e file.org,
On 08/01/2023 03:07, Jean Louis wrote: * Max Nikulin [2023-01-06 06:30]: Could you, please, concentrate on your vision of proper `org-export-registered-backends' design? I leave that to Org developers. That variable is not described well, neither mentioned in Org manual. Org has user manual, but not developer manual. Doesn't `org-export-define-backend' provide enough details concerning `org-export-registered-backends'? Your vision of `org-export-registered-backends' design might shed some light why you consider its design as poor. I do not see any real problem to use it as is with a better menu implementation. I can only reiterate my point which you did not understand. In Emacs there are thousands of extensions. There is mainstream Emacs and there are ELPA, and other repositories and all kinds of Emacs packages. I am aware of it. In the context of export menu, third party package may register their export function. Based on that I don't find it consistent that in variable `org-export-registered-backends' Org has something like this: (85 "As UTF-8 buffer" (lambda (a s v b) (org-ascii-export-as-ascii a s v b '(:ascii-charset utf-8 as that asks for key probably 85 to be defined for that specific function. And the design of that variable leads to Gordian knot of the tangled code because it demands from all other exporters and extensions to follow that principle. I do not see any problem. The structure associates export functions, titles and hints for key bindings. It is normal for UI to have accelerator keys. If you do not like suggested key, you are free to override it in your menu framework. What code is tangled from your point of view? In the posted snippet I see a declaration of a function that should be exposed to UI. > I recommend not binding authors of Org export packages to provide > keys and let users be free to decide which keys to use for which > export. Allowing users to customize key bindings is not the same as imposing obligations to choose key bindings. You are free to not provide default key bindings or to shuffle menu entries by popularity for "convenience" in *your* packages. Default keys means consistency for novices and users who do not want to customize such aspects. And principle is not consistent to (info "(elisp) Key Binding Conventions") I see just a minor issue that ESC ESC does not dismiss menu. C-g still works. Local variables dialog ("do you want to apply...") behaves similar to Org menus. There is enough room for improvements, but I would not call it a great trouble. I am repeating it thousands of times on website pages. If it disturbs you, is personal problem, which I can't help with. I do not care what you are posting on some websites. I do not like that in messages sent to my email you are repeating the same obvious ideas even when asked to clarify your particular statements.
Re: [BUG] CUSTOM_id ignored on blocks by ox-beamer
Hello, On 2023-01-05 09:26, Ihor Radchenko writes: > If you look inside `org-beamer--format-block', it uses > `org-beamer-environments-default' and `org-beamer-environments-extra' to > format the blocks. See docstring for the latter for details. > > The code responsible for LaTeX block generation is > > (when (nth 2 env-format) ; when we non-column block > (concat >(org-fill-template ...) ; opening \begin lines >contents ; block body >... ; block closing \end lines >) > > org-fill-template is using the template from the > `org-beamer-environments-*' replacing %-chars as described in the > docstring. > > In order to handle CUSTOM_ID property, you can > (1) Introduce a new %-substitude to be handled in org-fill-template > call. It will insert block ID. (for example, using > `org-beamer--get-label') > (2) modify `org-beamer-environments-default' to insert label > appropriately. > > Patches welcome! Thank you for the detailed instructions. Here is my attempt at this. I’ve tested it and it works. signature.asc Description: PGP signature >From 1747786c7106d0d90d9e8752e361552afacb2d4d Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Sun, 8 Jan 2023 17:20:31 +0100 Subject: [PATCH] Add labels to latex export of beamer blocks A new option %l is available to be used in `org-beamer-environments-*' to insert the label of the current block, obtained using `org-babel--get-label' --- lisp/ox-beamer.el | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index 689bf1559..3518a0f50 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -178,10 +178,10 @@ through `org-beamer-environments-extra' variable.") ("quotation" "q" "\\begin{quotation}%a %% %h""\\end{quotation}") ("quote" "Q" "\\begin{quote}%a %% %h""\\end{quote}") ("structureenv" "s" "\\begin{structureenv}%a %% %h" "\\end{structureenv}") -("theorem""t" "\\begin{theorem}%a[%h]""\\end{theorem}") -("definition" "d" "\\begin{definition}%a[%h]" "\\end{definition}") -("example""e" "\\begin{example}%a[%h]""\\end{example}") -("exampleblock" "E" "\\begin{exampleblock}%a{%h}" "\\end{exampleblock}") +("theorem""t" "\\begin{theorem}%a[%h]%l""\\end{theorem}") +("definition" "d" "\\begin{definition}%a[%h]%l" "\\end{definition}") +("example""e" "\\begin{example}%a[%h]%l""\\end{example}") +("exampleblock" "E" "\\begin{exampleblock}%a{%h}%l" "\\end{exampleblock}") ("proof" "p" "\\begin{proof}%a[%h]" "\\end{proof}") ("beamercolorbox" "o" "\\begin{beamercolorbox}%o{%h}" "\\end{beamercolorbox}")) "Environments triggered by properties in Beamer export. @@ -578,6 +578,7 @@ used as a communication channel." (cons "O" (or raw-options "")) (cons "h" title) (cons "r" raw-title) +(cons "l" (format "\\label{%s}" (org-beamer--get-label headline info))) (cons "H" (if (equal raw-title "") "" (format "{%s}" raw-title))) (cons "U" (if (equal raw-title "") "" -- 2.39.0 Best, Alan
Re: 28.2; `texmathp` returns `t` everywhere in an Org buffer
On 07/01/2023 10:43, Hiếu Phẩy wrote: It seems like `texmathp` returns `t` everywhere in an Org buffer, as written in the email subject. The following thread might be relevant: Ihor Radchenko to emacs-orgmode… Re: [BUG] issue with texmathp [9.6 (release_9.6-22-g78d283 @ /home/jds6696/.emacs.d/straight/build/org-mode/)] Sat, 07 Jan 2023 15:03:57 +. https://list.orgmode.org/87v8lijsiq.fsf@localhost
Subtree export of empty entry generates spurious letter
Hello. Reporting in case it is just a symptom that might resurface in a realistic context. With release_9.6-204-g2f7052. I have file consisting only of #+options: toc:nil author:nil date:nil * foo * bar I put the point on the 'foo' line and do 'C-c C-e C-s l o'. The pdf generated shows (without the dashes): --- foo o (In all cases I tried, it is the last letter of the healine that is added.) -- EOST (École et Observatoire des Sciences de la Terre) ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 110] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France | [ slot available for rent ]
Re: [O] [PATCH] ob-eval: display error fix
0001-lisp-ob-eval.el-Display-error-fix.patch Description: Binary data Hi Ruijie, thanks for asking. I combined them now and tested again all variants. Andreas > On 7. Jan 2023, at 22:33, Ruijie Yu via General discussions about Org-mode. > wrote: > > > Hi Andreas, > > -(display-buffer buf)) > +(if org-babel-eval-error-display-notify > +(display-buffer buf) > + (if (or (not (numberp exit-code)) > + (> exit-code 0)) > + (display-buffer buf > > Quick question, does it help or hurt readability if we change this > nested `if' into a `cond' expression? > > Or, alternatively, since both the outer then branch and the inner then > branch are the same expression, maybe we can just combine all three > conditions into a single `or' call? > > Something like > > (when (or org-babel-eval-error-display-notify > (not (numberp exit-code)) > (> exit-code 0)) > (display-buffer buf)) > > Best, > > > RY > signature.asc Description: Message signed with OpenPGP
Re: Bug report for ox-icalendar: newlines should be CRLF
Hello, just to confirm. The exporter is inconsistent in adding which kind of EOL sequence. Detlef Am Fri, 06 Jan 2023 08:30:41 + schrieb "Stephen J. Eglen" : > Hello, > > If I have a test file > > -- > > * test 1 > > <2023-01-05 Thu 19:00-19:20> > > -- > > > and then convert to an .ics file using C-c C-e c f > > I get the attached test.ics file, but copied here too: > > BEGIN:VCALENDAR > VERSION:2.0 > X-WR-CALNAME:test > PRODID//Stephen J. Eglen//Emacs with Org mode//EN > X-WR-TIMEZONE:GMT > X-WR-CALDESC: > CALSCALE:GREGORIAN > BEGIN:VEVENT *** > DTSTAMP:20230105T221431Z *** > UID:TS1-81DE7E9C-0385-49CE-8528-C2FD51372CB4 *** > DTSTART:20230105T19Z *** > DTEND:20230105T192000Z *** > SUMMARY:test 1 *** > DESCRIPTION:<2023-01-05 Thu 19:00>–<2023-01-05 Thu 19:20> *** > CATEGORIES:test *** > END:VEVENT > END:VCALENDAR > > The lines from BEGIN:VEVENT to CATEGORIES:test inclusive have CR (^M) > as well as LF (^J) as newline [in the text above, I've converted the > ^M to *** to see them eaer. Is that intended? Uploading the file to > https://icalendar.org/validator.html gives me the error > > > Lines not delimited by CRLF sequence near line # 1 > > Reference: RFC 5545 3.1. Content Lines > > Nicolas (cc'ed) has confirmed that it seems to be a problem. Before I > work slowly on a suggested patch, does anyone have an idea on the best > way forward? Is it possible to encode the file as "DOS" ,using > something like set-buffer-file-coding-system? SOme lines do however > have \r and \n see e.g. org-icalendar-fold-string which inserts both > \r and \n > > > > > Best wishes, Stephen > >