Re: form-like process for entering rows in an org-mode table?

2022-09-29 Thread Greg Minshall
hi, Jean Louis, > I do not know what is column view. But I understand that you need > descriptive text. that was my state until recently, though i had seen various references to it and its usage on the mailing list. it at least offers some form of completing read, at least for what might be in

processing a literal example line by line in a shell source block?

2022-11-02 Thread Greg Minshall
hi. i have a text in a named #+begin_example ... #+end_example block. i would like to process this text line by line in a shell (bash, say) code block. but, it appears that the individual lines are not separated, but passed as one long string to the source block. (example below.) is there a mag

Re: processing a literal example line by line in a shell source block?

2022-11-03 Thread Greg Minshall
Ihor, > Try > > #+name: lbl > #+begin_example > line 1 > line 2 > #+end_example > > #+begin_src bash :var input=lbl :results output > echo "${input}" > #+end_src ah, the double quotes! thanks very much! cheers, Greg

Re: processing a literal example line by line in a shell source block?

2022-11-06 Thread Greg Minshall
Ihor, again, thanks for helping me with that problem. and, just for my (or anyone's) future reference, how i probably *should* have debugged this was to tangle the relevant source block, and then examine the resulting shell-script file, and gone from there. cheers, Greg

Re: [BUG] ob-R: session evaluation returns empty ouputs with Org 9.6 [9.6 ( @ /home/fsantos/.emacs.d/elpa/org-9.6/)]

2022-12-01 Thread Greg Minshall
Frederic, > > It looks like there is something wrong with comint-prompt-regexp in > > R buffers. It somehow does not match the prompt. > > I'm not sure it's the explanation either, since external (i.e., > non-session) evaluation works as expected. (Just remove the ":session > *R*" part of the hea

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-04 Thread Greg Minshall
i see this same behavior. to me, (org-babel-R-assign-elisp) seems to be the problem, but it hasn't changed any time recently. (nor, if my =git blame= is done correctly, has anything else in ob-R.el.) i don't understand how (org-babel-R-assign-elisp) thinks. it seems to assign =max= and =min= as

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-04 Thread Greg Minshall
for the record, these are the tests i ran with my off-the-cuff "fix" (s/sequencep/listp/): #+name: alist - first item - second item - third item #+begin_src R :var list=alist :session ss list #+end_src #+RESULTS: | first item | second item | third item | #+begin_src R :var variable='(a tes

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-05 Thread Greg Minshall
hi, Charles, > This makes a list like '("a" "b" "c") into a data.frame with one column. 1. which version of Org are you running? : Org mode version 9.6 (9.6-g60de19 @ /home/minshall/.emacs.d/straight/build/org/): 2. is my below example yours? i think i used to see the behavior you describe in

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-05 Thread Greg Minshall
Chuck, sorry, i didn't see the change you had added. > So, isn't that what is wanted? that's a policy question that i can't answer. :) cheers, Greg

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-06 Thread Greg Minshall
Jeremie, i am neutral w.r.t. what the output should be. like you, i've always sent in tables. for me, i don't know that it makes much difference how lists are presented to R code, as long as it is well-defined and stable over time. given that, iiuc, 9.5 presented a list as (the equivalent of) m

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-08 Thread Greg Minshall
Ihor, > Does it make sense from the point of view of R code? > AFAIU, the current ob-R implementation converts lists into R tables, > which is not accurate? Would it make sense to convert Elisp lists into R > lists directly? my "barely half a cent" would be that backwards compatibility here trump

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-08 Thread Greg Minshall
Ihor, > The time span is years and I do not recall any related bug reports. > So, nobody seems to care. :)

Re: [BUG] org-mouse is activated without explicit require

2022-12-10 Thread Greg Minshall
Matt, > I'm not too familiar with how emacs handles autoloads. However, I find > org-mouse is automatically loaded if I call describe-function and then > tab complete after typing "", "org-", "org-m", etc. This seems enough > to load the entirely of the org-mouse.el file. i'm also not an expert o

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-12 Thread Greg Minshall
hi, Ihor, > ** List references in source block variable assignments are now proper lists just for background, one oddity is that the meaning of a "list" in R is a bit loose. > list(1,2,3) [[1]] [1] 1 [[2]] [1] 2 [[3]] [1] 3 > c(1,2,3) [1] 1 2 3 (where =c= is the "concatenation operat

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-13 Thread Greg Minshall
hi, Johan, > "Proper list" in the context of this discussion and pertaining to R > would be a =list()=, not a vector which is what is usually returned by > =c()=. A =data.frame()= is a special case of a =list()= where every > column has to have the same length. well, it's a language mapping probl

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-15 Thread Greg Minshall
Johan, > Absolutely, I just wanted to clarify that there is no confusion as to > what an R list is in the context of R itself (as far as I can > tell). Your post made it sound like there is. ah, indeed -- thanks! cheers, Greg

Re: org-persist files in /tmp

2022-12-21 Thread Greg Minshall
hi, Ihor, > Do we need to care about cleaning up /tmp? my two cents is that maybe one should not care so much about cleaning up /tmp, but i think it's worthwhile trying not to clutter it up too much. cheers, Greg

Re: Recommended way to work on main without upgrading Org?

2022-12-21 Thread Greg Minshall
i would also think it would be possible to have two different straight recipes -- one for "org-mode", and one for "org-mode-test" -- which you would enable or disable (by editing .emacs, if no other way) on different invocations of emacs. and, be careful not to have both enabled at the same time!

Re: [SECURITY] Arbitrary code evaluation security in Org

2023-01-02 Thread Greg Minshall
Ihor, thanks for this. one additional item (i don't *think* we discussed this before; apologies if i'm forgetting): tangling. if one is prompted to "merely" tangle ... #+begin_src sh :tangle /var/tmp/foo.org.tangled echo 'hi!' #+end_src one could imagine more sinister scenarios for

Re: [MAINTENANCE] Org orphanage?

2023-01-06 Thread Greg Minshall
Ihor, Bastien, et al., i am not really following this conversation. but, recently i was looking at org-grep, and found its new home: https://github.com/emacsorphanage/org-grep Ihor mentions the emacs orphange: > Should we extend the org-contrib's current idea to other Org-related > pac

Re: OS advice

2023-01-06 Thread Greg Minshall
Ypo, > Do you think that if I install a Linux OS, Orgmode would run fast? Any > OS suggestion? it might (*). if it's not too hard to install linux (i have no idea), you might figure out some sort of benchmark for your org experience, then try switching, see what happens. (there are a lot of var

Re: Org mode timestamps on the Moon ; ] (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda)

2023-01-30 Thread Greg Minshall
Tom, > The only generalized solution is to record the full location (see > intro to http://naggum.no/lugm-time.html which I'm surprised hasn't > been linked in this thread yet, ... very nice -- thanks for the pointer! cheers, Greg

Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda

2023-01-30 Thread Greg Minshall
Ihor, Sterling, et al., just a thought/reminder. there are "semantics" and "encoding". a spec like ISO-8601 specifies both. the important thing for org-mode is to use an encoding that 1. is easily parsable/understandable by the mere mortal 2. allows expression of all the semantics of the unde

Re: [POLL] Use compat.el in Org? (was: Useful package? Compat.el)

2023-01-30 Thread Greg Minshall
Ihor, > Cons: > > 1. If compat.el happens to lack support of some function, we will need >to contribute to compat.el directly and synchronize Org releases with >compat.el releases. would a separate "org-compat.el" (in addition to compat.el) somehow solve this? (i worry about the synch'i

Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda

2023-01-30 Thread Greg Minshall
Ihor, > That's all nice but what a headache will it be to implement. What will > 2004-06~ mean for agenda, for example? i don't know the specific "2004-06~", but i do think that for the agenda (i assume), being able to express ambiguity to the user will be important. as people have pointed out (

Re: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda

2023-01-30 Thread Greg Minshall
Ihor, makes sense. that we probably need to *display* imprecision doesn't mean we need to accept/parse it.

Re: [POLL] Use compat.el in Org? (was: Useful package? Compat.el)

2023-01-30 Thread Greg Minshall
Ihor, > >> 1. If compat.el happens to lack support of some function, we will need > >>to contribute to compat.el directly and synchronize Org releases with > >>compat.el releases. > > > > would a separate "org-compat.el" (in addition to compat.el) somehow > > solve this? (i worry about th

Re: [POLL] Proposed syntax for timestamps with time zone info (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda)

2023-01-31 Thread Greg Minshall
Ihor, thanks for all the information. > 2022-11-12 12:00 @Asia/Singapore # tzdb syntax aesthetically, allowing a space after the "@" sign might be nice. i don't know what that would do to the parsing/BNF/whatever. cheers, Greg

Re: [POLL] Proposed syntax for timestamps with time zone info (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda)

2023-02-01 Thread Greg Minshall
thanks, Tomas and Ihor, > > [2022-11-12 12:00 @Asia/Singapore] vs. [2022-11-12 12:00 @ Asia/Singapore] > > > > Either way is possible. > > I am in favour of my variant though :) > > Same with me. I read @ as a sigil [1] ... > [1] https://en.wikipedia.org/wiki/Sigil_(computer_programming) i'll t

Re: [BUG] list.orgmode.org managed to parse a message in future: 2023-10-29 [9.6.1 (release_9.6.1-223-gc8d20d @ /home/yantar92/.emacs.d/straight/build/org/)]

2023-02-05 Thread Greg Minshall
Jean Louis, > Why did mailing list accept message from far future? It should not be > so, that is bug to be reported. there's an old internet adage to help achieve interoperability (attributed to the late Jon Postel): be liberal in what you accept, and conservative in what you send. so, i wouldn

Re: [BUG] list.orgmode.org managed to parse a message in future: 2023-10-29 [9.6.1 (release_9.6.1-223-gc8d20d @ /home/yantar92/.emacs.d/straight/build/org/)]

2023-02-10 Thread Greg Minshall
Jean Louis, > In my opinion central computer that manages mailing lists should > recogniz if time of users is far in future and handle it > appropriately. > Maybe re-writing time with explanation in e-mail header would be more > appropriate. maybe something like that. though, this seems more an

[BUG] crash [9.7-pre (release_9.6.11-927-g819cd7 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-04-14 Thread Greg Minshall
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [BUG] crash [9.7-pre (release_9.6.11-927-g819cd7 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-04-16 Thread Greg Minshall
Ihor, > You are on a fairly old common from main - 5 month old. > May you upgrade to the latest main and let us know if you keep seeing > problems? thanks. i've re-freshed and re-built and am now on Org mode version 9.7-pre (release_9.6.26-1368-g1ae978 @ /home/minshall/.emacs.d/straight/b

[BUG] oddity tangling src_blk with :var [9.7-pre (release_9.6.26-1368-g1ae978 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-04-27 Thread Greg Minshall
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. --

Re: [BUG] oddity tangling src_blk with :var [9.7-pre (release_9.6.26-1368-g1ae978 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-04-28 Thread Greg Minshall
hi, Ihor, thanks for looking at this. > This is because Org mode currently cannot distinguish between babel > backends that simply do not support variable assignments and babel > backends that are not loaded. currently, is it possible to see well enough what is going on to generate an error and

Re: [BUG] oddity tangling src_blk with :var [9.7-pre (release_9.6.26-1368-g1ae978 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-04-30 Thread Greg Minshall
Ihor, thanks again. > #+property: header-args :var common_variable = "foo" ah, hierarchical :var's. i didn't realize such existed. of course, then, you're right. a dream might be something like ":var none" to allow the dot source code block to indicate it wasn't expecting any ":var" anyway.

Re: [BUG] oddity tangling src_blk with :var [9.7-pre (release_9.6.26-1368-g1ae978 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-01 Thread Greg Minshall
Ihor, > > or some such to disable *that*? > > I do not recall many people asking for such a feature. no, i don't either. :) > It might be. But the real fix should be adding babel API to allow > backends declaring the list of supported features. > Such API is relatively easy to implement. with

Re: [BUG] oddity tangling src_blk with :var [9.7-pre (release_9.6.26-1368-g1ae978 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-02 Thread Greg Minshall
Ihor, > Then, if the backend does not define variable expansion method, do > nothing. If the backend is not loaded, throw an error/warning (maybe > depending on a customization). great. thanks. if customizable, i'd vote to default with an error. then, for what it's worth, my experience led me

[BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-14 Thread Greg Minshall
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-17 Thread Greg Minshall
Ihor, > In theory, the odds should be quite slim, unless you open that file > manually. Anyway... as the saying goes, the difference between theory and practice is that in theory there is no difference, but in practice there is. :) > Does the attached patch fix the problem for you? i've applie

Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-18 Thread Greg Minshall
hi, Ihor, i have a recurrence of the same problem. see below. cheers, Greg Subject: [BUG] still fails... [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)] Fcc: outbox X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 30.0.50 > ...rg-persist/gc-lock.eld

Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-21 Thread Greg Minshall
hi, Ihor, > Then, I need a backtrace. May you please enable debug-on-error and share it? here is a backtrace. is this enough, or should i do something extra to give you more information from it? the situation was: "it" put up the message ...rg-persist/gc-lock.eld locked by minshall@arch..

Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-22 Thread Greg Minshall
Ihor, > May you try the attached alternative patch? thanks, will do. cheers, Greg

Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-30 Thread Greg Minshall
Ignore lock files when writing cache > > * lisp/org-persist.el (org-persist--write-elisp-file): Ignore locks. > > Reported-by: Greg Minshall > Link: https://orgmode.org/list/574109.1715751441@archlinux > --- > lisp/org-persist.el | 15 +-- > 1 file change

Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-06-02 Thread Greg Minshall
Ihor, > Fixed, on main. > I used a slightly different patch, because `always' is not available in > Emacs 27. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=dc485a659 thanks! cheers, Greg

Re: Release Org 9.4.2

2020-12-17 Thread Greg Minshall
Eric, > Sure, and I do use it this way, but I had the impression that it was the > non-git aspects that were being put forward as being somehow helpful. I > could be wrong. i'm not a git-spert. but, the "pull requests" mechanism and "issues" (but reports), are maybe bits of git*.com that people

Re: [PATCH] Apply emacs manual css to org pages

2020-12-22 Thread Greg Minshall
Timothy, > This is a quick patch to use the Emacs manual CSS with our generated Org > manual. that's certainly visually pleasing. nice! Greg

tabs turned into space when going into Org Src...?

2020-12-22 Thread Greg Minshall
hi. it seems going into Org Src, at least from a "makefile" source block, changes the tabs (the the base org mode added for me) into spaces, and leaves them as spaces when i merge back into the main .org file (and, so, make(1) complains, "missing separator"). is this intentional? #+begin_src mak

Re: tabs turned into space when going into Org Src...?

2020-12-23 Thread Greg Minshall
Diego, thanks for looking at it. i apologize for not having looked at an "emacs -Q" (and, thanks to Ihor for, a few days ago, having pointed out how to "emacs -Q" with one's "normal" org version). : emacs -Q -L ~/.emacs.d/elpa/org-20201012/ -l org exhibits *half* of the behavior i am mentioning

Re: did behaviour of RET change again?

2020-12-23 Thread Greg Minshall
Tom, > The other reason I think this is a good idea is because I have been > working on a formal grammar for the org syntax, and everything would > be SO much simpler about the implementation after the first pass parse > if the canonical representation of an Org file did not allow > significant wh

Re: [O] new links escaping mechanism causing some problems

2020-12-27 Thread Greg Minshall
hi, Eric, i wonder if you are still using ox-twbs? i like the look, but internal links (from the TOC, say) appear to be broken. cheers, Greg ps -- versions ox-twbs20200628.1949 installed org20201012 installed

Re: [O] new links escaping mechanism causing some problems

2020-12-28 Thread Greg Minshall
> No, sorry; I stopped using this a while ago. I now use the default > exporter along this style sheet: > > https://taopeng.me/org-notes-style/css/notes.css thanks!

Re: Microsoft Excel spreadsheet editing directly from within emacs.

2020-12-29 Thread Greg Minshall
Hongyi Zhao, > I use Linux as my working environment exclusively. So, I can't access > the native MS Office supplied for macOS/Windows. But I sometimes > really need to manipulate and process MS Office documents, especially > DOCX and XLSX files. Though there are some free and open source office >

batch export: org-babel-execute:shell undefined?

2020-12-31 Thread Greg Minshall
hi. i am doing an export to HTML using "--batch --eval" to invoke emacs. i find that my shell source blocks are *not* being executed unless i use (custom-set-variables), rather than (setq) or (let), to initialize 'org-babel-load-languages. to wit... the following code works:

Re: batch export: org-babel-execute:shell undefined?

2020-12-31 Thread Greg Minshall
happy 2021, all and sundry. i should mention something else, in case it makes something click for someone. obviously, i'm not initializing things right, but that's a weak part in my knowledge, so i'm not sure what. > i find that my shell source blocks are *not* being executed unless i > use (cus

Re: batch export: org-babel-execute:shell undefined? (SOLVED)

2020-12-31 Thread Greg Minshall
apologies. (org-babel-do-load-languages) (rtfm!) is what i was lacking. (progn (org-babel-do-load-languages 'org-babel-load-languages '((shell . t))

a few dead links on the babel languages page

2020-12-31 Thread Greg Minshall
hi. here are a few dead links from https://orgmode.org/worg/org-contrib/babel/languages/index.html - http://ditaa.org/ditaa/ - ? s/b http://ditaa.sourceforge.net/ - http://www.mathomatic.org/ - http://www.mozart-oz.org/ cheers, Greg

Re: Get =#+RESULTS= without re-evaluating source code block?

2021-01-27 Thread Greg Minshall
John, > I tried this but it did not work for me. to be clear, caching means that the *first* time you execute, your reference will have to wait for the long-running computation to complete, but not during subsequent executions (unless the source block that performs the execution changes, in which

Re: 2 Surprises and 2 Questions Regarding Org Tangle

2021-02-11 Thread Greg Minshall
Lee Jia Hong, for your surprise number one, maybe look at this point of the Org Manual Noweb insertions honor prefix characters that appear before the noweb syntax reference. basically, if the source of a <> has multiple lines (N, say), then the output of a subsequent <> *copies* that li

Re: 2 Surprises and 2 Questions Regarding Org Tangle

2021-02-11 Thread Greg Minshall
Lee Jia Hong, on your second surprise, there was some discussion on the e-mail list, around 19 April, 2020, somewhere near this area. you might refer to that. cheers, again, Greg

Re: How do you name your code blocks?

2021-02-15 Thread Greg Minshall
Rodrigo, i guess part of the answer depends on why you are naming your code blocks. for me, the main reason is for <>. another is so that when org-mode asks me if it should run a block, it has a name to tell me to help in my decision-making. for <>, there is noweb-ref header argument (see manua

Re: How do you name your code blocks?

2021-02-16 Thread Greg Minshall
hi, Rodrigo, thanks. i understand. we all like "int i;" to be independent in separate functions (as it were). right now, names of source blocks are global to the .org file, and i don't suspect that will (or should) change. i apologize for bringing it up, but the one thing that jumps out at the

Re: state of the art in org-mode tables e.g. join, etc

2021-02-20 Thread Greg Minshall
John, > Is there a state of the art in using org-tables as little databases > with joins and stuff? i have to admit i do all that with an R code source block. (the dplyr package has the relevant joins, e.g. dplyr::inner_join().) and, in R, ":colnames yes" as a header argument gives you header l

Re: 'false' list item

2021-02-21 Thread Greg Minshall
Tim, > If a line starts with a number, period and space, but that line is > within a paragraph (i.e. no blank line above), then I don't think it > should be interpreted as an enumerated list item. If this is what the OP > is referring to, I would argue it is a bug. If it is a 'paragraph' > startin

Re: 'false' list item

2021-02-21 Thread Greg Minshall
Tim, > There is no plans to change anything as far as I know. What I wrote was > mainly to show why we have the situation and that any proposed solution > has its own drawbacks. thanks. (i assumed that, but ...) > Bottom line, we cannot easily prevent the 'false' list item issue > without intro

Re: state of the art in org-mode tables e.g. join, etc

2021-02-22 Thread Greg Minshall
Malcolm, > Checkout what R sqldf package makes easy: very nice! Greg ps -- (feeling a challenge... :) for base R, dplyr::inner_join, the following seem to work (i apologize that i don't know how people embed org-frags in e-mail, or how important that format might be?) #+NAME: original |

Re: state of the art in org-mode tables e.g. join, etc

2021-02-22 Thread Greg Minshall
Malcolm, thanks, and, yes, i'm of mixed mind, myself. cheers, Greg

org-in-org

2021-02-23 Thread Greg Minshall
i have a question about org-in-org source blocks. i volunteered to help in an effort to provide a tutorial of using the ESS (Emacs Speaks Statistics) package for R, in particular, from org mode. i'd like to write my contribution as a .org file. i'd like to include fragments of org code, includin

Re: org-in-org

2021-03-07 Thread Greg Minshall
Erik, > I am not sure if this would be useful to your efforts, but I have an "R in > org-mode" tutorial on github: > https://github.com/erikriverson/org-mode-R-tutorial thanks. that gives me a model to look at in terms of structure and content. Greg

Re: org-in-org

2021-03-07 Thread Greg Minshall
Jeremie, thanks for this. > A possible solution might be this one > #+NAME: readdata-code > #+BEGIN_SRC org > ,#+NAME: readdata-code > ,#+BEGIN_SRC R :results value silent > > read.data("datafile1.csv",sep=3D",",header=3DT)->mydata1 > > > ,#+END_SRC > #+END_SRC iiuc, this will embed t

Re: org-in-org

2021-03-07 Thread Greg Minshall
Charles, thanks. any thing you'd like to add to the R-via-ESS/org-mode repository, that would be great. in general, afaik, the contents of org-in-org buffers export okay. at least plain ones. would could like to have the embedded code blocks go through some pretty-printer, but currently i don'

Re: org-in-org

2021-03-07 Thread Greg Minshall
Charles, thanks. ah, i apologize -- i missed the elisp content of your earlier message. yes, that, at least for this simple case, does exactly what i was looking for! i guess when i used the term "recursive execute function" (i tend to confuse "execute" and "export"), i was thinking of something

Re: org-in-org

2021-03-08 Thread Greg Minshall
Chuck, > I admit to being baffled by this. > > If you have nested org src blocks and you recursively enter each org > block using `org-edit-special' and execute the src blocks other than > org lang, then exit with `org-edit-src-exit', when you complete this > the org buffer will have nested src b

Re: Using lexical-binding

2021-03-19 Thread Greg Minshall
hi. i just upgraded to : Org mode version 9.4.4 (9.4.4-27-gb712b9-elpa @ /home/minshall/.emacs.d/elpa/org-20210315/) and, have also just started playing with (org-babel-map-inline-src-blocks), the documentation for which says During evaluation of BODY the following local variables are set r

Re: Using lexical-binding

2021-03-19 Thread Greg Minshall
> but, iiuc, that relies on dynamic binding. so, as =lexical-binding= is > =t=, i don't have access to those appealing variables. from reading the elisp manual, it seems that one could define those variables to be "special variables", and, iiuc, one can achieve this by using a =defvar= without a

Re: Using lexical-binding

2021-03-19 Thread Greg Minshall
Kyle, thanks. i see. i wondered why the talk was all about agendas. since, in my (brand new, experimenting) use of =org-babel-map-src-blocks=, i'm calling a function, and that function is trying to de-reference, e.g., =beg-block=, i get an error. it is (or does seem to be) the case that if the

Bug: crash exporing to html [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]

2021-03-20 Thread Greg Minshall
uot; :follow #[257 "\301\300\302Q!\207" ["ftp" browse-url ":"] 5 "\n\n(fn URL)"]) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) org-latex-format-headline-function 'org-latex-format-headline-default-function org-link-elisp-confirm-function 'yes-or-no-p org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-html-format-headline-function 'org-html-format-headline-default-function ) -- Greg Minshall

Re: Using lexical-binding

2021-03-21 Thread Greg Minshall
Kyle, > Hmm, given that the lexical-binding change to ob-core was back in Org > 9.0 (November 2016), it seems like dynamic scoping wasn't really being > relied on (or, if it was, downstream code has already been adjusted). > In my view it'd be better to stick with lexical scoping for these > varia

trivial software engineering'ish question: switching org's

2021-03-21 Thread Greg Minshall
hi. i occasionally want to switch from the org package to a git version, then back again. and, i want to avoid the dread "mixed installation". i'm wondering is there a way people do this other than simply installing/deleting the package version? cheers, Greg

Re: Bug: crash exporing to html [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]

2021-03-21 Thread Greg Minshall
Kyle Meyer wrote: > At the very least, the failure message should be informative in this > situation (a call referencing an unknown name). I've pushed a commit > (5450d6420) to improve the error reporting. thanks!

Re: trivial software engineering'ish question: switching org's

2021-03-22 Thread Greg Minshall
Tim and Gustav, thanks for your answers. in particular, straight.el does seem promising. i'll set it up, use it with Tim's "switching use-package blocks", and see how it goes. cheers, Greg

[PATCH] Update example :publishing-function names in manual

2021-03-22 Thread Greg Minshall
--- doc/org-manual.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index 0dbc5e205..d75828722 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -15845,12 +15845,12 @@ and possibly transformed in the process. The default

straight.el and org info pages?

2021-03-23 Thread Greg Minshall
Gustav, > Straight.el is worth looking into for this. Has served me well for > similar use cases. have you (or anyone else?) had problems getting straight.el to build and install the info pages for Org mode? cheers, Greg

Re: trivial software engineering'ish question: switching org's

2021-03-23 Thread Greg Minshall
Maxim, also, thanks. i do use (something like) your suggestion when i just want to try once or twice. : emacs -Q -L /path/to/your/org-mode/folder/lisp -l org (from Ihor R, last December.) cheers, Greg

Re: straight.el and org info pages?

2021-03-23 Thread Greg Minshall
Richard, thanks. for ess, i see your results. for org, or org-plus-contrib, i see info pages from /usr/share/info. a mystery. (which shall be, for the moment, let be.) cheers, Greg

Re: straight.el and org info pages?

2021-03-23 Thread Greg Minshall
Gustav, thanks. installing org went very well. and, i'm pleased with straight.el. (package.el didn't seem to install the info pages, either.) cheers, Greg

exporting css into a .html file

2021-03-27 Thread Greg Minshall
hi. i'm wondering what the reference to "style blocks" means in the "CSS Support" section of the manual: For longer style definitions, either use several ‘HTML_HEAD’ and ‘HTML_HEAD_EXTRA’ keywords, or use ‘ ... ’ blocks around them. Both of these approaches can avoid referring to an external

Re: exporting css into a .html file

2021-03-29 Thread Greg Minshall
nd_export below is a small patch with clarification in the manual, if deemed appropriate. cheers, Greg >From 46306f25fa1171fad94b7e70690c40f7db35a018 Mon Sep 17 00:00:00 2001 From: Greg Minshall Date: Mon, 29 Mar 2021 20:20:05 +0300 Subject: [PATCH] Clarify use of ... for CSS in HTML e

Re: About exporting

2021-03-29 Thread Greg Minshall
i tend to be situational. some things i export to html, some to pdf, some to both. it just depends on the need of whatever small project i'm working on.

[:results append] and [:wrap ...] don't play well together

2021-03-30 Thread Greg Minshall
hi. this fails with [emacs -Q], which in my case : Org mode version 9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/) and, also in whatever elpa'ish version i'm running : Org mode version 9.4.4 (release_9.4.4-277-g2e1c98 @ /home/minshall/.emacs.d/straight/build/org/) when i specify [:resu

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Greg Minshall
Jean Louis, > Another issue related to this setup is that I would like: > > - for HTML export: title:t toc:t > > - for LaTeX PDF export: title:nil toc:nil > > Is there way to have options different for different exports? sometimes "publishing" gives me easier control over options than "exporti

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Greg Minshall
George and all, whether it's the right thing to do or not, i don't know. but, i'm very sympathetic to the urge. even when posting to the list, the reflex to use back ticks is strong. Greg

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Greg Minshall
Jean Louis, when publishing, one presents a data structure ~org-publish-project-alist~ that defines the back ends and options for publishing actions. the options are here: https://orgmode.org/manual/Publishing-options.html#Publishing-options below is an example. as you can see, publis

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Greg Minshall
Jean Louis, another thing that i find helpful in understanding the tao of export: if you haven't, look at the help string for the variable ~org-export-options-alist~: [C-h v org-export-options-alist]. cheers, Greg

Re: header-args property

2021-04-01 Thread Greg Minshall
Michael, i see "Hello" when i C-c C-c. i see this with "emacs -Q". cheers, Greg

Re: Idea for handling timezones

2021-04-03 Thread Greg Minshall
hi, Shiro, > With this, say the user have > > #+TIMEZONE: America/Toronto > > at the start of their org file, and they moved to Shanghai, all the timestamp > in > the org file is converted using something equivalent to > > $ TZ=Asia/Shanghai date --date='TZ="America/Toronto" '"$TIMESTAMP" > >

Re: How to get a table into a variable in a shell code block?

2021-04-03 Thread Greg Minshall
William, try #+begin_src shell :results output :var n=numbers echo ${n[1]} #+end_src cheers, Greg

Re: Idea for handling timezones

2021-04-03 Thread Greg Minshall
Russell, > I would not suggest using UTC. I believe one of the reasons timestamps > didn't include TZ information was to keep them short and human > legible. Solutions with overlays to change a timestamp reduce the > usefulness of the plain text reading of Org (ie: less, grep, > etc). Storing time

Re: Generating documentation about Org from random org file

2021-04-03 Thread Greg Minshall
Michael, > Now I want to use this file to showcase the use case a bit, but also > to produce documentation about Org, about how to solve a problem with > Org. Therefore I want to show the code blocks, but this time with the > begin/end tags, with header parameters etc. Is there a nice way to do >

life on the eading bledge

2021-04-05 Thread Greg Minshall
hi. running c881b60593b3beeed7b8c7a2bada64157cd9940a, the following *** this =equals= that and, so on exporting [C-e l o], gives : replace-regexp-in-string: Wrong type argument: arrayp, nil cheers, Greg = backtrace: Debugger entered--Lisp error: (wrong-type-argument arrayp

<    1   2   3   4   >