Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Matthew Lundin writes: > stardiviner writes: > >> I attached the patch. >> >> I think this feature will be helpful for use who archive web page data >> usually >> like me. To be more portable, I also added an defcustom option for other >>

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ihor Radchenko writes: >> This looks helpful, but I think this should be an add-on rather than >> integrated into the org-attach. I'm glad to learn about monolith, but >> far fewer users are likely to have it installed than have wget or curl >>

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Matthew Lundin writes: > stardiviner writes: > >> I attached the patch. >> >> I think this feature will be helpful for use who archive web page data >> usually >> like me. To be more portable, I also added an defcustom option for other >>

Re: org table: one column of random numbers (but natural ones)

2020-05-28 Thread tbanelwebmin
Le 27/05/2020 à 22:40, Uwe Brauer a écrit : > Hi > > > I have a org table and want to add a new colum, which natural numbers > which are randomly ordered > > So I tried > > #+TBLFM: $1=@#-1::$4=random($1@4);f1 > > But the column contains real numbers > > What can I do > > Uwe Brauer > > What

Re: [O] Help speeding up Org iCal export

2020-05-28 Thread Eric S Fraga
On Wednesday, 27 May 2020 at 17:24, Ken Mankoff wrote: > Can anyone offer suggestions why it reports scanning 22 files, and how > to speed it up since no code should be evaluated? Anecdotally, I have the impression that all org buffers in the current Emacs instance are scanned as well as the

Re: Emacs-orgmode Digest, Vol 171, Issue 30

2020-05-28 Thread Daryl Manning
On Thu, May 28, 2020 at 12:01 AM wrote: > Send Emacs-orgmode mailing list submissions to > emacs-orgmode@gnu.org > > -- > > Message: 24 > Date: Wed, 27 May 2020 07:11:08 -0400 > From: Matt Price > Cc: emacs-orgmode > Subject: Re: Improving Org Mode for

Re: org table: one column of random numbers (but natural ones)

2020-05-28 Thread Eric S Fraga
On Wednesday, 27 May 2020 at 22:40, Uwe Brauer wrote: > I have a org table and want to add a new colum, which natural numbers > which are randomly ordered Something like #+TBLFM: $1=floor(100*random(0.1)) I don't know what argument you want to pass to random(), especially as you had $1@4

Re: org table: one column of random numbers (but natural ones)

2020-05-28 Thread Eric S Fraga
Ignore previous reply. I misread your email. Too early in the morning for me. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-640-g9bc0cc

Re: Possible fix for :includes header argument in org-babel C source blocks

2020-05-28 Thread Kévin Le Gouguec
Kyle Meyer writes: > I think this discussion was on emacs-devel only, so here are some links > for others who might go looking for more context: > > https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg01880.html > https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg03051.html

Bug: org export rewrites the org buffer. if Emacs crashes during the export, the file gets corrupted [9.3.4 (9.3.4-5-ga0f3bb-elpa @ /home/lockywolf/.emacs.d/elpa/org-20200210/)]

2020-05-28 Thread Vladimir Nikishkin
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: org export rewrites the org buffer. if Emacs crashes during the export, the file gets corrupted [9.3.4 (9.3.4-5-ga0f3bb-elpa @ /home/lockywolf/.emacs.d/elpa/org-20200210/)]

2020-05-28 Thread Nicolas Goaziou
Hello, Vladimir Nikishkin writes: > When I was debugging export today, I found that while exporting, org > destructively strips the header arguments from the blocks, such as > :exports, :results, :file. Export process takes place in a copy of the original buffer. You were probably looking at

Re: Help speeding up Org iCal export

2020-05-28 Thread Nicolas Goaziou
Hello, I see a few misconceptions here. Ken Mankoff writes: > When I eval `(org-icalendar-combine-agenda-files nil)`, it takes about > 15 seconds. OK. You may want to profile this, or use ELP. > Some strange messages in the *Messages* buffer include: > > 22 files scanned, 7 files contains

org-babel :colnames yes

2020-05-28 Thread ian martins
Hello, I'm trying to figure out how to tell org that the first row of a src block result is a table header. from readthedocs it looks like ":colnames yes" should do this, but I haven't been able to get it to work, and the code

Re: Possible fix for :includes header argument in org-babel C source blocks

2020-05-28 Thread Kévin Le Gouguec
Kévin Le Gouguec writes: > That leads me to believe that the coercion was an unintended side-effect > of (format …). Never mind, the ORG-NEWS entry for 9.1 shows an example of unquoted header, so I guess it is intentional. Here is a patch to fix the regression: >From

Re: [BUG] All drawers except property drawers are open at startup

2020-05-28 Thread Nicolas Goaziou
Hello, Matt Lundin writes: > All drawers default to open at startup except for property drawers. This > includes :LOGBOOK: drawers, which can be quite long and block view of an > entry. I think all drawers are opened at startup, including property drawers. > I ran a git bisect and discovered

Re: Bug: Subtle bug with calling "noweb" blocks with already computed :results output code and :cache yes [9.3.4 (9.3.4-5-ga0f3bb-elpa @ /home/lockywolf/.emacs.d/elpa/org-20200210/)]

2020-05-28 Thread Nicolas Goaziou
Hello, Vladimir Nikishkin writes: > This bug is a bit hard to formulate. Have a look at the following > org-file. Even though it's big, it's almost an MWE: Emacs Lisp source code blocks would be way better. Also, have you read cache limitations exposed at (info "(org)Limit code block

Re: org-babel :colnames yes

2020-05-28 Thread Nick Dokos
Would this work for you? --8<---cut here---start->8--- #+BEGIN_SRC elisp :colnames yes '((one two) hline (1 3) (1 6)) #+END_SRC #+RESULTS: | one | two | |-+-| | 1 | 3 | | 1 | 6 | --8<---cut

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread Ihor Radchenko
> If have better solution, I totally agree with that. In the current state, your patch will be pretty much useless for users without technical background. url-retrieve-synchronously + save-buffer should be a better default. It will be available for all users. Ideally, there should be several

Re: [BUG] All drawers except property drawers are open at startup

2020-05-28 Thread Matthew Lundin
Nicolas Goaziou writes: > Matt Lundin writes: > >> All drawers default to open at startup except for property drawers. This >> includes :LOGBOOK: drawers, which can be quite long and block view of an >> entry. > > I think all drawers are opened at startup, including property drawers. > >> I ran

[PATCH] ob-sql: Respect database param when using dbconnection

2020-05-28 Thread Daniel Kraus
Hi, I use ob-sql with the :dbconnection param so I don't have my username and password in my org file. But often I don't want to use the default database from the dbconnection alist but rather specify it explicitly with :database. Attached is a patch that fixes this. Thanks, Daniel >From

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ihor Radchenko writes: >> If have better solution, I totally agree with that. > > In the current state, your patch will be pretty much useless for users > without technical background. > > url-retrieve-synchronously + save-buffer should be a

[PATCH] [FEATURE] Re: `with` as a list.

2020-05-28 Thread Mario Frasca
I have added a couple of unit tests to the suite, describing the two functions I added.  I have no unexpectedly failing tests now. I'm explicitly cc-ing Eric Schulte because he's in the header for org-plot.el, and —missing the unit tests for that source— I hope he can assist me not breaking

Re: org-babel :colnames yes

2020-05-28 Thread ian martins
I figured out that inserting `hline' works for some languages. consistent behavior with ":colnames yes" would be ideal but this solves my problem. #+BEGIN_SRC elisp '((one two) hline (1 3) (1 6)) #+END_SRC On Thu, May 28, 2020 at 7:48 AM ian martins wrote: > Hello, I'm trying to figure out

Re: Bug: ob-python mangles multiline :var values [9.3.6 (release_9.3.6-397-ga089600)]

2020-05-28 Thread Jack Kamm
An update on this -- I decided to revert my fix for multiline Python variables. I left the unit test I added for this, but marked it as expected to fail. I'll try to submit a proper fix for this soon. However I've been swamped at work so I can't promise when (hopefully a couple weeks). In the

Re: Help speeding up Org iCal export

2020-05-28 Thread Ken Mankoff
Hi Nicolas, Thank you for providing suggestions about the appropriate tool. I've profiled it, examined the variables you suggested, but am not sure what next steps to take. I hope it is OK that I post questions about this on this list... On Thu, May 28, 2020 at 5:17 AM Nicolas Goaziou wrote: >

missing packages

2020-05-28 Thread Colin Baxter
Hello, I notice a few packages seem to be absent from the org-mode dev tree, e.g., org-bibtex.el and org-bbdb.el. Yet nothing I've seen in ORG-NEWS suggests that they have been discontinued. I am probably not understanding something rather elementary. Best wishing -- Colin Baxter URL:

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread Matthew Lundin
Ihor Radchenko writes: > It does not mean that attaching URL directly is not worth including > into org. This sounds pretty common use case, especially considering > the number of packages providing similar feature. You mentioned > org-board, but there is also org-download and org-web-tools. My

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread Ihor Radchenko
> My uneasiness has more to do with the specificity of the dependence on > monolith and the way that is hard-coded into the patch. When it comes to > patches, I think priority should go to those that are configurable, > accessible, and useful for everyone as opposed to those that have > hard-coded

Re: org table: one column of random numbers (but natural ones)

2020-05-28 Thread Uwe Brauer
> Le 27/05/2020 à 22:40, Uwe Brauer a écrit : > What about: > #+TBLFM: $4=random($1);f0 > In row 67 you would have a random integer in the range [0..67) > f0 format removes any fractional part leaving only an integer number Aha thanks, a minor thing, which I thank, cannot be

Re: missing packages

2020-05-28 Thread Kyle Meyer
Colin Baxter writes: > I notice a few packages seem to be absent from the org-mode dev tree, > e.g., org-bibtex.el and org-bbdb.el. Yet nothing I've seen in ORG-NEWS > suggests that they have been discontinued. I am probably not > understanding something rather elementary. In Org 9.3,

Re: org table: one column of random numbers (but natural ones)

2020-05-28 Thread Stig Brautaset
>> In row 67 you would have a random integer in the range [0..67) >> f0 format removes any fractional part leaving only an integer number > > Aha thanks, a minor thing, which I thank, cannot be really done: > > Is it possible to avoid number repetition? > > So I want a random sequence of

26.3; org-indent-mode's line-prefix text property flickers near overlays

2020-05-28 Thread Kévin Le Gouguec
Hello, The line-prefix text property set by org-indent-mode sometimes vanishes when typing near a line where an overlay is applied. To reproduce: - emacs -Q - C-x C-f repro.org - M-x org-indent-mode - M-: (insert "* heading\ntext") - M-: (let ((ov (make-overlay (point-at-bol) (point-at-bol)))

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread Ihor Radchenko
> I don't know how to implement similar functionality like monolith with > url-retrieve-synchronously + save-buffer. PATCH welcome. Sorry, I missed that the default 'url attach method exists already. > Of course curl and wget is alternative options, just still same problem. Don't > know how to

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Matthew Lundin writes: > Ihor Radchenko writes: > >> My view on this is bare-bones download, in a spirit of org-attach >> itself. There is already 'url method in org-attach-attach, but it is >> hard-coded to url-retrieve-synchronously. It would

Re: Possible fix for :includes header argument in org-babel C source blocks

2020-05-28 Thread Kyle Meyer
Kévin Le Gouguec writes: > BTW, does the change from 44cb98fdb deserve an ORG-NEWS entry? Hmm, my impression from the thread/patch was that it was a plain bug fix, in which case I think the lack of an entry is fine.

Re: Possible fix for :includes header argument in org-babel C source blocks

2020-05-28 Thread Kyle Meyer
Kévin Le Gouguec writes: > Here is a patch to fix the regression: Thanks, applied (6506ea1). > And here is a patch to add a test for the unquoted-single-header case, > since otherwise it's hard to tell whether this behaviour is intentional: Looks good to me. Thanks for taking the time to add

Re: missing packages

2020-05-28 Thread Colin Baxter
Dear Kyle, > Kyle Meyer writes: > Colin Baxter writes: >> I notice a few packages seem to be absent from the org-mode dev >> tree, e.g., org-bibtex.el and org-bbdb.el. Yet nothing I've seen >> in ORG-NEWS suggests that they have been discontinued. I am >> probably not

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread Matthew Lundin
Ihor Radchenko writes: > My view on this is bare-bones download, in a spirit of org-attach > itself. There is already 'url method in org-attach-attach, but it is > hard-coded to url-retrieve-synchronously. It would be handy if user > could configure alternative retrievers (like monolith, wget,

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
I added monolith link to defcustom option docstring now. Update patch again. From 6c667461b45e93059c6f801e485f7da4bfc3606c Mon Sep 17 00:00:00 2001 From: stardiviner Date: Fri, 29 May 2020 09:46:15 +0800 Subject: [PATCH] * org-attach.el: add a new command to archive web page *

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread Ihor Radchenko
> As I said, PATCH welcome, I admired many times I don't have ability to build a > complex archive functionality on url.el or wget or curl. I have found the following solution [1] using wget: wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL This will not bundle the page into a single

Re: org-babel :colnames yes

2020-05-28 Thread ian martins
Nick Dokos wrote: > Would this work for you? > > #+BEGIN_SRC elisp :colnames yes > '((one two) hline (1 3) (1 6)) > #+END_SRC > Yes, that works. Thanks.

[PATCH updated] Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
I adopted some part of my patch, and make function name and docstring more clear after this mail thread long discussion. From 7e682ccd8d0d2a567de1bbbc0c8e02ee59e156bb Mon Sep 17 00:00:00 2001 From: stardiviner Date: Fri, 29 May 2020 09:46:15 +0800 Subject: [PATCH] * org-attach.el: add a

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Thanks, Ihor, your explanation is helpful a lot!!! Ihor Radchenko writes: >> My uneasiness has more to do with the specificity of the dependence on >> monolith and the way that is hard-coded into the patch. When it comes to >> patches, I think

Re: Possible fix for :includes header argument in org-babel C source blocks

2020-05-28 Thread Brandon Guttersohn
Hey Kévin, Apologies for the regression, and thank you for fixing it. I neglected to run the tests before suggesting that fix -- I'll try not to do that again.. I can at least confirm that the patch wasn't intended to change how C-header-files are specified in the org-babel-block-header. The

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread Samuel Wales
i keep wondering if this is similar to the idea of making all external links cached. or specified ones. using a specified cache dir. for example, you could have various external links in your html-exportable document, and run a command to cache them all.

Re: [Feature] add a new org-attach dispatcher command to offline save web page

2020-05-28 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Matthew Lundin writes: > Ihor Radchenko writes: > >> It does not mean that attaching URL directly is not worth including >> into org. This sounds pretty common use case, especially considering >> the number of packages providing similar feature.