[O] bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-06-02 Thread Dmitrii Korobeinikov
Dear Ihor, > Regarding the question about buffer-lens interaction. Let's take even > more complicated example: To run the command, the user hits some key > combination, which happens to be bound to different commands in the main > buffer and in the lense buffer (i.e. the main buffer is in

[O] bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-05-14 Thread Dmitrii Korobeinikov
Dear Ihor, > Note that indirect buffers always share *all* the contents with the master > buffer. As a result, it may not be easy to make things like flyspell > work on code blocks in org-mode, if these code blocks are treated as > lenses. I tried flyspell w/ different dictionaries on 2 buffers.

[O] bug#35419: bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-05-02 Thread Dmitrii Korobeinikov
> I see lens to be useful for the eev mode, too. Never heard of eev, but judging by some demos, it's a way to execute elisp commands interactively. Something like stitching blocks of commands together, or the data to operate on, or embedding a target such as a shell in the same buffer is the

[O] bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-05-02 Thread Dmitrii Korobeinikov
I found a clarification on how mmm-mode works. https://github.com/polymode/polymode/issues/187 > mmm-mode also allows having multiple major modes depending on cursor position in the buffer. However, it does not fully replace major mode locally. This mode is only taking care about keymap, menu,

[O] bug#35419: bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-05-03 Thread Dmitrii Korobeinikov
uld be useful to apply the > correct mode the block of code at point. > > Dmitrii Korobeinikov writes: > > >> I see lens to be useful for the eev mode, too. > > > > Never heard of eev, but judging by some demos, it's a way to execute > elisp > > command

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-07-03 Thread Dmitrii Korobeinikov
-4.6.3, py-1.8.0, pluggy-0.12.0 > rootdir: /app > collected 3 items > > utils/test_square.py ... > [100%] > > === 3 passed in 0.08 seconds > === > > > > > > > On Wed, Apr 24, 2019 at 2:19 PM Dmitrii Korobe

[O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Dmitrii Korobeinikov
For your convenience, I have attached this e-mail as an org-mode file. When I write several source blocks, which depend on one another, I tend to debug them one by one. So, I write this function and test it: #+NAME: square #+BEGIN_SRC python square = lambda x: x * x return square(5)

[O] [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-04-24 Thread Dmitrii Korobeinikov
I have written a proposal for buffer lenses which could prove useful in Org-mode, especially for interacting with code. If you are interested, please, see this link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35419

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-04-24 Thread Dmitrii Korobeinikov
not seem that big. So, I understand that. I have proposed buffer lenses today and they seem like something that can solve the issue from the user side. Hopefully they will get some traction. пн, 22 апр. 2019 г. в 23:31, Berry, Charles : > > > > On Apr 22, 2019, at 10:15 AM, Dmitrii

[O] bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-04-25 Thread Dmitrii Korobeinikov
:37, Noam Postavsky : > Dmitrii Korobeinikov writes: > > > * Implementation > > > > I am not familiar with Emacs internals to say what's feasible of the > > proposed structure. > > Have you looked at Phil Lord's lentic package? I think it implements a > lot of

[O] bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-04-25 Thread Dmitrii Korobeinikov
Dear Ihor, > Another use case for me is to speed up agenda creation. > I usually do not like to split my org files into too many. However, it > results in very large and slow org buffers later. If I can store some > parts of the org files externally and only show them if some condition > is met

[O] bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2019-04-25 Thread Dmitrii Korobeinikov
чт, 25 апр. 2019 г. в 23:52, Philipp Stephani : > Am Do., 25. Apr. 2019 um 10:41 Uhr schrieb Dmitrii Korobeinikov > : > > I have imagined that at the low level there is an actual data structure > that keeps the raw textual data and it could be directly shared by multiple > b

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Dmitrii Korobeinikov
you want the :epilogue header argument. See inline. > > > On Apr 22, 2019, at 2:00 AM, Dmitrii Korobeinikov > wrote: > > > > When I write several source blocks, which depend on one another, I tend > to debug them one by one. > > > > So, I write this fu

Re: [O] org-todo & empty title -> misaligned tags

2019-08-12 Thread Dmitrii Korobeinikov
Thanks! пн, 12 авг. 2019 г. в 15:37, Carsten Dominik : > Fixed, thank you for the report. > > Carsten > > On Sun, Aug 11, 2019 at 1:27 PM Dmitrii Korobeinikov > wrote: > >>Reproduction steps (tested w/ emacs -Q): >>Version: GNU Emacs 26.2 (build 1,

[O] org-todo & empty title -> misaligned tags

2019-08-11 Thread Dmitrii Korobeinikov
Reproduction steps (tested w/ emacs -Q): Version: GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-04-13 1. M-x org-mode 2. (insert "* ") 3. M-x org-set-tags-command, enter any tag name 4. M-x org-todo The tag jumps right next to the asterisk

Re: [O] Duplicate tags

2019-09-03 Thread Dmitrii Korobeinikov
BTW one possible behavior is to move the old tag to the end, providing both feedback and function вт, 3 сент. 2019 г. в 16:29, Dmitrii Korobeinikov : >org-set-tags-command allows duplicates. Example: >- M-x org-set-tags-command -> "tag" >- M-x org-se

[O] Duplicate tags

2019-09-03 Thread Dmitrii Korobeinikov
org-set-tags-command allows duplicates. Example: - M-x org-set-tags-command -> "tag" - M-x org-set-tags-command -> "tag" Result: * Title:tag:tag: I think it would be handy to prevent this. Not unimaginable that someone could use this as a feature, though, in which case, a

[O] [Performance] org-indent-mode slows down checklists

2019-09-03 Thread Dmitrii Korobeinikov
Reproduction steps: 1. emacs -Q 2. (progn (end-of-buffer) (insert "* Section [0/0]\n") (dotimes (n 150 nil) (insert "- [ ] item\n")) (org-mode)) 3. Try C-c on an item 4. turn on (org-indent-mode) and C-c gets noticably slow(er) Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @

[O] Disallow empty tags

2019-09-02 Thread Dmitrii Korobeinikov
Creating an empty tag renders TAB-completion useless. Example: * Title :a::b: Pressing TAB in org-set-tags-command will now insert a colon `:`, which is quite puzzling to see. I thought something was wrong w/ my bindings till I noticed this was happening only in one of my files. Can such

Re: [O] Both italic and bold at the "edges": a bug?

2019-09-06 Thread Dmitrii Korobeinikov
Hi, Yes, how emacs renders this is what I meant. Regards, Dmitrii сб, 7 сент. 2019 г. в 01:37, Nicolas Goaziou : > Hello, > > Dmitrii Korobeinikov writes: > > >Here is what I mean. Everything in these will be italic-only: > > > >- /*italic, not bold

[O] Both italic and bold at the "edges": a bug?

2019-09-06 Thread Dmitrii Korobeinikov
Here is what I mean. Everything in these will be italic-only: - /*italic, not bold*/ - /italic, *not bold*/ - /*italic*, not bold/ Is there a reason for not allowing multiple highlighters to start in the same place? Regards, Dmitrii.

[O] Provide org-insert-subitem

2019-09-22 Thread Dmitrii Korobeinikov
In short: org-insert-heading -> org-insert-subheading org-insert-todo-heading -> org-insert-todo-subheading org-insert-item -> ? Maybe should provide org-insert-subitem for consistency? Regards, Dmitrii

[O] [BUG] Tags misalign while editing heading

2019-09-22 Thread Dmitrii Korobeinikov
When I edit a heading (the title), if I add characters, the tags auto-align. But if I remove text, tags shift left and so are no longer aligned. Regards, Dmitrii

[O] Command to edit the heading?

2019-09-22 Thread Dmitrii Korobeinikov
There is the org-set-tags for tags, but is there anything for the title (org-set-heading/title)? Would be nice to have. Regards, Dmitrii

Re: Truncate lines option on file startup

2019-11-11 Thread Dmitrii Korobeinikov
-startup-truncated nil) is needed for the notruncate option to work. Plus the stuff in the org-mode-hook runs after the STARTUP lines, so beware that it can also cause interference. Thanks all! вс, 10 нояб. 2019 г. в 18:47, Fraga, Eric : > On Sunday, 10 Nov 2019 at 18:12, Dmitrii Korobeinikov wrote: >

Re: Truncate lines option on file startup

2019-11-11 Thread Dmitrii Korobeinikov
d while giving flexibility to conditionally set truncation in .dir-locals.el and STARTUP will always work. пн, 11 нояб. 2019 г. в 14:40, Dmitrii Korobeinikov : > > # -*- truncate-lines: t; -*- > > This works nicely, thank you! Never knew about these. > > By the way, I got the STARTUP to funct

Truncate lines option on file startup

2019-11-10 Thread Dmitrii Korobeinikov
Hi, Thought it would be handy to be able to do this: #+STARTUP: truncate and #+STARTUP: notruncate Modifying org-startup-options manually wouldn't work as it describes how to change a value of a variable or push onto a list, but no syntax for function calls and for this to work

Good way to pre/view LaTeX-lines?

2019-10-27 Thread Dmitrii Korobeinikov
Hi, I am looking for a comfortable way to view LaTeX (for math formulas) in org-mode. I am not working with whole LaTeX files however, but rather with occasional lines of LaTeX inside an org-mode file. Good possibilities could be: 1. rendering a LaTeX-line *in the minibuffer* (when a cursor is

Re: Good way to pre/view LaTeX-lines?

2019-10-27 Thread Dmitrii Korobeinikov
окт. 2019 г. в 21:07, William Denton : > On 27 October 2019, Dmitrii Korobeinikov wrote: > > > I am looking for a comfortable way to view LaTeX (for math formulas) in > > org-mode. > > This shows how: > > https://orgmode.org/org.html#Previewing-LaTeX-fragments > >

Re: Good way to pre/view LaTeX-lines?

2019-10-29 Thread Dmitrii Korobeinikov
chin: > > https://ivanaf.com/Automatic_Latex_Fragment_Toggling_in_org-mode.html > > > *Ivan Tadeu Ferreira Antunes Filho* > > > On Sun, Oct 27, 2019 at 3:29 PM Dmitrii Korobeinikov > wrote: > >> > https://orgmode.org/org.html#Previewing-LaTeX-fragments >

Re: Good way to pre/view LaTeX-lines?

2019-10-29 Thread Dmitrii Korobeinikov
** Suggest trying these free software packages too > > apt-get install imaxima > apt-get install maxima > apt-get install maxima-emacs > apt-get install texlive > apt-get install texlive-math-extra > > > > > > > > On Sun, Oct 27, 2019 at 3:29 PM Dmitrii Korobeini

Re: [O] [BUG] Tags misalign while editing heading

2019-09-25 Thread Dmitrii Korobeinikov
19 г. в 09:00, David Masterson : > Dmitrii Korobeinikov writes: > > > When I edit a heading (the title), if I add characters, the tags > auto-align. > > But if I remove text, tags shift left and so are no longer aligned. > > Need much more information about your setup.

Re: Provide org-insert-subitem

2020-02-02 Thread Dmitrii Korobeinikov
when the items in the list are seperated with a newline. That's an awful lot of combinations for such a basic task, which I do quite often. > WDYT? To me, these functions seem fundamental enough to warrant the according out-of-the-box experience. Best, Dmitrii вс, 2 февр. 2020 г. в 13:49, Basti

Re: [BUG] Tags misalign while editing heading

2020-02-02 Thread Dmitrii Korobeinikov
Hi Bastien, Sure, filed it here https://github.com/emacs-evil/evil/issues/1264 Best, Dmitrii вс, 2 февр. 2020 г. в 03:30, Bastien : > > Hi Dmitrii, > > Dmitrii Korobeinikov writes: > > > Oh, I forgot about the "-Q"... Anyway, I figured the behavio

Re: Command to edit the heading?

2020-02-02 Thread Dmitrii Korobeinikov
a big deal since then. Best, Dmitrii вс, 2 февр. 2020 г. в 03:31, Bastien : > > Hi Dmitrii, > > Dmitrii Korobeinikov writes: > > > There is the org-set-tags for tags, but is there anything for the > > title (org-set-heading/title)? > > Would be nice to have. >

Re: org-clock misleading description for a prompt option

2020-04-10 Thread Dmitrii Korobeinikov
cause I am running an older version of org-mode (9.3.6.) пт, 10 апр. 2020 г. в 10:47, Kyle Meyer : > > Dmitrii Korobeinikov writes: > > > When you run org-clock-in and then restart emacs, clocking in again > > will show a prompt asking what to do w/ the unfinished entr

Re: org-clock misleading description for a prompt option

2020-04-11 Thread Dmitrii Korobeinikov
Alright, I see. Thanks for the explanations! сб, 11 апр. 2020 г. в 03:40, Kyle Meyer : > > Dmitrii Korobeinikov writes: > > >> That seems confusing to me as well (at least being the not-advanced > >> clocker that I am). I suspect the confusion comes from the diff

Folding headings which contain only blank lines

2020-04-09 Thread Dmitrii Korobeinikov
Hi! When everything is folded (e.g. on startup), ellipses show after every heading which has anything in it at all. This is true as well for the headings containing only one or more blank lines. And while you can unfold such lines, you can't fold them back unless you use Shift-Tab. This appears

org-clock misleading description for a prompt option

2020-04-09 Thread Dmitrii Korobeinikov
Hi! When you run org-clock-in and then restart emacs, clocking in again will show a prompt asking what to do w/ the unfinished entry. "i" means "ignore this question; the same as keeping all the idle time". However, a new entry is created if this is chosen without doing anything about unfinished

bug#35419: [O] [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter)

2020-04-05 Thread Dmitrii Korobeinikov
Thank you for the insight and the references! Quite useful to learn about this stuff. вс, 5 апр. 2020 г. в 07:46, Dmitry Gutov : > > Hi! > > Some late clarifications about mmm-mode. > > On 26.04.2019 00:00, Dmitrii Korobeinikov wrote: > > > A lot of the functionali

Re: Preventing org-cycle from scrolling the buffer

2020-04-03 Thread Dmitrii Korobeinikov
р. 2020 г. в 21:29, Marco Wahl : > > Dmitrii Korobeinikov writes: > > When calling org-cycle on a collapsed section which contains a lot of > > text, the headline is adjusted to the top of the page. Collapsing it > > doesn't revert the scroll, which makes it hard to quickly

Preventing org-cycle from scrolling the buffer

2020-03-19 Thread Dmitrii Korobeinikov
HI all, When calling org-cycle on a collapsed section which contains a lot of text, the headline is adjusted to the top of the page. Collapsing it doesn't revert the scroll, which makes it hard to quickly peek at what's in the section without getting disoriented. Is there a flag or some other way

Re: auto-completion for file paths?

2020-09-03 Thread Dmitrii Korobeinikov
> org-insert-link (C-c C-l) will read a file name from you if you select > "file:" or call it with a prefix argument. This will do, thanks! ср, 2 сент. 2020 г. в 03:08, Kyle Meyer : > > Dmitrii Korobeinikov writes: > > > Hi, all! > > > > Is t

Re: Preventing org-cycle from scrolling the buffer

2020-09-06 Thread Dmitrii Korobeinikov
Hi Bastien, Thank you, both for accepting this and for the fix with the blank line folding! Best, DK сб, 5 сент. 2020 г. в 11:26, Bastien : > > Hi Dmitrii, > > Dmitrii Korobeinikov writes: > > > Nice, I see! > > > >> IDK. AFAICS you are right w

auto-completion for file paths?

2020-09-01 Thread Dmitrii Korobeinikov
Hi, all! Is there a way to provide completions for paths [[file:suggest/completions/here]]? Best, DK

Re: org.elc failed to define function orgstruct-mode

2020-05-31 Thread Dmitrii Korobeinikov
2020 г. в 22:51, Dmitrii Korobeinikov : > > Hi! > > When I try > > M-x orgstruct-mode > > I get the error: > > command-execute: Autoloading file > /usr/share/emacs/site-lisp/org/org.elc failed to define function > orgstruct-mode > > Org mode version 9.3.6 (rel

org.elc failed to define function orgstruct-mode

2020-05-31 Thread Dmitrii Korobeinikov
Hi! When I try M-x orgstruct-mode I get the error: command-execute: Autoloading file /usr/share/emacs/site-lisp/org/org.elc failed to define function orgstruct-mode Org mode version 9.3.6 (release_9.3.6-449-gb99357 @ /usr/share/emacs/site-lisp/org/) GNU Emacs 26.3 (build 1,

Re: org.elc failed to define function orgstruct-mode

2020-06-01 Thread Dmitrii Korobeinikov
> OrgStruct mode is no longer provided in Org. I see, thanks! PS Just found out about outshine and orgalist, gonna check them out. пн, 1 июн. 2020 г. в 13:31, Nicolas Goaziou : > > Hello, > > Dmitrii Korobeinikov writes: > > >> M-x orgstruct-mode > > >

Re: Folding headings which contain only blank lines

2020-10-23 Thread Dmitrii Korobeinikov
> was trying to find an example of the issue fixed by ee3c3b55. Dmitrii, > did ee3c3b55 solve the issue on you reported? Hi, Kyle, I haven't checked it, but since several people reported that it wasn't working for them, I decided to forego the trouble of installing it myself (I am using the

Re: Folding headings which contain only blank lines

2020-10-24 Thread Dmitrii Korobeinikov
orbid issue here, btw, is that "another one" isn't folded initially at all... сб, 24 окт. 2020 г. в 08:43, Kyle Meyer : > > Dmitrii Korobeinikov writes: > > >> was trying to find an example of the issue fixed by ee3c3b55. Dmitrii, > >> did ee3c3b55 solve t