Re: [FR] Org babel: mixing multiple outputs (was: Output of R code block: only text or plot but not both? And only one "result" can be output?)

2024-06-05 Thread Berry, Charles
> On Jun 5, 2024, at 11:17 AM, Ihor Radchenko wrote: > > "Berry, Charles" writes: > >>> I am trying to have an R code block output both the results of a numerical >>> expression AND a plot, but if I set up the header arguments to display the >>

Re: Output of R code block: only text or plot but not both? And only one "result" can be output?

2024-06-05 Thread Berry, Charles
Giuseppe, > On Jun 3, 2024, at 6:47 AM, Giuseppe Pagnoni wrote: > > Hi, > > I am trying to have an R code block output both the results of a numerical > expression AND a plot, but if I set up the header arguments to display the > plot, the numerical outcome is not displayed. A simple

Re: Using Org-mode macros as LaTeX macros

2024-06-01 Thread Berry, Charles
Sebastien, One way to propagate values prior to export is to use named src blocks and noweb references to them. For example, the following code: --- #+name: orga-def #+begin_src latex :exports none my old school #+end_src #+begin_src latex :noweb yes \begin{titlepage} Some custom LaTeX

BUG: org-todo-keywords-for-agenda is nil in custom agenda view

2024-05-29 Thread Charles Pence
things, I assume). You can find a reasonably minimal config that will reproduce the bug with emacs -Q here: https://github.com/minad/org-modern/discussions/211 I am not a mailing list member, so if you would like more detail please contact me off-list. Thanks for your help! Thanks, Charles

Re: SMART goals and bolding the first letter

2024-05-27 Thread Berry, Charles
Sharon, > On May 27, 2024, at 8:07 AM, Sharon Kimble > wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > > How can I bold the first letter of a word please? I'm trying to do this - > > > - - *S*pecific - You don’t want a vague goal. > I think the usual approach

Fwd: Bug: Final zero after decimal point is stripped when inline code evaluated

2024-05-07 Thread Charles Millar
Forwarded Message Subject: Re: Bug: Final zero after decimal point is stripped when inline code evaluated Date: Tue, 7 May 2024 10:25:05 -0400 From: Charles Millar To: Max Nikulin On 5/7/24 7:49 AM, Max Nikulin wrote: On 07/05/2024 03:05, Charles Millar wrote: I

Re: Bug: Final zero after decimal point is stripped when inline code evaluated

2024-05-06 Thread Charles Millar
On 5/6/24 12:42 PM, Ihor Radchenko wrote: Max Nikulin writes: On 06/05/2024 19:44, Ihor Radchenko wrote: Charles Millar writes: #+NAME: TABLE2 |22578.60| src_latex[:var printthis=TABLE2[-1,-1] :eval yes :results replace :exports results]{\num{printthis}} {{{results(@@latex:\num{22578.6

Re: Bug: Final zero after decimal point is stripped when inline code evaluated

2024-05-05 Thread Charles Millar
Forgot to include that i also used the numprint package. On 5/5/24 2:30 PM, Charles Millar wrote: Please note that in the second src_latex the zero is stripped from the results. The final zero is required for my purposes, i.e. dollars and cents. This occurs in both results and on export

Bug: Final zero after decimal point is stripped when inline code evaluated

2024-05-05 Thread Charles Millar
Please note that in the second src_latex the zero is stripped from the results. The final zero is required for my purposes, i.e. dollars and cents. This occurs in both results and on export to pdflatex, Does org's evaluation cause this or does latex? I have attempted to use the siunutx and

Re: [BUG] Exporting lists of >100 items to markdown

2024-05-05 Thread Berry, Charles
Bastien, > On May 5, 2024, at 9:17 AM, Bastien wrote: > > Exporting the attached document with a list of >100 items results in a > misformed markdown list, with missing spaces at the beginning of items. > > Can anyone reproduce this? Yes. With Org mode version 9.6.6 I see that org-md-item

[BUG] Invalid search bound (wrong side of point) [9.6.25 ( @ /Users/cchoi/.config/emacs/elpa/org-9.6.25/)]

2024-04-15 Thread Charles Choi
Hi folks - Got this warning when running Org Agenda, thought I'd report it in. ⛔ Warning (org-element-cache): org-element--cache: Org parser error in 2024_04_07.org::#. Resetting. The error was: (error "Invalid search bound (wrong side of point)") Backtrace: " backtrace-to-string(nil)

Re: Search and replace excluding code blocks?

2024-01-30 Thread Berry, Charles
> On Jan 29, 2024, at 3:47 PM, Vikas Rawal wrote: > > Hi all, > > Is it possible to search and replace a regex/string in an org file excluding > the code blocks from its scope? > > Say, I want to replace all opening quotes (") by backticks(``) in the text > but not in the code blocks. Is

Re: Feature request: Allow export to convert broken links to plain text

2023-09-11 Thread Berry, Charles
Ryan, > On Sep 9, 2023, at 9:13 PM, Ryan C. Thompson wrote: > > So, this isn't an ideal solution, since it requires me to prefix any > potential offending links with "maybe:". But it's good enough for me. > It is good that you have a solution, albeit with the caveat you mention above. A

Re: [Pre-PATCH v2] Add the capability to specify lexical scope in tangled files (was: Add new :lexical header argument)

2023-07-15 Thread Berry, Charles
> On Jul 15, 2023, at 9:11 AM, Thomas S. Dye wrote: > > > Ihor Radchenko writes: > >> "Thomas S. Dye" writes: >> Am I correct that language-specific header arguments are not yet covered in the manual? I can't find any reference of "lexical" there. >>> >>> Yes, I believe so.

Re: Preserving leading zeros

2023-05-28 Thread Berry, Charles
William, Have you considered http://gewhere.github.io/org-bibtex ?? Or using the approach therein, viz. use properties to store bib data in org? HTH, Chuck > On May 28, 2023, at 7:46 AM, William Denton wrote: > > I'm thinking about moving a personal library catalogue system into Org. This

Re: [BUG] org-manual: Using bookmarklet for org-capture is no longer reliable

2023-01-31 Thread Charles Philip Chan
ful because CSP (Content Security Policy) blocking them on many sites (for example Github)[2]. Charles Footnotes: [1] https://addons.mozilla.org/en-US/firefox/addon/org-protocol/?utm_source=addons.mozilla.org_medium=referral_content=search [2] https://github.com/vifon/org-protocol-for-firefox signature.asc Description: PGP signature

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-29 Thread Berry, Charles
Bastien et al, > On Dec 29, 2022, at 8:00 AM, Bastien Guerry wrote: > > I think it would make sense to convert Elisp lists into R lists > directly. Jeremie, would you be okay with this? > Perhaps there are some hiccups. The R `data.frame' type is a list with some added attributes. In that

Re: [BUG] Header-args :results output of code block don't take precedence above headline header-args [9.6 (release_9.6-32-gc59d6d @ /tmp/org/org-mode/lisp/)]

2022-12-09 Thread Berry, Charles
Rens, This is not a bug. Seee below. > On Dec 7, 2022, at 9:47 AM, Rens Oliemans wrote: > > Hi all, > > A code block with ":results output" as header argument still has its > output silenced if it's inside a headline with ":results none". MWE: > > 1. Create an .org file with the following

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 Berry, Charles
Hi Greg, > On Dec 5, 2022, at 4:41 PM, Greg Minshall wrote: > > 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.

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 Berry, Charles
> On Dec 4, 2022, at 6:43 PM, Greg Minshall wrote: > > 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

Re: Release 9.6

2022-12-01 Thread Charles Millar
On 12/1/22 18:10, Tim Cross wrote: Max Nikulin writes: On 29/11/2022 13:58, Bastien wrote: Last but not least: thanks to Ihor his truly amazing work and for being the de facto maintainer. I think, Ihor's role in this release is crucial. He spent a lot of time fixing bugs and reviewing

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 Berry, Charles
> On Nov 30, 2022, at 5:48 PM, Ihor Radchenko wrote: > > William Denton writes: > >> I tried that, but it didn't fix it. :( > > Ok. I was able to reproduce on my side. > >> With a minimal setup, running the R block with a :session makes it ask where >> the >> working directory should be

Bug org-cycke fails after "replace-string" is

2022-11-29 Thread Charles Millar
Attached is an example 1. Open all headings etc. show the contents then Collapse all headings 2. Cycle First Heading to show its content 3. Cycle Second Heading to show only the subheadings, but not the content of each subheading 3. Cycle Subheading B, to show its content. 4. go to point-min

Re: Init.el need just for org-mode?

2022-11-02 Thread Charles Millar
On 11/2/22 13:31, Renato Pontefice wrote: I’m sorry for this simply question, but I’m starting using emacs and org-mode and I made some confusion. Init.el Need just for org -mode? Not for emacs right? Thank you Renato Forgot to mention, and you may already be aware of this, use C-h v

Re: Init.el need just for org-mode?

2022-11-02 Thread Charles Millar
On 11/2/22 13:31, Renato Pontefice wrote: I’m sorry for this simply question, but I’m starting using emacs and org-mode and I made some confusion. Init.el Need just for org -mode? Not for emacs right? You may use init.el (or .emacs of .emacs.d/init.el) file for all of emacs.not just Org

Re: 'make autoloads' works but 'make ; make autoloads' fails with a version mismatch?

2022-09-14 Thread Charles Philip Chan
> Thanks for reporting! > Fixed on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2d3802658156153974f540877a82bf5a384a2ad4 Thanks that fix it for me too. Charles signature.asc Description: PGP signature

Re: Reinstalling compat fixed everything breaking

2022-09-14 Thread Charles Philip Chan
Warning (emacs): Org version mismatch. Make sure that correct ‘load-path’ is | set early in init.el This warning usually appears when a built-in Org version is | loaded prior to the more recent Org version. ` during "make install". I never had this problem before. Charles signature.asc

Re: Reinstalling compat fixed everything breaking

2022-09-14 Thread Charles Philip Chan
Warning (emacs): Org version mismatch. Make sure that correct ‘load-path’ is | set early in init.el This warning usually appears when a built-in Org version is | loaded prior to the more recent Org version. ` during "make install". I never had this problem before. Charles signature.asc Description: PGP signature

Re: substitutions in html export?

2022-07-18 Thread Berry, Charles
Kevin, > On Jul 17, 2022, at 1:54 PM, kevinbanjo wrote: > > When I look at the doc string for (org-macro-replace-all) it says: > > Optional argument KEYWORDS, when non-nil is a list of keywords, > as strings, where macro expansion is allowed. > > I tried passing it '("export-block") but it

Re: substitutions in html export?

2022-07-17 Thread Berry, Charles
Kevin, > On Jul 17, 2022, at 10:18 AM, kevinbanjo wrote: > > > > On Sun, Jul 17, 2022 at 7:24 AM Ihor Radchenko wrote: > See inline calls in > https://orgmode.org/manual/Evaluating-Code-Blocks.html#Evaluating-Code-Blocks > > I did this and it didn't work (but the one outside the export

Re: idea for capture anywhere in x

2022-06-10 Thread Charles Philip Chan
org/en-US/firefox/addon/org-protocol/?utm_source=addons.mozilla.org_medium=referral_content=search is working well for me. Charles signature.asc Description: PGP signature

Re: Bug: ob-R.el breaks when :session is specified

2022-05-15 Thread Berry, Charles
Um... > On May 15, 2022, at 2:46 AM, Christian Heinrich > wrote: > > I run > > emacs -q --load /tmp/init.el --file=/tmp/test.org > > with my /tmp/init.el being only > >> (require 'package) >> (package-initialize) >> (add-to-list 'load-path "~/.emacs.d/straight/repos/org/lisp/") >>

Re: How to export to markdown programmatically without the table of contents?

2022-05-01 Thread Berry, Charles
> On May 1, 2022, at 2:20 AM, Marcin Borkowski wrote: > > Hi fellow Orgers, > > I'd like to export a Org-mode formatted string to markdown, but without > the table of contents. > > (org-export-string-as my-string 'md t '(toc nil)) > > didn't work (the ToC was still there). What am I

Re: handling as special special block in derived export

2022-01-19 Thread Berry, Charles
Matt, > On Jan 19, 2022, at 5:52 AM, Matt Price wrote: > > However, I'd really like to add a less verbose syntax, like this: > > #+begin_r-stack :frag (appear appear) > [[imglink1]] > [[imglink2]] > #+end_r-stack > > My question is: will the exporter preserve information from these

Re: should a "wrapped" table result behave differently than one that is not?

2022-01-18 Thread Berry, Charles
Eric, > On Jan 18, 2022, at 9:05 AM, Eric S Fraga wrote: > > been wrapped in a RESULTS special block be different than one that is > not wrapped (beyond the wrapping, of course)? Specifically, wrapping > the results seems to cause org to ignore that ATTR_LATEX :center toggle > [1]. A minimal

Re: Way to mark contents of an Org special block as verbatim?

2022-01-09 Thread Berry, Charles
> On Jan 9, 2022, at 8:58 AM, Kaushal Modi wrote: > > How do we disable Org from transforming this: > >E = -J \sum_{i=1}^N s_i s_{i+1} > > to this: > > >E = -J i=1^N s\_i si+1 Ahh! Sorry! So, : (format "{{<%s>}}\n%s{{}}\n" type contents type) has the contents already

Re: Way to mark contents of an Org special block as verbatim?

2022-01-08 Thread Berry, Charles
> On Jan 8, 2022, at 3:29 PM, Kaushal Modi wrote: > >> What am I missing? >> >> It seems like you want your derived backend to transcode special blocks >> somewhat differently than the parent backend. And adding a special block >> export filter doesn't quite do the job. > > I tried out

Re: Way to mark contents of an Org special block as verbatim?

2022-01-08 Thread Berry, Charles
> On Jan 6, 2022, at 11:46 AM, Kaushal Modi wrote: > > On Thu, Jan 6, 2022 at 2:33 PM Juan Manuel Macías > wrote: >> I just realized that there is a much simpler solution for your katex >> environment :-) >> >> You can use an example block, and define your custom environment using >> the

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-31 Thread Berry, Charles
Max, > On Dec 31, 2021, at 4:05 AM, Max Nikulin wrote: > > > Should some function a macro be provided to facilitate declaring languages as > data format (config files, JSON, YAML, etc.) rather than executable source > code? I think we already have this in the form of export blocks, viz.

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-30 Thread Berry, Charles
Rudy, > On Dec 29, 2021, at 11:26 PM, Rudolf Adamkovič wrote: > > (Note: I do not know what ECM stands for.) ECM stands for =Exemple Complet Minimal=, per https://orgmode.org/worg/org-faq.html#ecm, which says "The term refers to test files that can reliably reproduce a bug with the minimal

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-29 Thread Berry, Charles
Max, > On Dec 29, 2021, at 4:53 AM, Max Nikulin wrote: > > On 25/12/2021 02:52, Berry, Charles wrote: >> For that case, setting buffer or heading properties, such as: >> #+begin_src org >> :PROPERTIES: >> :header-args: :eval yes :exports results >>

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-25 Thread Berry, Charles
Rudy, Thanks for the comment, but ... > On Dec 25, 2021, at 1:37 PM, Rudolf Adamkovič wrote: > > I think we look at the problem from two different perspectives. You > look at the problem from the "how" perspective, whereas I look at it > from the "why" perspective. Sure, we can work around

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-24 Thread Berry, Charles
> On Dec 23, 2021, at 8:09 PM, Ihor Radchenko wrote: > > Rudolf Adamkovič writes: > >>> So, Org cannot distinguish between language backends that are simply >>> not loaded and the ones that do not define org-babel-execute:lang. >> >> Oh, if we have this architectural limitation in place,

Re: exporter: How to get :file property on a src block in an exporter

2021-12-22 Thread Berry, Charles
> On Dec 22, 2021, at 2:16 PM, Yasushi SHOJI wrote: > > Hi, > > On Thu, Dec 23, 2021 at 3:22 AM Berry, Charles > wrote: >>> On Dec 22, 2021, at 8:07 AM, Yasushi SHOJI wrote: >>> On Thu, Dec 23, 2021 at 12:52 AM Yasushi SHOJI >>> wrote:

Re: exporter: How to get :file property on a src block in an exporter

2021-12-22 Thread Berry, Charles
> On Dec 22, 2021, at 8:07 AM, Yasushi SHOJI wrote: > > On Thu, Dec 23, 2021 at 12:52 AM Yasushi SHOJI > wrote: >> Then, why don't I have :file in the info? > > The :exports must be "file" to have the file name in the info. I used > to have "code" because > I wanted to export code with

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-21 Thread Berry, Charles
> On Dec 21, 2021, at 2:53 PM, Rudolf Adamkovič wrote: > > I struggle to understand. Why do we need a customization? If Org knows > that some backend exists but has no execute function, why does it even > try to execute it? It cannot. Do I miss something? Sorry if my prior posts were

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-18 Thread Berry, Charles
> On Dec 18, 2021, at 11:57 AM, Charles Berry wrote: > > There are workable approaches under the current setup. > > - Also, when exporting it looks `org-babel-exp-results' does not attempt to run src blocks for which (fboundp (intern (concat "org-babel-execute:&q

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-18 Thread Berry, Charles
> On Dec 18, 2021, at 1:49 AM, Ihor Radchenko wrote: > > "Berry, Charles" writes: > >> If I have a typo in the name of a language, the error message you quote >> tells me what my mistake was. >> >> I'd say that is a feature, not a bug.

bug#52545: 29.0.50; Make org-babel-execute-buffer ignore irrelevant src blocks

2021-12-17 Thread Berry, Charles
> On Dec 16, 2021, at 8:51 PM, Kyle Meyer wrote: > > Rudolf Adamkovič: > >> I have a .org file with two kinds of src blocks: >> >> 1. sqlite blocks >> 2. bibtex blocks >> >> I want to execute all sqlite blocks with org-babel-execute-buffer. >> >> When I try to do so, org-mode complains: >>

:eval yes use and documentation

2021-12-16 Thread Charles Millar
Org mode version 9.5.1 (release_9.5.1-279-g8908fb @ /usr/local/share/org-mode/lisp/) GNU Emacs 28.0.50 (build 344, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2020-12-31 Here is a use case. I have many files each with as many as 60 tables that are generated using ob

Re: reference a remote named block in #+CALL: line

2021-11-02 Thread Berry, Charles
Matt, > On Nov 2, 2021, at 3:19 AM, Matt Price wrote: > > I am getting used to calling library-of-babel functions with local data > structures as input variables, e.g. in this line: > > #+CALL: list2table(data=common-issues-list, order="rows") :results table > raw > > where

Re: [PATCH] async process in R

2021-09-28 Thread Berry, Charles
Jeremie, > On Sep 28, 2021, at 12:34 AM, Jeremie Juste wrote: > > Thanks for the feedback. With the following patch, I made sure that > ess-inject-source is set to default before evaluating the buffer. > > So even if I set > (setq ess-inject-source 'function-and-buffer), I get the following >

Re: [PATCH] async process in R

2021-09-27 Thread Berry, Charles
Jeremie, > On Sep 27, 2021, at 3:56 PM, Berry, Charles wrote: > > There is something in my init that doesn't play nice with this. (setq ess-inject-source nil) seems to be the culprit. Also note, even with ess-inject-source set to t, there is an indentation issue: #+be

Re: [PATCH] async process in R

2021-09-27 Thread Berry, Charles
; It may take me a while to figure out what it is. :-( HTH, Chuck > On Sep 27, 2021, at 1:28 PM, Jeremie Juste wrote: > > Hello Chuck, > > On Monday, 27 Sep 2021 at 18:28, Berry, Charles wrote: >> >> It looks like you have `(setq ess-eval-visibly t)' here. I

Re: [PATCH] async process in R

2021-09-27 Thread Berry, Charles
Jeremie, > On Sep 26, 2021, at 10:13 AM, Jeremie Juste wrote: > > But for the time being result output produces the following output. > > #+begin_src R :session *R* :results output :async > Sys.sleep(1) > print(1:5) > #+end_src > > #+RESULTS: > : > Sys.sleep(1) > : > print(1:5) > : [1] 1 2 3

Re: Org babel source blocks ignore buffer-local variables

2021-09-06 Thread Berry, Charles
> On Sep 6, 2021, at 1:53 AM, Dominik Schrempf > wrote: > > Thank you, this solution works. May I ask about the reasons of such a > distinction? [i.e. between exec-path and (getenv "PATH")] Well, this is how `shell' and `shell-command-on-region' both do it, and they seem to be the

Re: Org babel source blocks ignore buffer-local variables

2021-09-04 Thread Berry, Charles
> On Sep 4, 2021, at 5:30 AM, Dominik Schrempf > wrote: > > Hello, > > I use directory local environments with =envrc= [1], and run into trouble when > using (Bash) Org Babel source code blocks. The buffer local environment seems > to > be ignored (see the example at the bottom). > > This

Fwd: Greater than, less than bug in emacs-lisp source block

2021-09-03 Thread Charles Millar
Thank you, Arthur. Forwarded Message Subject: Re: Greater than, less than bug in emacs-lisp source block Date: Fri, 03 Sep 2021 00:36:23 +0200 From: Arthur Miller To: John Kitchin CC: Charles Millar , emacs-orgmode@gnu.org John Kitchin writes: I think this issue

re: Bug Re: Greater than, less than bug in emacs-lisp source block

2021-09-03 Thread Charles Millar
at 2:10 PM Charles Millar wrote: Set up: GNU Emacs 28.0.50 (build 344, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2020-12-31 Org mode version 9.4.6 (release_9.4.6-637-gd70f28 @ /usr/local/share/org-mode/lisp/) The following code will evaluate #+begin_src emacs-lisp (defun

Greater than, less than bug in emacs-lisp source block

2021-09-02 Thread Charles Millar
Set up: GNU Emacs 28.0.50 (build 344, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2020-12-31 Org mode version 9.4.6 (release_9.4.6-637-gd70f28 @ /usr/local/share/org-mode/lisp/) The following code will evaluate #+begin_src emacs-lisp (defun Foo () (if (= 2 4) bar))

Bug: org-agenda-sort-notime-is-late is not correctly handled by timestamp comparison [9.4.6 (9.4.6-12-gdcc3a8-elpaplus @ /Users/charlestam/.emacs.d/elpa/org-plus-contrib-20210830/)]

2021-09-01 Thread Charles Tam
`defsubst org-cmp-ts` in org-agenda.el. The definition of `def` in the `let*` should be something like (if org-agenda-sort-notime-is-late -1) (In the state dump below, `org-agenda-sort-notime-is-late` is not mentioned but has its default value of t.) Thanks, Charles Emacs : GNU Emacs 27

proposed additions to org-collector code

2021-08-30 Thread Charles Millar
First, I thank Slava Barinov for his proposed patch to appending a #+tblfm line to an org-collector table. Date: 17 Mar 2019 13:22:58 +0300 Message-ID: <87sgvl4wes@gmail.com> (raw) Attached is my, in all modesty named, cm-org-collector.el in which I have added code to prepend name and

Re: Number format for table results outut from R data.frame/tibble

2021-08-21 Thread Berry, Charles
> On Aug 21, 2021, at 9:58 AM, John Hendy wrote: > > > Interesting, and thanks for taking a look. I don't think I specified > sufficiently that I'm actually aiming for latex/pdf output and > therefore want the org table. John, If you want a latex export, you should use one of the many R

Re: Bug: :session results in unfriendly error reporting

2021-08-16 Thread Berry, Charles
James, > On Aug 15, 2021, at 4:41 PM, James Powell wrote: > > I write a deliberate syntax error into a code block: > > : #+begin_src R :session > : x <- 1 > : y xx z > : #+end_src > > I put my cursor in there and C-c C-c. > > What I expect: a gentle useful report about the error. Right.

Re: ob-R: Error about longer than max-lines even with :result silent

2021-08-15 Thread Berry, Charles
> On Aug 15, 2021, at 6:19 AM, Yasushi SHOJI wrote: > > Hello, > > It seems like the following ECM cause an error: > Error (org-babel): Error reading results: (user-error "Region is > longer than ‘org-table-convert-region-max-lines’ (999) lines; not > converting") > > I assumed that with

Re: bug: Error handling in source blocks.

2021-08-10 Thread Berry, Charles
> On Aug 9, 2021, at 9:13 PM, James Powell wrote: > > Error handling is important and hard to get right. Me, I prefer to > treat every warning as an error (-Werror in gcc, "options(warn=2)" in > R, etc). I want the system to grind to a halt at the least sign of > trouble. If the

Re: Number format for table results outut from R data.frame/tibble

2021-08-06 Thread Berry, Charles
John, > On Aug 6, 2021, at 8:38 AM, John Hendy wrote: > > Greetings, > > I'm wondering how to align the results from the R buffer (which I > like) vs. the results printed by Org-mode for table results. Here's a > toy example: > `tbl_df' objects come with their own print/show method. And it

Re: Headings and Headlines

2021-07-24 Thread Charles Millar
On 7/23/21 10:06 PM, Tim Cross wrote: André A. Gomes writes: Hi, The project's documentation refers to headings and headlines as synonyms. Relying on a single definition would be beneficial. If I had to choose between the two, I'd go with heading. If the community finds this valuable, I

Re: setting export options in headline properties

2021-07-21 Thread Berry, Charles
Matt, Check (info "(org) Export Settings") and especially, the para near bottom: When exporting sub-trees, special node properties can override the above keywords. These properties have an ‘EXPORT_’ prefix. For example, ‘DATE’ becomes, ‘EXPORT_DATE’ when used for a specific sub-tree. Except

Re: [PATCH] ob-R output file with graphics parameter

2021-07-10 Thread Berry, Charles
Jack, I will be going offline for a week or so, so I will have to defer more discussion. I know that `silent' silences an unwanted file link. And there are a few other ways to do this. So, if it is determined to proceed, adding an implicit `file' will not prohibit uses in which it was not

Re: A requires/provides approach to linking source code blocks

2021-07-09 Thread Berry, Charles
Tim, > On Jul 8, 2021, at 12:32 PM, Tim Cross wrote: > > My concern here is with the additional complexity. This is already a > somewhat complex aspect of org mode and the behaviour you describe can > effectively be done using noweb, although as you say, not as > declarative in style. This

Re: [PATCH] ob-R output file with graphics parameter

2021-07-06 Thread Berry, Charles
> On Jul 6, 2021, at 12:20 PM, Jack Kamm wrote: > > Hi Chuck, > >> Here is an ECM that when exported with `C-c C-e l o y y` (or 'yes RET' for >> each `y' depending on your setup) > > I don't see the example on your last email, could you try re-attaching > it? > > Thanks, > Jack Mea

Re: [PATCH] ob-R output file with graphics parameter

2021-07-06 Thread Berry, Charles
> On Jul 6, 2021, at 8:04 AM, Jack Kamm wrote: > > Hello again, > >>> A user might like to construct a figure consisting of various subfigures >>> such as in a subfloat environment. >>> >>> Will this be reasonably simple to accomplish if `:results graphics' (with >>> no `file' element)

Re: using previous =#+results= when =:eval never=

2021-07-04 Thread Berry, Charles
> On Jul 3, 2021, at 10:19 PM, Greg Minshall wrote: > > Chuck, > > thanks. (i'm not surprised at an e-lisp suggestion from you! :) > > i worry about accidental modification of the base case results during > the chaos of development. it occurs to me (reading through >

Re: using previous =#+results= when =:eval never=

2021-07-03 Thread Berry, Charles
> On Jul 3, 2021, at 9:35 AM, Greg Minshall wrote: > > hi. > > i am trying to simplify adding regression test cases to a program. > > to generate the base, "compared-to" results, i want to write some code > in a source block, then evaluate it, producing the "true" value. > > then, later

Re: [PATCH] ob-R output file with graphics parameter

2021-07-03 Thread Berry, Charles
Sorry if I have misunderstood the proposals here, but ... A user might like to construct a figure consisting of various subfigures such as in a subfloat environment. Will this be reasonably simple to accomplish if `:results graphics' (with no `file' element) automatically inserts a link?

Re: Passing a variable into an R source block.

2021-05-28 Thread Berry, Charles
> On May 28, 2021, at 8:52 AM, Roger Mason wrote: > > Hello, > > I have an SQL source block that returns this: > > #+RESULTS: query > > [snip] > I would like to pass this into R for further processing. At the moment > I have this: > > #+begin_src R :session :colnames yes :var

Re: when executing a src block with latex construct, display problem because of +

2021-05-15 Thread Berry, Charles
Uwe, You used `:exports code :eval never-export' (from an earlier posting). I think you want `:exports both :eval never-export' to keep babel from removing the results. HTH, Chuck > On May 15, 2021, at 1:18 PM, Uwe Brauer wrote: > > Chuck, >> Uwe, >> [snip] > > >> [screenshot deleted] >

Re: when executing a src block with latex construct, display problem because of +

2021-05-15 Thread Berry, Charles
Uwe, [snip] > On May 15, 2021, at 11:10 AM, Uwe Brauer wrote: > > Thanks, it did not help. To make this clear the problem occurs in the > result block, not in the source block. > > > > That is exported to > #+RESULTS: > \begin{align*} >

Re: when executing a src block with latex construct, display problem because of +

2021-05-15 Thread Berry, Charles
Uwe, > On May 15, 2021, at 6:31 AM, Uwe Brauer wrote: > > > Hi > > I have the following src block > > #+begin_src matlab :results output raw :exports code :eval never-export > addpath /home/oub/ALLES/HGs/Matlab-init/Statistic > sens=0.7; > spec=0.95; > aspec=1-spec; > prob=0.1; >

Re: displaying equations with ob-latex

2021-05-06 Thread Berry, Charles
controls size. I tried 2.0 and it seems like a good value for my screen. Best, Chuck >> Sent: Friday, May 07, 2021 at 1:36 PM >> From: "Berry, Charles" >> To: "michael-franz...@gmx.com" >> Cc: "Help Emacs Orgmode" >> Subject: Re: disp

Re: displaying equations with ob-latex

2021-05-06 Thread Berry, Charles
> On May 6, 2021, at 4:20 PM, michael-franz...@gmx.com wrote: > > After I do "C-c C-c", I just get a message saying "Code block evaluation > complete." > Are you doing this in a buffer that has ONLY the text between the `cut here' lines and exactly that? If not, please try it in such a

Re: displaying equations with ob-latex

2021-05-06 Thread Berry, Charles
> On May 6, 2021, at 3:08 PM, michael-franz...@gmx.com wrote: > > Did you manage to get the equations displayed, I have tried again and could > not do > it. It might be beneficial to give more details and some more examples on > what to do. > Yes, the one equation was displayed as a

Re: displaying equations with ob-latex

2021-05-06 Thread Berry, Charles
> On May 6, 2021, at 12:50 AM, michael-franz...@gmx.com wrote: > > > I am trying to use ob-latex but equations are not being displayed in emacs > when I try to execute with "C-c C-c". Right. This is because `:results latex replace' is the default for latex src blocks and the leads to

Re: Is it possible to #+include: src blocks and tangle them too?

2021-04-16 Thread Berry, Charles
Hi Greg, > On Apr 16, 2021, at 8:27 AM, Greg Minshall wrote: > > Rama, > > one other comment/suggestion. > >> I haven’t been able to fully work with Donald Knuth’s suggestion of >> writing a Literate Program directly in a tool like orgmode/noweb since >> it is a nuisance to keep having to

Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export

2021-03-31 Thread Berry, Charles
> On Mar 31, 2021, at 9:41 AM, Timothy wrote: > > I anticipate that this change may be somewhat contentions because ox-md > explicitly follows only the original Markdown spec from 2003, however > I've thought this over and come to the conclusion that this change is > still in keeping with

Re: org-capture-template: table lines including newline of sorts

2021-03-16 Thread Charles Millar
On 3/16/21 3:34 AM, Uwe Brauer wrote: > On 3/15/21 5:00 PM, Uwe Brauer wrote: > My bad; I did not pay attention to a four line comment, so here it is > again, with the comment and final line for the template, etc. > (setq org-capture-template '( > . . . some capture

Re: org-capture-template: table lines including newline of sorts

2021-03-15 Thread Charles Millar
On 3/15/21 5:00 PM, Uwe Brauer wrote: "CM" == Charles Millar writes: > On 3/15/21 10:13 AM, Uwe Brauer wrote: >> >>> Hi, >>> On 3/14/21 1:00 PM, TRS-80 wrote: >>> You may have to escape the pipes. I did that in a similar captur

Re: Problems while trying to load feature

2021-03-15 Thread Charles R (Charlie) Martin
This is a problem I’ve noticed as well. Now, I am a programmer — my code or it’s descendants is still in the distribution — I do update org mode regularly, and I get messages when I start up Emacs about Org mode files that can’t be loaded. I wouldn’t be surprised if the cause is this renaming. But

Re: org-capture-template: table lines including newline of sorts

2021-03-15 Thread Charles Millar
On 3/15/21 10:13 AM, Uwe Brauer wrote: Hi, On 3/14/21 1:00 PM, TRS-80 wrote: You may have to escape the pipes. I did that in a similar capture template. Can you give me an example, please? HTH ("s" "timeslip" table-line (file "/mnt/Data/ActiveFiles/timeslips.org") "\|

Re: org-capture-template: table lines including newline of sorts

2021-03-14 Thread Charles Millar
Hi, On 3/14/21 1:00 PM, TRS-80 wrote: On 2021-03-13 02:24, Uwe Brauer wrote: Hi Currently I have the following setting for one org-capture-template: ("mu" "Stat+Num:Exercises English" table-line (file+headline "~/Somefile.org" "Exercise Group-E") "| %:fromname|%:fromaddress |

Re: org-in-org

2021-03-08 Thread Berry, Charles
Greg, > On Mar 7, 2021, at 11:44 PM, Greg Minshall wrote: > > i guess when i used the term "recursive execute function" (i tend to > confuse "execute" and "export"), i was thinking of something like: when > i export an org file, and it runs into an org-in-org block to export, > then your code

Re: org-in-org

2021-03-07 Thread Berry, Charles
> On Mar 7, 2021, at 8:14 AM, Greg Minshall wrote: > > 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

Re: org-in-org

2021-02-23 Thread Berry, Charles
Greg, See inline > On Feb 23, 2021, at 6:24 AM, Greg Minshall wrote: > > 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

Re: Org failing to format a link with verbatim text

2021-02-17 Thread Berry, Charles
> On Feb 17, 2021, at 4:25 PM, Okam wrote: > > > I have attached a minimum working example. The bad formatting also > occurs when just pasting the link. In the example, Org mode highlights > from beginning of the phrase "=verbatim text 1=" to the end of the > phrase "=verbatim text 3=" in

Re: Org failing to format a link with verbatim text

2021-02-16 Thread Berry, Charles
> On Feb 16, 2021, at 1:20 PM, Okam wrote: > > I am using the Emacs gccemacs branch with Org version "9.5-dev". > I have noticed that when I try to insert the stored link > > file:doc/loopy-doc.org::*Destructuring with =dash= > > and use the heading as the link description, that Org

Re: [question] lisp code in :results header arg.?

2021-02-16 Thread Berry, Charles
> On Feb 16, 2021, at 8:30 AM, Juan Manuel Macías > wrote: > > Hi, > > I'm exploring some ways to include a complex LaTeX preamble using source > blocks. Consider this (code at the end of this message), that works fine. > > My question is: In order to do it all in a single block, would

Re: na=\"nil\" in ob-R.elo

2021-01-15 Thread Berry, Charles
> On Jan 14, 2021, at 3:42 PM, Brett Presnell wrote: > > > Probably a silly question, but in ob-R.el, what is the reason for > setting na=\"nil\" when defining org-babel-R-write-object-command? Is > this an elisp compatibility thing? > I don't get it either. The value corresponding to the

Call org-collector dynamic block

2021-01-11 Thread Charles Millar
I'd like to format (latex export) the output from a captured org-collector dynamic block by using the resulting org-collector table as a variable for source code block. I have place #+name: before the collector block. #+name: bar #+BEGIN: propview :id "conveyances" :match "BreezyCorners"

Re: accounting

2021-01-04 Thread Charles Millar
On 1/4/21 3:54 AM, Uwe Brauer wrote: Hi https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html Points out how to use ledger within org mode. Is there any simpler solution? Regards Uwe Brauer If "simpler" means just making entries into your ledger.dat file using orgmode

  1   2   3   4   5   6   7   8   9   10   >