Re: [O] [RFC] The "c" Org macro

2017-05-22 Thread Kaushal Modi
nserting a zero-width space before the dot. So this makes me think of the use of auto-filling in my regular org files... What if auto-filling happened to create a case like this where a line began with a number immediately followed by a period?! Though ending sentences with a number is rare, I just need to be cautious about this. > -- Kaushal Modi

Re: [O] [RFC] The "c" Org macro

2017-05-22 Thread Kaushal Modi
27;t allow auto-fill to put n macros at BOL "\\)\\)") org-element--object-regexp (mapconcat #'identity With that, now the MWE auto-fills as = If I wish, I can set that counter value to anything I want, like 7463: {{{n(, 7463)}}}. = instead of = If I wish, I can set that counter value to anything I want, like 7463: {{{n(, 7463)}}}. = and that fixes this problem. -- Kaushal Modi

Re: [O] [RFC] The "c" Org macro

2017-05-22 Thread Kaushal Modi
t;\\|" +;; n Macro +"\\(?:{{{n\\b\\)" ;Don't allow auto-fill to put n macros at BOL "\\)\\)") org-element--object-regexp (mapconcat #'identity -- Kaushal Modi

Re: [O] [RFC] The "c" Org macro

2017-05-22 Thread Kaushal Modi
o > `fill-nobreak-predicate', like we already do for > `org-fill-line-break-nobreak-p' or > `org-fill-paragraph-with-timestamp-nobreak-p'. > > I will add it to the "n" macro patch. > I didn't know of those. Thanks! -- Kaushal Modi

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-05-23 Thread Kaushal Modi
it is straightforward to extend the code to remote file names. > > `default-directory' is slightly more tricky, as it is used to properly > read recursively setup files with relative file names. I think our best > bet is to to check if current file name is local or remote, and ignore > `default-directory' setting in the latter case. > Do we need to update the code using org-file-contents in these places: lisp/org-capture.el 692: (setq txt (org-file-contents file)) lisp/ox-man.el 519: (setq code-block (org-file-contents out-file)) 764:(setq code-block (org-file-contents out-file)) contrib/lisp/ox-groff.el 1084: (setq code-block (org-file-contents out-file)) 1521: (setq code-block (org-file-contents out-file)) -- Kaushal Modi 0001-Allow-org-file-contents-to-fetch-file-contents-from-.patch Description: Binary data

Re: [O] Bug: link formating problem [9.0.5 (9.0.5-elpaplus @ /Users/mistkafka/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-05-24 Thread Kaushal Modi
he "," in there will also be highlighted as a link. So it would look ;; as if the "1,2" string pointed to a single link! ;;But without `plain' as part of this list, the "1" and "2" strings will ;; look like separate links (as should be the case), as the "," will not be ;; highlighted as a link. (setq org-highlight-links (delete 'plain org-highlight-links)) -- Kaushal Modi

Re: [O] popup buffer showing buffers headings?

2017-05-25 Thread Kaushal Modi
That said, for the purpose of jumping to headings, I like the newly added counsel-org-goto command added to the counsel package. -- Kaushal Modi

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-05-25 Thread Kaushal Modi
;update"? > For the listed locations of org-file-contents instances in my earlier email, I made no change as I think that those would work the same as before after this commit is applied. I just wanted you to verify if that's the case. The only "update" required around org-file-contents was where expand-file-name was used or default-directory was set (as my patch shows). Thanks! > -- Kaushal Modi

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-05-25 Thread Kaushal Modi
I have attached an updated and rebased patch with most of your suggestions implemented. Comments below. On Thu, May 25, 2017 at 7:43 AM Kaushal Modi wrote: > On Thu, May 25, 2017, 6:15 AM Nicolas Goaziou > wrote: > >> Interactive functions do not have double-dashes in their

Re: [O] [RFC] The "c" Org macro

2017-05-25 Thread Kaushal Modi
On Thu, May 25, 2017 at 6:42 AM Nicolas Goaziou wrote: > > Pushed. Works great! Thanks for fixing the auto-filling issue too. -- Kaushal Modi

[O] Fix org.el compilation warnings

2017-05-25 Thread Kaushal Modi
Hello, I was trying to fix the org.el compilation warnings. I could fix just this one: >From 4e2de052dd05e66ed71ce070e4413859e2c13238 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Thu, 25 May 2017 18:24:34 -0400 Subject: [PATCH] org: Silence byte-compiler * lisp/org.el (org-agenda-incl

Re: [O] Fix org.el compilation warnings

2017-05-25 Thread Kaushal Modi
On Thu, May 25, 2017, 7:59 PM Kyle Meyer wrote: > Kaushal Modi writes: > > > I was trying to fix the org.el compilation warnings. > > I don't see any compiler warnings when I run 'make compile' with either > master (2960dc971) or maint (89bd7ad87) on Emacs 25

Re: [O] Fix org.el compilation warnings

2017-05-26 Thread Kaushal Modi
byte-compile-arglist-warn function that outputs this warning.. but couldn't understand the logic for sig1 in there. -- Kaushal Modi

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-05-26 Thread Kaushal Modi
nfo "(org) The very busy C-c C-c key"). > Done! > OK. Then the following at least doesn't have the overhead of creating > a string: > Integrated. Thanks! Also, mind the full stop at the end of the comments. > Will do. -- Kaushal Modi 0001-Allow-org-file-contents-to-fetch-file-contents-from-.patch Description: Binary data

Re: [O] Fix org.el compilation warnings

2017-05-26 Thread Kaushal Modi
, for true compilation checks, I'll start using make single. Thanks. > -- Kaushal Modi

Re: [O] Bug: link formating problem [9.0.5 (9.0.5-elpaplus @ /Users/mistkafka/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-05-27 Thread Kaushal Modi
the > end if you haven't signed papers yet. > Thanks. After the fix in http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=2d29269bb1b9af08011e091913798b6598e4b156, I don't need that org-highlight-links workaround any more. -- Kaushal Modi

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-05-28 Thread Kaushal Modi
On Sun, May 28, 2017, 3:36 AM Nicolas Goaziou wrote: > Hello, > > Kaushal Modi writes: > > > I have attached a patch, rebased to master and with all suggestions > > implemented. > > Thank you. > > > There are some additional changes in the patch this ti

[O] Minor addition to Speed Keys info node

2017-06-07 Thread Kaushal Modi
Hello, Here is a patch with some info added to make Speed Keys more accessible to users (inspired by [1]). >From 43ff4c3da12a8ce0333c65372ab8ba51964e7a2a Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Wed, 7 Jun 2017 11:34:39 -0400 Subject: [PATCH] Mention org-speed-command-help in Sp

Re: [O] Minor addition to Speed Keys info node

2017-06-07 Thread Kaushal Modi
The patch is rebased off the maint branch. On Wed, Jun 7, 2017 at 11:39 AM Kaushal Modi wrote: > Hello, > > Here is a patch with some info added to make Speed Keys more accessible to > users (inspired by [1]). > -- Kaushal Modi

Re: [O] Minor addition to Speed Keys info node

2017-06-07 Thread Kaushal Modi
ise, LGTM. > Thanks. I was unaware of the --- syntax. Here's the updated patch: >From 1a767fb97b680b9fef5d0fd301c9fcf951b705e3 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Wed, 7 Jun 2017 11:34:39 -0400 Subject: [PATCH] Mention org-speed-command-help in Speed Keys info node * doc/or

Re: [O] Minor addition to Speed Keys info node

2017-06-07 Thread Kaushal Modi
One minor iteration.. I think below reads with a better flow.. WDYT? @kbd{M-x org-speed-command-help}, or @kbd{?} when cursor is at the beginning of an Org headline, shows currently .. Here's the full patch: >From 5886b6f7fe82858ae49b55d409d1baf20942dae8 Mon Sep 17 00:00:00 2001 From:

Re: [O] Minor addition to Speed Keys info node

2017-06-07 Thread Kaushal Modi
to add those.. Did you mean that I need to move those tags closer to where those vars are actually referenced in that node? -- Kaushal Modi

Re: [O] Minor addition to Speed Keys info node

2017-06-07 Thread Kaushal Modi
On Wed, Jun 7, 2017 at 4:44 PM Kaushal Modi wrote: > Did you mean that I need to move those tags closer to where those vars are > actually referenced in that node? > Seems like that was the intention. Also as I am referring to the org-speed-command-help function for the first time in t

Re: [O] Minor addition to Speed Keys info node

2017-06-07 Thread Kaushal Modi
) For future, should I refrain from doing the merges? -- Kaushal Modi

Re: [O] org-link-minor-mode.el broken by recent org maint

2017-06-08 Thread Kaushal Modi
e this one: https://github.com/seanohalpin/org-link-minor-mode Also it hasn't been updated in 5 years; it's from org 7 era. > -- Kaushal Modi

Re: [O] Minor addition to Speed Keys info node

2017-06-08 Thread Kaushal Modi
e. And in the case there are commits that should not be merged to master, you just cherry-pick, right? -- Kaushal Modi

Re: [O] Minor addition to Speed Keys info node

2017-06-08 Thread Kaushal Modi
On Thu, Jun 8, 2017 at 6:50 AM Nicolas Goaziou wrote: > This never happens. Master is a strict superset of maint. > Thanks. That takes care of my merging concerns. -- Kaushal Modi

[O] 6 failing tests on master branch

2017-06-08 Thread Kaushal Modi
(looking-at "P3"))) :value nil)) FAILED 668/734 test-org/forward-paragraph --- I have an unrelated make test question too. If I add a test, say test-org/foo, in order to make learning ert and org test writing faster, it is possible to run just that one test-org/foo and not the whole suite? -- Kaushal Modi

Re: [O] 6 failing tests on master branch

2017-06-09 Thread Kaushal Modi
eproduce. Could you investigate where the spurious "/" comes > from? > Will do. > >FAILED 646/734 test-org/custom-properties > >FAILED 668/734 test-org/forward-paragraph > > These one are related to invisible text. I don't what is going to change > in this area in next Emacs release. > I'll have to leave this for a future debug.. Someone else wants to help out with this? > You can run, e.g., > > BTEST_RE="foo" make test > Thanks! -- Kaushal Modi

Re: [O] make test is failing? [ob-fortran stuff]

2017-06-09 Thread Kaushal Modi
an interpreter in there somewhere. > > Yours, > Christian > > Kaushal Modi writes: > > > Hi all, > > > > I cloned a fresh copy of org-mode and ran "make test" for the first time. > > > > The following are failing: > > > > 3 une

Re: [O] 6 failing tests on master branch

2017-06-09 Thread Kaushal Modi
On Fri, Jun 9, 2017 at 10:26 AM Kaushal Modi wrote: > This one should be easy to debug since >> >> (org-export-file-uri "/myself@some.where:papers/last.pdf") >> >> is easy to reproduce. Could you investigate where the spurious "/" comes >> f

Re: [O] 6 failing tests on master branch

2017-06-09 Thread Kaushal Modi
On Fri, Jun 9, 2017 at 12:02 PM Michael Albinus wrote: > Kaushal Modi writes: > > The stronger Tramp file name syntax requires now a method. Something > like "/ssh:myself@some.where:papers/last.pdf". This is backward > compatible with Emacs 25, 24, etc pp. >

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-06-09 Thread Kaushal Modi
for any file. > Otherwise, LGTM. Would you want to throw in some tests? You can use > cl-letf to bind `url-retrieve-synchronously' to a function returning > a buffer containing some dumb (valid or invalid) output. > Done! I, though used invalid URLs in the test. (If they become valid at some point in distant future (I doubt), then we can update the test :)) -- Kaushal Modi 0001-Allow-org-file-contents-to-fetch-file-contents-from-.patch Description: Binary data

Re: [O] 6 failing tests on master branch

2017-06-09 Thread Kaushal Modi
which is no longer a valid syntax. > Here's a patch rebased off maint (as it's just test and manual change with edits to a backward compatible Tramp syntax). There were some alignment issues in that External links section. So I have fixed that too. -- Kaushal Modi 0001-Update-remote-f

Re: [O] 6 failing tests on master branch

2017-06-09 Thread Kaushal Modi
On Fri, Jun 9, 2017 at 4:05 PM Nicolas Goaziou wrote: > Hello, > > Kaushal Modi writes: > > > Here's a patch rebased off maint (as it's just test and manual change > with > > edits to a backward compatible Tramp syntax). > > LGTM. > > Thank

Re: [O] mathjax

2017-06-11 Thread Kaushal Modi
//orgmode.org/cgit.cgi/org-mode.git/commit/?h=maint&id=842a75828f5e16412fdab5180164eda27e971e0d So all the org-mode updates on Org Elpa or Melpa since then have that in effect, and even the releases starting with version 9.0.6. - What's your org version? - What do you see when you do C-h v org-html-mathjax-options ? -- Kaushal Modi

Re: [O] mathjax

2017-06-12 Thread Kaushal Modi
> is in the detail. > Glad you got it sorted out! Adam did some awesome crystal ball debugging :) -- Kaushal Modi

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-06-12 Thread Kaushal Modi
I have attached the same patch with one more test; rebased to master. On Fri, Jun 9, 2017 at 12:59 PM Kaushal Modi wrote: > I have attached the updated patch, rebased to master. > -- Kaushal Modi 0001-Allow-org-file-contents-to-fetch-file-contents-from-.patch Description: Binary data

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-06-13 Thread Kaushal Modi
))) > (unwind-protect > (cl-letf (((symbol-function 'url-retrieve-synchronously) > (lambda (&rest _) >(with-current-buffer buffer (insert "HTTP 200 > OK\n\nfoo")) > buffer))) > (org-file-conten

Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-06-13 Thread Kaushal Modi
On Tue, Jun 13, 2017 at 5:32 PM Nicolas Goaziou wrote: > > I have attached the revised patch. > > LGTM. Thank you for the work! > Yay! Pushed to master. Thanks for the super reviews. It was a great learning experience. -- Kaushal Modi

[O] Backward incompatible outline-invisible-p change in emacs master for Org (Was: 6 failing tests on master branch)

2017-06-14 Thread Kaushal Modi
find that an "org-invisible-p" did exist back then, but it was replaced with outline-invisible-p in 2011 ( http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=84d7165d74a5061413168af435d61453be217933 ). Looks like that might need reverting. I also find an org-invisible-p2 function, but it's not clear why it does a (backward-char 1) before doing invisibility check.. and that too eventually relies on outline-visible-p. (Turns out this function has a long history: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=93a4128a6fe47b4e05c0a7cb3ec14878b41d6000 ) I am copying Bastien and Paul as they would know the history behind the above referenced emacs master commit. -- Kaushal Modi

Re: [O] Backward incompatible outline-invisible-p change in emacs master for Org (Was: 6 failing tests on master branch)

2017-06-14 Thread Kaushal Modi
On Wed, Jun 14, 2017 at 10:56 AM Kaushal Modi wrote: > One solution would be to have a new function "org-invisible-p" that > restores the old definition of outline-invisible-p. Interestingly I find > that an "org-invisible-p" did exist back then, but it was replaced

Re: [O] Backward incompatible outline-invisible-p change in emacs master for Org

2017-06-14 Thread Kaushal Modi
n-nil for *any* invisible property. So that commit breaks org's expectation. This looks fine, Thanks. > but I'd rather revert the faulty Emacs commit if > it is not necessary. > > Until Paul enlighten us, I'll have a deeper look. > After reviewing debbugs 24073, the commit looks correct for emacs master and outline package. WDYT? -- Kaushal Modi

Re: [O] [RFC] The "c" Org macro

2017-06-14 Thread Kaushal Modi
25, 2017 at 2:31 PM Kaushal Modi wrote: > On Thu, May 25, 2017 at 6:42 AM Nicolas Goaziou > wrote: > >> >> Pushed. > > > Works great! Thanks for fixing the auto-filling issue too. > -- > > Kaushal Modi > -- Kaushal Modi

[O] Add an optional HOLD argument to "n" Org macro (Was: [RFC] The "c" Org macro)

2017-06-14 Thread Kaushal Modi
r formatted patch, because I don't know if this is the best implementation. Would it be better to rename the RESET option to something more generic, like ARG? That way, - If ARG is a "-" string, the counter value will be held and not incremented. - If ARG is a number represented as a string, it set the NAME counter to that value (like now). - Else if ARG is a non-empty string, it resets the NAME counter to 1 (like now). -- Kaushal Modi

Re: [O] Backward incompatible outline-invisible-p change in emacs master for Org

2017-06-15 Thread Kaushal Modi
On Thu, Jun 15, 2017, 2:19 AM Bastien Guerry wrote: > Kaushal, thanks for the fix, please go > ahead and commit it. > Before I commit this to master, I was thinking that this patch looks safe enough for the maint branch. If there are no objections, I can commit this to maint and merge

Re: [O] Backward incompatible outline-invisible-p change in emacs master for Org

2017-06-15 Thread Kaushal Modi
On Thu, Jun 15, 2017 at 8:40 AM Bastien Guerry wrote: > Kaushal Modi writes: > > > Before I commit this to master, I was thinking that this patch looks > > safe enough for the maint branch. If there are no objections, I can > > commit this to maint and merge to master. &

Re: [O] Add an optional HOLD argument to "n" Org macro

2017-06-15 Thread Kaushal Modi
On Wed, Jun 14, 2017 at 3:47 PM Nicolas Goaziou wrote: > I think it is better since resetting, setting and holding are mutually > exclusive. Thanks. > With tests, please! :) > Of course :) The patch based off latest master is attached. Please review. -- Kaushal Modi 0

Re: [O] Add an optional HOLD argument to "n" Org macro

2017-06-15 Thread Kaushal Modi
On Thu, Jun 15, 2017 at 9:10 AM Kaushal Modi wrote: > The patch based off latest master is attached. Please review. > Here's the same patch with one fix.. support white space around the "-"/"hold" arg. This patch adds a dependency on subr-x library for string-

Re: [O] Add an optional HOLD argument to "n" Org macro

2017-06-15 Thread Kaushal Modi
t. Now ws trimming is done on both args. Revised patch is attached. -- Kaushal Modi 0001-Add-hold-action-to-the-n-macro-and-ws-trim-all-n-mac.patch Description: Binary data

Re: [O] Add an optional HOLD argument to "n" Org macro

2017-06-17 Thread Kaushal Modi
Hello Nicolas, Just pinging to check if the patch in the previous email got missed. Apologies if you were already reviewing it. Thanks. On Thu, Jun 15, 2017, 2:07 PM Kaushal Modi wrote: > On Thu, Jun 15, 2017 at 12:07 PM Nicolas Goaziou > wrote: > >> We do not need this

Re: [O] Add an optional HOLD argument to "n" Org macro

2017-06-17 Thread Kaushal Modi
ed making the when -> and change. Do you want me to fix that in another commit? Though, functionally they are the same, and 'make test' is passing. -- Kaushal Modi

Re: [O] Add an optional HOLD argument to "n" Org macro

2017-06-18 Thread Kaushal Modi
Hello Nicolas, On Sun, Jun 18, 2017, 3:16 AM Nicolas Goaziou wrote: > > As I said, I was only nitpicking. Feel free to fix it, or not. > OK, thanks for confirming. I'll leave out this edit then. > -- Kaushal Modi

Re: [O] Add ob-sclang.el for sclang Org-mode babel support in contrib/

2017-06-19 Thread Kaushal Modi
how a lexically bound package is more portable as there is no implicit reliance on global variables from multiple other packages. > -- Kaushal Modi

Re: [O] How to use noweb reference with argument in other languages?

2017-06-19 Thread Kaushal Modi
I have to have used noweb for the very first time in this recent project: https://raw.githubusercontent.com/kaushalmodi/eless/master/eless.org ; search for ":noweb-ref" in there to get an idea. > -- Kaushal Modi

Re: [O] How to use noweb reference with argument in other languages?

2017-06-20 Thread Kaushal Modi
ame way as we care about the results output by the first block, not how those results are obtained. * noweb reference with argument #+NAME: sh-print-something #+BEGIN_SRC python :var str="foo" :results output print('echo "' + str + '"') #+END_SRC #+RESULTS: sh-print-something : echo "foo" #+BEGIN_SRC shell :results output :noweb yes echo "hello, " <> #+END_SRC #+RESULTS: : hello, : stardiviner -- Kaushal Modi

Re: [O] Controlling new line characters during tangle

2017-06-21 Thread Kaushal Modi
t which point would you like to enforce the new line characters? Can you post a MWE and explain what that it tangles to vs what you'd actually like to see in the tangled file? > -- Kaushal Modi

[O] [PATCH] noweb documentation update (Was: Re: How to use noweb reference with argument..)

2017-06-21 Thread Kaushal Modi
sis to the code block name for arguments, as shown in this example: = On Wed, Jun 21, 2017 at 12:57 AM, Kaushal Modi > wrote: > >> >> I stand corrected; for the stuff that you are doing, I believe the code >> block name needs to go to #+NAME instead of to :noweb-ref. >

Re: [O] [PATCH] noweb documentation update

2017-06-22 Thread Kaushal Modi
o this answer ( https://stackoverflow.com/a/6852104/1219634 ) has reference to "<<", but all it says is that "<<" is an operator.. like in many other languages too. > > +Notice the difference in how they get exported: > > +@example > > +In Python 3, with "str='foo'", "print(str)" would print: > > + > > +foo > > + > > +@end example > > Would it be better to split it into two distinct examples? > Done. -- Kaushal Modi 0001-Improve-noweb-documentation.patch Description: Binary data

Re: [O] [PATCH] noweb documentation update

2017-06-22 Thread Kaushal Modi
A quick update.. the attached patch has minor formatting fixes over the previous one. Please use this patch for review. Thanks. On Thu, Jun 22, 2017 at 3:01 PM Kaushal Modi wrote: > Hello, > > Thanks. My comments are below, and the updated patch is attached. > -- Kaushal Modi

Re: [O] [PATCH] noweb documentation update

2017-06-22 Thread Kaushal Modi
Org. Quotes impedes reading process, IMO. > > WDYT? > > Or would replacing all occurrences of ``noweb'' and noweb with Noweb be better? Exactly! :) OK to push this after that change? Thanks. -- Kaushal Modi

Re: [O] [PATCH] noweb documentation update

2017-06-23 Thread Kaushal Modi
On Fri, Jun 23, 2017, 1:56 AM Nicolas Goaziou wrote: > > Sure, go ahead. Thank you. > Thanks, done. > -- Kaushal Modi

Re: [O] segfault when org-ellipsis is empty

2017-06-26 Thread Kaushal Modi
t, you will get a debbugs number. Please post that number in this thread (for people curious about this bug like me). -- Kaushal Modi

Re: [O] segfault when org-ellipsis is empty

2017-06-26 Thread Kaushal Modi
On Mon, Jun 26, 2017 at 4:19 PM Nicolas Goaziou wrote: > > Meanwhile, we could simply change :safe keyword from `org-ellipsis' to > > (lambda (v) (and (string-or-null-p v) (not (equal v "" > > > WDYT? > But that would still allow the user to use

Re: [O] segfault when org-ellipsis is empty

2017-06-27 Thread Kaushal Modi
; covers my use-cases. tks! > > But that would still allow the user to use setq to set that variable. > > True, but can we always prevent them from shooting themselves in the > foot? > > > > -- Kaushal Modi

Re: [O] keybindings again...

2017-06-29 Thread Kaushal Modi
ng because for some > reason it is not assigned by default: every time I hit ESC S-RET I get ESC > RET only. > It's the limitation of the terminal. If you do C-h c Esc+Shift+Return, Emacs will detect only Esc+Return. So you will see M-RET in the echo area. You probably just need to use some other binding. -- Kaushal Modi

Re: [O] keybindings again...

2017-06-29 Thread Kaushal Modi
th the terminal emulator and not emacs. In any case, it might be better to submit an emacs bug report (M-x report-emacs-bug) requesting this mention in the manual. This node already mentions something on this topic: (elisp) Other Char Bits but just not using the "Ctrl + Shift + .." example. [1]: https://emacs.stackexchange.com/a/13957/115 -- Kaushal Modi

Re: [O] making work by pasting code and examples

2017-06-30 Thread Kaushal Modi
nt-and-mark)) ;; Insert a newline if `beg' is *not* at beginning of the line. ;; Example: You have ^abc$ where ^ is bol and $ is eol. ;; "bc" is selected and https://github.com/kaushalmodi/.emacs.d/blob/4495b6126ddeb20959d438dbe2ad9de50e5ed336/setup-files/setup-org.el#L684-L1229 -- Kaushal Modi

Re: [O] making work by pasting code and examples

2017-06-30 Thread Kaushal Modi
On Fri, Jun 30, 2017 at 2:28 PM Kaushal Modi wrote: Here's a working link: https://github.com/kaushalmodi/.emacs.d/blob/5acb3a4db737df85d1cd7d70c56232ec8a40e8b4/setup-files/setup-org.el#L1121-L1229 (pasted link to an unpublished commit by mistake earlier) -- Kaushal Modi

Re: [O] Org now failing on HTML export

2017-06-30 Thread Kaushal Modi
], [5] [2]: https://emacs.stackexchange.com/a/16616/115 [3]: https://www.reddit.com/r/emacs/comments/6jeu74/getting_error_exporting_org_doc_because_it_has/ [4]: https://github.com/syl20bnr/spacemacs/issues/3246 [5]: https://github.com/yjwen/org-reveal/issues/148 -- Kaushal Modi

Re: [O] causing work by pasting links

2017-06-30 Thread Kaushal Modi
ess [ to write my notes. when i do, > * [[http://link[|]]] i get a completely unexpected reaction. > That also does not happen by default. > you know what i mean, yes? > Yup. It looks like this in emacs -Q: http://i.imgur.com/VEBhMEP.gifv -- Kaushal Modi

Re: [O] causing work by pasting links

2017-06-30 Thread Kaushal Modi
need to be sorry :) I'm glad I could help. -- Kaushal Modi

[O] Parsing property drawers in subtree scope exports

2017-07-01 Thread Kaushal Modi
looked at ox-html.el for hints but that didn't help. In there too, the CUSTOM_ID property drawer (picked one example I knew) is not parsed during subtreep export. How can I do this? Thanks. -- Kaushal Modi

Re: [O] Parsing property drawers in subtree scope exports

2017-07-01 Thread Kaushal Modi
't work when exporting just one sub-tree. Otherwise, you simply need to retrieve it and store it before calling > `org-export-to-file' or whatever. Hmm, will give this a try.. may be look at the pre export hook? Thank you. -- Kaushal Modi

[O] Emacs master now updated to Org 9.0.9 (Was: org-merger questions)

2017-07-03 Thread Kaushal Modi
rns here, thanks for the heads up, Bastien. > > Done, thanks! Emacs master now features Org 9.0.9. > -- Kaushal Modi

Re: [O] org-plus-contrib, where is library-of-babel.org?

2017-07-05 Thread Kaushal Modi
n 2013: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=321f806fafb596b53da7c944267f53f34d05af3e ) -- Kaushal Modi

Re: [O] git question

2017-07-06 Thread Kaushal Modi
result in just a Merge commit in master, with just commit hash updates. But then the merge pointers between master and maint will also be synced. Or is it better to just let it live on master and only be part of > the next major Org version? > -- Kaushal Modi

Re: [O] org-plus-contrib, where is library-of-babel.org?

2017-07-06 Thread Kaushal Modi
e reasoning behind why that file is no longer part of contrib (Copying Bastien to help with this as he was the commit author). > -- Kaushal Modi

Re: [O] [PATCH] Fixed bug in custom timestamps for date ranges.

2017-07-06 Thread Kaushal Modi
for second date > + (when (match-end 3) > + (org-display-custom-time (match-beginning 3) (match-end 3))) > + ;; Always activate custom time for first matched date > + (org-display-custom-time (match-beginning 1) (match-end 1))) > t)) > > (defvar-local org-target-link-regexp nil > -- > 2.13.0 > -- Kaushal Modi

Re: [O] Parsing property drawers in subtree scope exports

2017-07-06 Thread Kaushal Modi
On Sat, Jul 1, 2017 at 12:08 PM Nicolas Goaziou wrote: > Kaushal Modi writes: > > > I didn't follow that. Do you mean that the "EXPORT_" is a special > > prefix? > > I do. See (info "(org) Export settings"). > Thanks! Sorry for not readin

Re: [O] Should i upgrade new emacs?

2017-07-06 Thread Kaushal Modi
nfo mode from within emacs, do "C-h i h" to learn how to use it; it's pretty awesome. -- Kaushal Modi

Re: [O] why prepend "file://" to abs paths in html output?

2017-07-08 Thread Kaushal Modi
On Sat, Jul 8, 2017, 6:35 AM Nicolas Goaziou wrote: > Let me ask this the other way: is there any situation where "file://" > prefix is desirable? > I don't see why "file://" would be useful in html exports (or pdf, md, etc). It is probably needed only in org to org exports. > -- Kaushal Modi

Re: [O] why prepend "file://" to abs paths in html output?

2017-07-10 Thread Kaushal Modi
file names starting with web root > dir as root-relative URL. > In our case, we are delegating that step to Hugo. So Org does the job of content translation from Org to Markdown (plus inline HTML code for figures, etc) "as it is", and Hugo does the job of HTML, RSS, etc. generation, content management (what goes in what directory), link resolution, etc. > -- Kaushal Modi

Re: [O] why prepend "file://" to abs paths in html output?

2017-07-10 Thread Kaushal Modi
e to explicitly state the desired URL path > for the HTML like: > > #+html_url_path: /mysiteroot/images/unicorn.jpg > [[../images/unicorn.jpg]] > As I mention in my MWE, I am actually looking for a solution so that we do not need to specify the "mysiteroot" for each link.. may be just one as a "#+LINK_ROOT". -- Kaushal Modi

Re: [O] why prepend "file://" to abs paths in html output?

2017-07-10 Thread Kaushal Modi
Hello, On Mon, Jul 10, 2017 at 3:54 PM Kaushal Modi wrote: > Hi Nicolas, > > I tried out the patch, and my comments are in the MWE below. > > I have this MWE that explains the "would like to have" vs "what this patch > gives us": > > = >

Re: [O] [RFC] Shrink columns dynamically

2017-07-10 Thread Kaushal Modi
ing the narrowed/hidden state of the columns. -- Kaushal Modi

[O] Deleting org table columns during export (Was: [RFC] Shrink columns dynamically)

2017-07-11 Thread Kaushal Modi
eature. - I liked Nicolas' proposal to have "<#>" as markers for column deletions instead of "/". - If I understand correctly, Michael, you need to send a git formatted patch of your proposal with documentation included? -- Kaushal Modi

Re: [O] [RFC] Shrink columns dynamically

2017-07-11 Thread Kaushal Modi
ble in a document. 2. Alternative: Look at the window width and calculate the factor by which all columns should be narrowed so that the whole table fits the window (Sounds very complicated). -- Kaushal Modi

Re: [O] [RFC] Shrink columns dynamically

2017-07-11 Thread Kaushal Modi
On Tue, Jul 11, 2017 at 3:09 PM Nicolas Goaziou wrote: > Hello, > > Kaushal Modi writes: > > > 1. Need to save the column narrowed state somehow individually for each > > column, specific to a table in a document. > > This is not possible, and is exactly

[O] [PATCH] Refactor org-set-tags arguments for clarity

2017-07-11 Thread Kaushal Modi
patch introduces no functional changes, I have based it off maint. "make test" is still passing with these changes. Can you please review the patch and let me know if it's good for committing? Thanks. -- Kaushal Modi 0001-Clarify-the-purpose-of-org-set-tags-arguments.patch Description: Binary data

Re: [O] ob-sh.el removed in master branch source code?

2017-07-12 Thread Kaushal Modi
ommits. > Can someone explain this? > -- Kaushal Modi

Re: [O] [PATCH] Refactor org-set-tags arguments for clarity

2017-07-13 Thread Kaushal Modi
e test in > "test-org/set-tags"? ;) > Will do. PS: Also, in addition, was thinking of calling JUST-ALIGN ALIGN-ALL instead. With: (defun org-set-tags (&optional ALIGN-ALL ALIGN-ONLY-CURRENT) .. it will be more apparent that they are mutually exclusive args. WDYT? -- Kaushal Modi

Re: [O] [PATCH] Refactor org-set-tags arguments for clarity

2017-07-13 Thread Kaushal Modi
of (org-set-tags t t) in that patch). > WDYT? > The only concern is the one I presented above; doing this will break many personal configs. -- Kaushal Modi

Re: [O] [PATCH] Refactor org-set-tags arguments for clarity

2017-07-13 Thread Kaushal Modi
On Thu, Jul 13, 2017 at 8:37 AM Kaushal Modi wrote: > (defun org-set-tags (&optional align-all align-current) >> "... >> ... >> ALIGN-CURRENT is obsolete and should not be used. When non-nil, >> set ALIGN-ALL to `current'." >>

Re: [O] [PATCH] Refactor org-set-tags arguments for clarity

2017-07-13 Thread Kaushal Modi
On Thu, Jul 13, 2017 at 8:32 AM Nicolas Goaziou wrote: > Kaushal Modi writes: > > > Correct. I was just extrapolating based on that, that people could be > > making similar uses in their configs and packages. > > > > A search like this ( > > > https://gi

Re: [O] why prepend "file://" to abs paths in html output?

2017-07-13 Thread Kaushal Modi
strict definition. ISTM you are looking after link abbreviations. > Hmm. Thanks for that hint. Would it be OK to define backend-specific link abbreviations? I'd like to eventually merge ox-hugo[1] into Org. So would like to stay in line with the conventions. [1]: https://github.com/kaushalmodi/ox-hugo -- Kaushal Modi

Re: [O] why prepend "file://" to abs paths in html output?

2017-07-13 Thread Kaushal Modi
On Thu, Jul 13, 2017 at 8:55 AM Nicolas Goaziou wrote: > Kaushal Modi writes: > > > Hmm. Thanks for that hint. Would it be OK to define backend-specific link > > abbreviations? > > I don't think so. > > Back-end are able to manipulate links the way they want

Re: [O] How to hide a specific subtree during startup?

2017-07-26 Thread Kaushal Modi
l also not expand on TAB; you'll need C-TAB instead. > -- Kaushal Modi

[O] Help resolving CUSTOM_ID based links that point to outside current subtree scope

2017-07-28 Thread Kaushal Modi
sed internal link to some other subtree (Hugo post), and I want to retain the link reference. Hugo would then figure out the rest. What function could I advice and with what to make this happen? Thanks. -- Kaushal Modi

Re: [O] Help resolving CUSTOM_ID based links that point to outside current subtree scope

2017-07-28 Thread Kaushal Modi
est" subtrees are at the same level. So exporting just "Link source" subtree does not 'see' the "Link dest" subtree.) On Fri, Jul 28, 2017 at 3:17 PM Kaushal Modi wrote: > Hello, > > Is there a way to make org-export-resolve-id-link look for link res

<    1   2   3   4   5   6   7   8   9   >