Re: [PATCH] Re: No mathematics in Texinfo exports

2022-06-24 Thread Ihor Radchenko
Rudolf Adamkovič  writes:

> After thinking about this for a while, I realized I do not know when I
> will have the time to implement the proposed improvements.  So I wonder,
> should we merge what we have, with the feature disabled by default using
> the existing customization variable?  That way, some people can enable
> the feature today.

The problem is that people may not know this feature exists and should
be enabled. You still need to add NEWS entry (in any case) and manual
entry (if the feature should be enabled manually).

Best,
Ihor



Re: [PATCH] Avoid treating a number as an enum in manual

2022-06-24 Thread Ihor Radchenko
Stefan Kangas  writes:

> In "(org) Agenda Dispatcher", we have the following incorrect part:
>
>   A prefix argument can be used
> to specify the number of context lines for each match, default is
> @enumerate
> @item
> @end enumerate

Thanks!
Applied onto main via db3870bfc clarifying why enum appeared in the
export.

Best,
Ihor



Re: Eshell automatically inserting spurious tabs

2022-06-24 Thread Ihor Radchenko
Alessandro Bertulli  writes:

> I noticed that, when using eshell, sometimes Emacs inserts some non
> requested tabs. For instance, let's say I have:
> ...

Note that you are writing to the mailing list dedicate to Org mode. Your
issue does not appear relevant. You may have better luck asking
emacs-help mailing list, #emacs IRC, or /r/emacs reddit.

> Since it happens in some specific situations (like inside quotes) and it
> has a defined timeout (0.5 s), I'd say it's triggered by some Emacs
> mode. Can you help me in figuring out which one it's causing this, and
> how to remove it?

You may find https://github.com/Malabarba/elisp-bug-hunter package
useful to find out issues in your config.

Hope it helps.

Best,
Ihor




Re: Missing from Info

2022-06-24 Thread Ihor Radchenko
Colin Baxter  writes:

> > I do not see much improvement using your variant as well.  Also,
> > note that, for example, Elisp manual is full of constructs like
> > what we are discussing.
>
> The line could be removed?

Then we will lose an important information.
I personally do not find the line confusing and I do see similar
terminology being used in other manuals.
So, unless other users also find this line confusing, I do not see any
reason to change the existing wording.

Best,
Ihor



Re: [BUG] manual: confusing example of adding attributes to a link (affiliated keywords)

2022-06-24 Thread Ihor Radchenko
Max Nikulin  writes:

> Org Manual in info "(org) Links in HTML export" 
> https://orgmode.org/manual/Links-in-HTML-export.html has the following 
> example:
>
>> Org files can also have special directives to the HTML export
>> back-end. For example, by using ‘#+ATTR_HTML’ lines to specify new
>> format attributes to  or  tags. This example shows changing
>> the link’s title and style:
>> 
>> #+ATTR_HTML: :title The Org mode homepage :style color:red;
>> [[https://orgmode.org]]
>
> Likely I have seen similar suggestions in this list as well.
>
> Actually it assigns attribute to paragraphs in addition to links. That 
> is why, I think, this fragment should be removed from manual as a 
> confusing one since it gives impression of support of per-link attributes.

Could we clarify that the attributes will apply to the paragraph instead?

> It states that styles and similar stuff may solve the issue with 
> attributes for inline objects. From my point of view it is wrong and in 
> some cases per-object attributes are necessary. While  or  may be added 
> through style, attributes like "alt" for images, "title", "lang", etc. 
> for links are individual.

You examples are pretty much dedicated to html. Do you know if
per-object attributes could be actually useful for other export
backends?

Best,
Ihor



Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior

2022-06-24 Thread Ihor Radchenko
Ihor Radchenko  writes:

> A more efficient way could be introducing a new customization similar to
> org-cycle-hide-block-startup. Say, it can be
> org-cycle-hide-drawer-startup. See the attached patch.

Applied onto main via bcfed0f34.

Best,
Ihor



Re: ox-latex table tabbing support.

2022-06-24 Thread Ihor Radchenko
em...@vergauwen.me writes:

> Hi Robert, 
> I used the instructions provide on 
> https://orgmode.org/worg/org-contribute.html#first-patch.
> For me, it was a first too, send a patch via email. Can I 
> prevent these issues in the future or use a different method
> to send my patches?

I think we describe one method in
https://orgmode.org/worg/org-contribute.html#org5355fd7

You can also find my personal suggestions and walkthrough in
https://orgmode.org/list/87levyzwsk.fsf@localhost

Best,
Ihor



Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Ihor Radchenko
Ypo  writes:

> elisp-bug-hunter sadly seems to have some bug, so I can't use it 
> interactively anymore.
>
> https://github.com/Malabarba/elisp-bug-hunter/issues/29
>
> You are right, about the .org files though.

I haven't seen any issues using M-x bug-hunter-init-file.
I follow the procedure described in
https://open.tube/videos/watch/4d819114-43bf-42df-af94-f94fc53dd0d9

Best,
Ihor



Re: Orgmode plain list bullet : change automatically with list depth

2022-06-24 Thread Ihor Radchenko
DEBRY.Edouard  writes:

> if I perform Alt-leftarrow on mmd, this element is shift on the left
> but then the whole list is turned into :
> - first
>- ssdsd
>- mmd
> - second
>
> Is there a way to avoid that ?

I am unable to reproduce on the latest main and bugfix.

Best,
Ihor



Org inside LaTeX (a poor man's approach with LuaTeX)

2022-06-24 Thread Juan Manuel Macías
Hi all,

I know some old school LaTeX users who are interested in giving Org a
try, but seem to have a hard time getting out of their LaTeX comfort
zone. So I thought maybe it wouldn't be a bad idea to invite them to try
some Org doses without leaving LaTeX. I got the idea from the LaTeX
markdown package... With one drastic difference: the markdown package
includes a complete LaTeX markdown parser. Mine is just a poor man hack
that runs emacs --batch through Lua.

For example, you can put things like this in a LaTeX document:

\begin{luacode*}

org = [[

* Section

/Lorem ipsum dolor/

*Lorem ipsum dolor*

#+caption: Lorem ipsum dolor
#+ATTR_LaTeX: :booktabs t
|-+-+-|
| lorem   | ipsum   | dolor   |
|-+-+-|
| lorem ipsum | lorem ipsum | lorem ipsum |
| lorem ipsum | lorem ipsum | lorem ipsum |
| lorem ipsum | lorem ipsum | lorem ipsum |
| lorem ipsum | lorem ipsum | lorem ipsum |
|-+-+-|
| lorem ipsum | lorem ipsum | lorem ipsum |
|-+-+-|

]]

org_output()

\end{luacode*}

Unfortunately I've only gotten it to work this way explicitly. If I try
to define a macro or environment to make it simpler, it returns errors
everywhere.

If anyone wants to try it, I am attaching to this email a 'test.tex'
document that contains everything you need. You just have to compile it
with lualatex.

Best regards and happy weekend,

Juan Manuel


test.tex
Description: TeX document


Re: Tribute to org-anki

2022-06-24 Thread Ypo

Better video quality, I hope:

https://youtu.be/JyXaGiaCeOA

El 25/06/2022 a las 3:40, Ypo escribió:


I am studying a matter and I wanted to make some tests.

I've found that org-anki  allows 
to use org-mode notes to generate anki flashcards, so I could play 
with them on the mobile.


I've done a video as tribute to org-anki, quite poor, but in 7 minutes 
I was able to generate 40 flashcards. I am sure it could be done in 
half the time, but here is where I am by now:


reddit post:

https://www.reddit.com/r/orgmode/comments/vk3u44/orgmode_notes_to_anki_thanks_to_organki/


Youtube video:

https://youtu.be/kTYQKuq5KPM




Tribute to org-anki

2022-06-24 Thread Ypo

I am studying a matter and I wanted to make some tests.

I've found that org-anki  allows 
to use org-mode notes to generate anki flashcards, so I could play with 
them on the mobile.


I've done a video as tribute to org-anki, quite poor, but in 7 minutes I 
was able to generate 40 flashcards. I am sure it could be done in half 
the time, but here is where I am by now:


reddit post:

https://www.reddit.com/r/orgmode/comments/vk3u44/orgmode_notes_to_anki_thanks_to_organki/


Youtube video:

https://youtu.be/kTYQKuq5KPM




Re: Org and Hyperbole

2022-06-24 Thread Robert Weiner
Hi João:

Oantolin no doubt can speak to Embark much better but my present
understanding is that it is a toolkit package for generating contextual
popup or completion menus with a few standard context menus included.

Hyperbole is a much broader personal information management
environment, one part of which is to turn every common type of
cross-reference found in buffers from programming identifiers to
page links into immediately useable hyperlinks with no effort
or markup on your part (implicit buttons).

Hyperbole includes a large array of implicit buttons and context
awareness, rather than expecting you to write your own solutions
to all of your needs.  It is more turn-key.  One appendix in the
Hyperbole manual is filled with all the contexts and associated
actions that Hyperbole supports out of the box:

https://www.gnu.org/software/hyperbole/man/hyperbole.html#toc-Smart-Key-Reference-1

Other features include: named hyperbuttons accessed from any
buffer, advanced contact management or hierarchical record
searching (point HyRolo at Org files and you can find single
entries within hierarchies), automatable frame and window
management, action triggers from mouse drags, Org hyperbutton
activation outside of Org mode, easy menu-based exposure of
Emacs filtering and searching capabilities, quick grid-based
display of desired buffers or files.  Hyperbole puts your textual
information at your fingertips in a myriad of ways, just as Emacs
makes text editing convenient and flexible in a myriad of ways.

Like Emacs, you are expected to grow into a broad away of uses across time,
not to digest all at once or in your first month of use.  But by learning
and combining
capabilities, you can become masterful at managing your information and Org
can
be a big part of this journey as well.

Enjoy.

-- rsw


On Fri, Jun 24, 2022 at 1:57 PM João Pedro  wrote:

> Hey Robert. Thanks for coming here to offer to clarify any doubts people
> have regarding Hyperbole.
>
> I haven't been interacting with the thread, but I've been lurking about
> and I've tried Hyperbole in the past, but couldn't precisely figure out
> its use case in my particular workflow, so I gave up on it.
>
> Now, according to your description, the main feature of Hyperbole looks
> a lot like what Embark [1] does sort of the same thing, albeit in
> different contexts, complexity (not a bad thing) and workflow. Would you
> be able to compare them? I think it would help me understand where
> exactly Hyperbole fits, and what is the problem it tries to solve.
>
> [1] https://github.com/oantolin/embark
>
> Best regards,
>
> --
> João Pedro de A. Paula
> IT undergraduate at Universidade Federal do Rio Grande do Norte (UFRN)
>


Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Ypo

Hi Ihor.

elisp-bug-hunter sadly seems to have some bug, so I can't use it 
interactively anymore.


https://github.com/Malabarba/elisp-bug-hunter/issues/29

You are right, about the .org files though.

Thanks

El 25/06/2022 a las 2:53, Ihor Radchenko escribió:

Ypo  writes:


Yes, I tried your assertion for bug-hunter, but it didn't work.

(unless (eq 'universal-argument (keymap-lookup global-map "C-u"))
 (error "C-u has been redefined"))

You can also bisect interactively instead of using assertion.
Note that your assertion is not expected to catch anything considering
that the problem is only present inside .org files.

Best,
Ihor

Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Ihor Radchenko
Ypo  writes:

> Yes, I tried your assertion for bug-hunter, but it didn't work.
>
> (unless (eq 'universal-argument (keymap-lookup global-map "C-u"))
> (error "C-u has been redefined"))

You can also bisect interactively instead of using assertion.
Note that your assertion is not expected to catch anything considering
that the problem is only present inside .org files.

Best,
Ihor



Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Ypo

Thanks, Greg.

Yes, I wanted to jump to the mark with C-u C-SPC.

Thanks

El 24/06/2022 a las 18:06, Greg Minshall escribió:

Ypo,

fwiw, [C-h k C-SPC] has a paragraph that says

With prefix argument (e.g., C-u C-SPC), jump to the mark, and set the mark from
position popped off the local mark ring (this does not affect the global
mark ring).  Use C-x C-@ to jump to a mark popped off the global
mark ring (see ‘pop-global-mark’).


i don't know if that helps at all.

cheers, Greg

Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Ypo

Hi, Bruno

Yes, I tried your assertion for bug-hunter, but it didn't work.

(unless (eq 'universal-argument (keymap-lookup global-map "C-u"))
   (error "C-u has been redefined"))

And you are right: In Emacs with -Q, C-u C-SPC works, but describe-key 
C-u C-SPC doesn't work.


Probably, in the near future, I will have to dissect my .init file by hand.

Thanks!


El 24/06/2022 a las 19:31, Bruno Barbier escribió:


Ypo  writes:


C-h k C-u C-SPC returns:

C-u C-SPC is undefined

In my emacs (28 and 29), with or without "-Q":

 C-h k C-u
=>
(universal-argument)

My emacs doesn't let me query:

C-h k C-u C-SPC


What about your question about debugging in the other thread ? Did you
try what I suggested there ?

Subject: Re: Elisp assertion for debugging
To: Ypo, Org-mode
Date: Sun, 19 Jun 2022 21:11:55 +0200



Bruno



Re: Org and Hyperbole

2022-06-24 Thread Robert Weiner
Hi Juan:

Thanks for the positive thoughts on Hyperbole.  I must say everyone here
has a great attitude and writes thoughtfully from what I have seen.

It seems like you are off to a good start utilizing core features as you
get familiar with them and then adding on across time.

We do like avy and as you say, Hyperbole can work with it.  We try to avoid
requiring any non-builtin Emacs packages for Hyperbole.  With a few, we
support them optionally.  Unless there is a strong use case for utilizing
avy in certain ways, we would tend to leave that to others to extend
Hyperbole but personally I just add it in and use its character and line
navigation sometimes.  Did you have any particular uses in mind?

-- rsw


On Fri, Jun 24, 2022 at 9:52 AM Juan Manuel Macías 
wrote:

> Hi, Robert,
>
> First of all, welcome to the list. And of course congratulations on all
> the great work you've done with hyperbole. In my ignorance, when I
> recently installed it from ELPA, I thought it was a relatively recent
> package. But it seems that you have been developing it for a long time,
> while adapting it to the latest GNU Emacs trends. This is fortunate,
> because what is new is combined with experience and the residue of work
> already done over the years.
>
> At the moment I am not going to comment here anything specific on the
> technical level, because I have been using hyperbole for a short time
> and my knowledge of this package is still very limited. I think the best
> strategy for using hyperbole, from a user's point of view, is to simply
> use it. And gradually discover which parts of hyperbole can be useful
> and integrate into one's workflow. This is more practical than trying to
> start from a global conceptual base (IMHO). I'm still having trouble
> explaining what Org is for and what Org really is :-). But this is also
> the case with Emacs itself. When I first started using Emacs I thought
> it was just a text editor, like any other text editor. In fact, on my
> first day with Emacs I hated it dearly and uninstalled it in a rage. Now
> it's my desktop environment and my work environment, with EXWM, with
> Org, among others, and hopefully with Hyperbole as well. I suppose that
> it is the daily use that is making us connect the dots...
>
> I really like the implicit link system, and it is really easy to define
> new links. I have already defined a set of new buttons for LaTeX, which
> recognize commands and environments and point to the local TeX live
> documentation or texstackexchange.com. And with avy they work great.
> Have you thought about giving a support for avy? In any case it is easy
> to add a new avy action to avy-dispatch-alist.
>
> Best regards,
>
> Juan Manuel
>
> Robert Weiner writes:
>
> > Hi:
> >
> > Thanks to Juan for starting this thread and the interesting
> > conversation it has started.  I just joined this mail list, so I don't
> > have the prior messages and can't reply to the thread, so I have
> > started this new one.
> >
> > I am the author of Hyperbole and would be happy to answer questions
> > concerning Hyperbole today (so you don't have to answer based on
> > experience from the 1990s).  Hyperbole has been modernized for use
> > with Org mode and Emacs 28 and continues to develop.  There are videos
> > that demonstrate some of its features in simple, understandable ways.
> > Hyperbole is a single Emacs package that can be installed and
> > uninstalled quickly for testing.  It is largely a global minor mode,
> > so you can also disable it quickly if you ever care to.  In 20 minutes
> > you can get through the builtin, interactive demo and be on your way
> > to basic yet powerful usage.  We have listened to much feedback in the
> > last few years and made it much more approachable.
> >
> > I find most of the confusion is people trying to understand how
> > Hyperbole works under the covers rather than just following the
> > tutorial and exploring it.  Hyperbole can be hacked on if you are a
> > moderate to advanced programmer but it is meant to be used, like Org
> > mode.  Hyperbole recognizes many, many common contexts in buffers that
> > could serve as hyperlinks (paths, URLs, multiple key sequences, mail
> > addresses, and on and on) and performs the typically desired action
> > when you press its Action Key {M-RET} on these 'implicit buttons'.
> > You get all this for free with no effort on your part.  Then if you
> > want to extend such behavior, as you have seen a bit of, you can
> > define your own implicit button and action types once and then
> > activate an infinite number of matching implicit buttons.  For
> > example, in an Emacs shell buffer, type:
> >
> >echo $PATH
> >
> > then press the {M-RET} key or Shift-Middle mouse button on any path
> > there and jump right to it.  I find that very useful as a simple
> > example.  People are often surprised at how many things simply work
> > right out of the box because such broad context-sensitive behavior is
> > 

Re: [PATCH] Re: No mathematics in Texinfo exports

2022-06-24 Thread Rudolf Adamkovič
Ihor Radchenko  writes:

> First of all, checking version should probably be controlled by some
> customization. Especially when we export to .texi (which does not
> involve calling makeinfo), not to .info.
>
> This customization might be set to 'auto by default, making ox-texinfo
> check makeinfo version.
>
> Parsing version is probably the easiest way. Another alternative is
> trying to run makeinfo on a small test file with math environment and
> checking if it gets exported as expected.

After thinking about this for a while, I realized I do not know when I
will have the time to implement the proposed improvements.  So I wonder,
should we merge what we have, with the feature disabled by default using
the existing customization variable?  That way, some people can enable
the feature today.

Rudy
-- 
"It is no paradox to say that in our most theoretical moods we may be
nearest to our most practical applications."
-- Alfred North Whitehead, 1861-1947

Rudolf Adamkovič  [he/him]
Studenohorská 25
84103 Bratislava
Slovakia



Re: ox-latex table tabbing support.

2022-06-24 Thread General discussions about Org-mode.
Hi Robert, 
I used the instructions provide on 
https://orgmode.org/worg/org-contribute.html#first-patch.
For me, it was a first too, send a patch via email. Can I 
prevent these issues in the future or use a different method
to send my patches?

Kind regardes,
Bob 


-- 
Sent with Tutanota, enjoy secure & ad-free emails. 



Jun 24, 2022, 17:01 by rpl...@gmail.com:

>> On Fri, 24 Jun 2022 17:20:37 +0300, Daniel Fleischer 
>>  said:
>>
>
> Daniel> Robert Pluim [2022-06-24 Fri 15:37]  wrote:
> >> Hi Daniel, I see this was committed with you as Author: and Bob as
> >> Created-by:, which is somewhat unusual. I canʼt find anything about
> >> Created-by in the descriptions of org-mode's processes (and this is
> >> the only instance I can see in the commit logs).
>
> Daniel> That patch was actually just a diff, so I created a commit so it was
> Daniel> my name. I came up with the "created-by" field to
> Daniel> attribute the work to Bob. Is there another way it should have been 
> done?
>
> git commit --author='Bob Vergauwen '
>
> which would show you as the committer, and Bob as the author.
>
> Robert
> --
>



Re: Org and Hyperbole

2022-06-24 Thread João Pedro
Hey Robert. Thanks for coming here to offer to clarify any doubts people
have regarding Hyperbole.

I haven't been interacting with the thread, but I've been lurking about
and I've tried Hyperbole in the past, but couldn't precisely figure out
its use case in my particular workflow, so I gave up on it.

Now, according to your description, the main feature of Hyperbole looks
a lot like what Embark [1] does sort of the same thing, albeit in
different contexts, complexity (not a bad thing) and workflow. Would you
be able to compare them? I think it would help me understand where
exactly Hyperbole fits, and what is the problem it tries to solve.

[1] https://github.com/oantolin/embark

Best regards,

-- 
João Pedro de A. Paula
IT undergraduate at Universidade Federal do Rio Grande do Norte (UFRN)


Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Bruno Barbier



Ypo  writes:

> C-h k C-u C-SPC returns:
>
> C-u C-SPC is undefined

In my emacs (28 and 29), with or without "-Q":

C-h k C-u
=>
   (universal-argument)

My emacs doesn't let me query:

   C-h k C-u C-SPC


What about your question about debugging in the other thread ? Did you
try what I suggested there ?

   Subject: Re: Elisp assertion for debugging
   To: Ypo , Org-mode 
   Date: Sun, 19 Jun 2022 21:11:55 +0200



Bruno





[PATCH] Avoid treating a number as an enum in manual

2022-06-24 Thread Stefan Kangas
In "(org) Agenda Dispatcher", we have the following incorrect part:

  A prefix argument can be used
to specify the number of context lines for each match, default is
@enumerate
@item
@end enumerate

The attached patch should fix this.
From 68d4a3760535666fc69534a6f79ec3501626695f Mon Sep 17 00:00:00 2001
From: Stefan Kangas 
Date: Fri, 24 Jun 2022 19:16:30 +0200
Subject: [PATCH] Avoid treating a number as an enum in manual

* doc/org-manual.org (The Agenda Dispatcher): Avoid treating
number as enum.
---
 doc/org-manual.org | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 07f151837..7c78110ef 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -8557,8 +8557,8 @@ commands:
   Search for a regular expression in all agenda files and additionally
   in the files listed in ~org-agenda-text-search-extra-files~.  This
   uses the Emacs command ~multi-occur~.  A prefix argument can be used
-  to specify the number of context lines for each match, default is
-  1.
+  to specify the number of context lines for each match, the default
+  is 1.
 
 - {{{kbd(#)}}} ::
 
-- 
2.30.2



Re: ox-latex table tabbing support.

2022-06-24 Thread Daniel Fleischer
Robert Pluim [2022-06-24 Fri 17:01]  wrote:

> git commit --author='Bob Vergauwen '
>
> which would show you as the committer, and Bob as the author.

Thanks for the tip; I wasn't aware one can use any identity to author a commit.
Perhaps that's why there's an option to do GPG signing in git.

Daniel Fleischer


Re: C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Greg Minshall
Ypo,

fwiw, [C-h k C-SPC] has a paragraph that says

With prefix argument (e.g., C-u C-SPC), jump to the mark, and set the mark from
position popped off the local mark ring (this does not affect the global
mark ring).  Use C-x C-@ to jump to a mark popped off the global
mark ring (see ‘pop-global-mark’).


i don't know if that helps at all.

cheers, Greg



Re: ox-latex table tabbing support.

2022-06-24 Thread Robert Pluim
> On Fri, 24 Jun 2022 17:20:37 +0300, Daniel Fleischer  
> said:

Daniel> Robert Pluim [2022-06-24 Fri 15:37]  wrote:
>> Hi Daniel, I see this was committed with you as Author: and Bob as
>> Created-by:, which is somewhat unusual. I canʼt find anything about
>> Created-by in the descriptions of org-mode's processes (and this is
>> the only instance I can see in the commit logs).

Daniel> That patch was actually just a diff, so I created a commit so it was
Daniel> my name. I came up with the "created-by" field to
Daniel> attribute the work to Bob. Is there another way it should have been 
done?

git commit --author='Bob Vergauwen '

which would show you as the committer, and Bob as the author.

Robert
-- 



Re: Orgmode plain list bullet : change automatically with list depth

2022-06-24 Thread DEBRY . Edouard

The only trouble with this is that if I have a list with both numbers
and bullets :
1. first
   - ssdsd
 - mmd
2. second

if I perform Alt-leftarrow on mmd, this element is shift on the left
but then the whole list is turned into :
- first
   - ssdsd
   - mmd
- second

Is there a way to avoid that ?

Regards

Edouard Debry  writes:
>
> Thanks for your information complement. Indeed, I know too few about
> emacs to guess that by myself.
>
> And it works !
>
> For anyone interested, here are the settings :
>
> (font-lock-add-keywords 'org-mode
> '(("^ *\\([-]\\) "
>(0 (let* ((depth (org-list--depth (save-match-data 
> (org-element-at-point
>  (bullet (cond ((= depth 1) "●")
>((= depth 2) "◆")
>((= depth 3) "▪")
>((= depth 4) "▸")
>((= depth 5) "•")
>((= depth 6) "↪")
>(t "↪"
> (prog1 () (compose-region (match-beginning 1) 
> (match-end 1) bullet)))
>
> Many thanks for your help.
>
> Regards
>
> Ihor Radchenko  writes:
>
>> Edouard Debry  writes:
>>
>>> The key point is the regexp. I do not know if it is possible to capture
>>> the depth level with a regexp. That is why I tried to use
>>> org-list--depth in :
>>>
>>> ...
>>> but it seems that "org-element-at-point" messes things.
>>
>> Sorry, I though that I gave you enough information to fix the issue.
>>
>> Just wrap (org-element-at-point) into save-match-data:
>> (save-match-data (org-element-at-point))
>>
>> That's it.
>>
>> P.S. I actually plan to fix `org-element-at-point' modifying match data
>> (which is not documented), but it will probably be a part of a bigger
>> font-lock-related patchset.
>>
>> Best,
>> Ihor
>
> __
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> __

___

This email and any attachments are confidential to the intended recipient and 
may also be privileged.
If you are not the intended recipient please delete it from your system and 
notify the sender. 
You should not copy it or use it for any purpose nor disclose or distribute its 
contents to any other person.
 

Ce courriel et ses pieces-jointes sont envoyes de maniere confidentielle et 
doivent etre traites avec attention.
Si vous n'etes pas le destinataire, merci de le detruire et d'en informer son 
auteur. 
Vous ne devez pas copier, utiliser, reveler ou diffuser son contenu a quiconque.



Eshell automatically inserting spurious tabs

2022-06-24 Thread Alessandro Bertulli
Hi all!

I noticed that, when using eshell, sometimes Emacs inserts some non
requested tabs. For instance, let's say I have:

~ $ <-->
I can type her normally

But let's say I'm passing a parameter between quotes, like 'echo
"something"'. When I type the quotes ("), after half a second the point
jumps ahead like if I pressed tab:

~ $ echo "
  ^
  point has automatically moved here

Since it happens in some specific situations (like inside quotes) and it
has a defined timeout (0.5 s), I'd say it's triggered by some Emacs
mode. Can you help me in figuring out which one it's causing this, and
how to remove it?

Note: when I launch 'emacs -q', this issue is not present, and giving
'C-h m' gives:
--
Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
Blink-Cursor Electric-Indent Eshell-Arg Eshell-Cmpl Eshell-Hist
Eshell-Pred Eshell-Proc Eshell-Prompt File-Name-Shadow Font-Lock
Global-Eldoc Global-Font-Lock Indent-Tabs Line-Number Menu-Bar
Mouse-Wheel Shell-Dirtrack Show-Paren Tool-Bar Tooltip Transient-Mark

(Information about these minor modes follows the major mode info.)

Eshell mode defined in ‘esh-mode.el’:
Emacs shell interactive mode.

This mode runs the hook ‘eshell-mode-hook’, as the final or
penultimate step during initialization.

Instead, my normal setup gives:

Enabled minor modes: Ace-Window-Display Auto-Composition
Auto-Compression Auto-Encryption Blink-Cursor Corfu Dap
Dap-Auto-Configure Dap-Tooltip Dap-Ui Dap-Ui-Many-Windows
Electric-Indent Eshell-Arg Eshell-Cmpl Eshell-Hist Eshell-Pred
Eshell-Proc Eshell-Prompt File-Name-Shadow Font-Lock Global-Corfu
Global-Eldoc Global-Flycheck Global-Font-Lock Global-Tree-Sitter
Indent-Tabs Line-Number Menu-Bar Mouse-Wheel Org-Roam-Db-Autosync
Projectile Savehist Shell-Dirtrack Show-Paren Tooltip Transient-Mark
Treemacs-Filewatch Treemacs-Follow Treemacs-Fringe-Indicator
Treemacs-Git Vertico Which-Key Windmove Yas Yas-Global

(Information about these minor modes follows the major mode info.)

Eshell mode defined in ‘esh-mode.el’:
Emacs shell interactive mode.

This mode runs the hook ‘eshell-mode-hook’, as the final or
penultimate step during initialization.
--

Thanks for your patience!

Alessandro



Re: Org and Hyperbole

2022-06-24 Thread Juan Manuel Macías
Hi, Robert,

First of all, welcome to the list. And of course congratulations on all
the great work you've done with hyperbole. In my ignorance, when I
recently installed it from ELPA, I thought it was a relatively recent
package. But it seems that you have been developing it for a long time,
while adapting it to the latest GNU Emacs trends. This is fortunate,
because what is new is combined with experience and the residue of work
already done over the years.

At the moment I am not going to comment here anything specific on the
technical level, because I have been using hyperbole for a short time
and my knowledge of this package is still very limited. I think the best
strategy for using hyperbole, from a user's point of view, is to simply
use it. And gradually discover which parts of hyperbole can be useful
and integrate into one's workflow. This is more practical than trying to
start from a global conceptual base (IMHO). I'm still having trouble
explaining what Org is for and what Org really is :-). But this is also
the case with Emacs itself. When I first started using Emacs I thought
it was just a text editor, like any other text editor. In fact, on my
first day with Emacs I hated it dearly and uninstalled it in a rage. Now
it's my desktop environment and my work environment, with EXWM, with
Org, among others, and hopefully with Hyperbole as well. I suppose that
it is the daily use that is making us connect the dots...

I really like the implicit link system, and it is really easy to define
new links. I have already defined a set of new buttons for LaTeX, which
recognize commands and environments and point to the local TeX live
documentation or texstackexchange.com. And with avy they work great.
Have you thought about giving a support for avy? In any case it is easy
to add a new avy action to avy-dispatch-alist.

Best regards,

Juan Manuel 

Robert Weiner writes:

> Hi:
>
> Thanks to Juan for starting this thread and the interesting
> conversation it has started.  I just joined this mail list, so I don't
> have the prior messages and can't reply to the thread, so I have
> started this new one.
>
> I am the author of Hyperbole and would be happy to answer questions
> concerning Hyperbole today (so you don't have to answer based on
> experience from the 1990s).  Hyperbole has been modernized for use
> with Org mode and Emacs 28 and continues to develop.  There are videos
> that demonstrate some of its features in simple, understandable ways.
> Hyperbole is a single Emacs package that can be installed and
> uninstalled quickly for testing.  It is largely a global minor mode,
> so you can also disable it quickly if you ever care to.  In 20 minutes
> you can get through the builtin, interactive demo and be on your way
> to basic yet powerful usage.  We have listened to much feedback in the
> last few years and made it much more approachable.
>
> I find most of the confusion is people trying to understand how
> Hyperbole works under the covers rather than just following the
> tutorial and exploring it.  Hyperbole can be hacked on if you are a
> moderate to advanced programmer but it is meant to be used, like Org
> mode.  Hyperbole recognizes many, many common contexts in buffers that
> could serve as hyperlinks (paths, URLs, multiple key sequences, mail
> addresses, and on and on) and performs the typically desired action
> when you press its Action Key {M-RET} on these 'implicit buttons'.
> You get all this for free with no effort on your part.  Then if you
> want to extend such behavior, as you have seen a bit of, you can
> define your own implicit button and action types once and then
> activate an infinite number of matching implicit buttons.  For
> example, in an Emacs shell buffer, type:
>
>echo $PATH
>
> then press the {M-RET} key or Shift-Middle mouse button on any path
> there and jump right to it.  I find that very useful as a simple
> example.  People are often surprised at how many things simply work
> right out of the box because such broad context-sensitive behavior is
> difficult to develop and rarely seen.  Just try it out and you should
> find some contexts that you can leverage rapidly.  {C-h A} displays
> what Hyperbole's Action Key will do in any context so you can always
> check and learn before activating anything.  We say: Hyperbole brings
> your text to life.  Like Org and Emacs, it provides an extensive
> environment that you can grow into across time, getting ever more
> productive rather than hitting a ceiling as with most point
> packages/tools.
>
> I am happy to answer questions and discuss ways we can make Hyperbole
> and Org work even better together; one direct question per message
> would typically work best.  Responses may take awhile as my schedule
> makes it difficult to keep up with high volume mailing lists but if
> you cc: r...@gnu.org, I'll likely see your message faster and respond.




Re: ox-latex table tabbing support.

2022-06-24 Thread Daniel Fleischer
Robert Pluim [2022-06-24 Fri 15:37]  wrote:

> Hi Daniel, I see this was committed with you as Author: and Bob as
> Created-by:, which is somewhat unusual. I canʼt find anything about
> Created-by in the descriptions of org-mode's processes (and this is
> the only instance I can see in the commit logs).

That patch was actually just a diff, so I created a commit so it was my name. I 
came up with the "created-by" field to
attribute the work to Bob. Is there another way it should have been done?


Daniel Fleischer


Re: ox-latex table tabbing support.

2022-06-24 Thread Robert Pluim
> On Tue, 21 Jun 2022 07:43:12 +0300, Daniel Fleischer  
> said:

Daniel> Hi Bob,
Daniel> Thank you very much for the patch. It was merged to master in 
4a0d951c.
Daniel> Also, you were added to the orgmode contributes at
Daniel> https://orgmode.org/worg/contributors.html.

Hi Daniel, I see this was committed with you as Author: and Bob as
Created-by:, which is somewhat unusual. I canʼt find anything about
Created-by in the descriptions of org-mode's processes (and this is
the only instance I can see in the commit logs).

Robert
-- 



Re: Org and Hyperbole

2022-06-24 Thread Robert Weiner
Hi Jonathan:

Yes, the backlink issue is one of the reasons we have not focused on moving
kcells with permanent hyperlink anchors from one file to another.  We
generally feel that the context of kcells within an outline is important
and thus should stay as a unit.  You obviously can and do link to any kcell
from outside the outline by combining the file path with the cell's
permanent id and thus could have a grep-like search across any number of
Koutlines.

But I agree a cross-file permanent ID structure could be useful and that
there are times where you want to move or copy outline structure between
files (we already support exporting the text of koutlines to other buffers
or to HTML), so this is a future use case to consider.

-- rsw


On Fri, Jun 24, 2022 at 6:55 AM indieterminacy
 wrote:

> Hi Robert,
>
> On 24-06-2022 07:34, Robert Weiner wrote:
> > Hi Samuel:
> >
> >> On Jun 24, 2022, at 12:32 AM, Samuel Wales 
> >> wrote:
> >>
> >> hi robert, welcome to the org list and thanks for your offer.
> >>
> >> for starters, does hyperbole have any concept of links that are:
> >>
> >> - unbreakable [like org-id]
> >
> > This one is not so simple to answer.  Hyperbole only uses
> > perma-hyperlink anchors in its Koutliner format.  But it would be
> > straightforward to add a UUID-type id for use elsewhere.
> >>
> >> - bidirectional [link a goes to link b; link b goes to link a], or,
> >> reversible via command to say "what links here?" [by any mechanism.
> >> if desired, please see "id markers" concept on this list for
> >> unbreakable bidirectional links and more stuff]
> >
> > Hyperbole does not have bi-directional links, only a history function
> > to move back through followed node paths.  We have started thinking
> > about this need recently.
> >
> > — rsw
> Improvements to the backend of Koutliner would be useful, especially as
> (if I recall from the documentation) the API aspects are not so clearly
> defined.
>
> Bi-directionality would be a priority IMHO, especially to facilitate the
> updating of all links targeting a specific block should it move.
>
> At the moment, each link self updates when it identifies a reference
> which needs to be updated but that comes across as an expediency (which
> I mitigate with direty look running through links to validate they are
> functional).
>
> It would be great to achieve this with an 'eventual-consistency' type
> way, given that files could come in and out of a system or network.
>
> Similarly, allowing the perma-hyperlink anchors to be transferred would
> really mature the format.
>
> Here are some umble functions I use to facilitate moving blocks into
> other files:
>
> https://git.sr.ht/~indieterminacy/1q20bwb_oq_transferring_emacs/tree/main/item/kqk_kq_blocks_koutliner.el
>
> They at least avoid being descructive, as after moving the block becomes
> a pointer to where the moved block ended up in the other dcoument - but
> it feels like a fudge which could turn some documents into spaghetti.
>
>
> While Im sure that you are planning on solving these problems within
> eLisp, I should point out that I shall have a Koutliner parser, written
> in TXR (soon to be finalised, Ive had some familial and health
> impedencies recently).
>
> Here is a WIP
> https://git.sr.ht/~indieterminacy/1q20hqh_oqo_parsing_glean
>
> And a (rough) example
> https://git.sr.ht/~indieterminacy/1q20hqh_oqo_parsing_glean#examples
>
> I do need to add some facets (I suspect the linking for other blocks is
> in a seperate script).
> I shall also be integrating the parser with GemText (Orgmode would be
> nice one day too).
> https://git.sr.ht/~indieterminacy/1q20hqh_kq_parsing_gemtext/
>
> I do quite like TXR's datalisp format but I havent gotten around to
> finding a way to slurping it up into eLisp. I feel like it should be
> easy to resolve but its not a query which is easy given SEO search.
>
> The way Ill be approaching this interpreter is that it could search the
> aggregate or a journey from one document. Being able to have an overview
> of multiple documents is something I consider to be helpful, given the
> domain of cross-referencing.
>
> and FYI, I will be working on outputting RDF from Koutliner and GemText
> analyses.
>
> --
> Jonathan McHugh
> indieterminacy@libre.brussels
>


Re: Org and Hyperbole

2022-06-24 Thread Robert Weiner
Hi Tim:

Great to see you working with Org and Hyperbole together.  It is funny you
mention a dashboard as that is the main next feature we are working on for
Hyperbole.  Presently, there is a 'personal button file' that serves as
your launch pad for any commonly used hyperbuttons, accessed with {C-h h b
p}.  There is a similar per directory file, {C-h h b d}, any of which can
be Org files or any format you prefer.  To augment the personal file, we
plan on adding a quick access menu to search, jump to and edit your
personal, commonly used Hyperbole, Emacs and Org constructs that would
serve as a dashboard, bringing together a lot of the hyper capabilities
distributed throughout Emacs, including all categories of Hyperbole
buttons, Org files, bookmarks, URLs, agenda items, notes, todos, etc. And
each type will be customizable so you can use your favorite feature whether
from Org, Hyperbole or another package.  It is in early development now, so
feel free to mention any wishlist items.



On Fri, Jun 24, 2022 at 2:44 AM Tim Cross  wrote:

>
> Hi Robert,
>
> welcome to the list.
>
> I find hyperbole very interesting and am trying it out now. I can see a
> few areas where I think it may augment my current org based workflows
> and development tasks.
>
> One thing I will be looking at is how well hyperbole works with an
> evil-mode based configuration. Probably no big effect with regards to
> basic links and things like the interesting roladex type system, but may
> be relevant with regards to koutline.
>
> At this stage, I'm thinking hyperbole might be good as a basic
> 'dashboard' type startup screen which makes selecting projects or Emacs
> based apps (like this mu4e environment) easy to select. I likely won't
> take advantage of the window/frame management stuff as I now tend to
> work mainly with emacs tabs - I rarely even split windows anymore and
> now tend to just have one big frame with many tabs or tab groups.
>
> It will be interesting to see if there are areas where org mode and
> hyperbole may further enhance each other. I see them as having good
> collaboration potential rather than as competing/conflicting systems.
>
>


Re: [PATCH] oc-basic.el: Stringify year from CSL-JSON date-parts

2022-06-24 Thread Ihor Radchenko
David Lukeš  writes:

> Thanks! OK, will do, thanks for letting me know.

Note that FSF should reply within 5 working days. If they do not, feel
free to ask here for further assistance.

Best,
Ihor



Re: [PATCH] oc-basic.el: Stringify year from CSL-JSON date-parts

2022-06-24 Thread David Lukeš
Thanks! OK, will do, thanks for letting me know.

David



Re: Org and Hyperbole

2022-06-24 Thread indieterminacy

Hi Robert,

On 24-06-2022 07:34, Robert Weiner wrote:

Hi Samuel:

On Jun 24, 2022, at 12:32 AM, Samuel Wales  
wrote:


hi robert, welcome to the org list and thanks for your offer.

for starters, does hyperbole have any concept of links that are:

- unbreakable [like org-id]


This one is not so simple to answer.  Hyperbole only uses
perma-hyperlink anchors in its Koutliner format.  But it would be
straightforward to add a UUID-type id for use elsewhere.


- bidirectional [link a goes to link b; link b goes to link a], or,
reversible via command to say "what links here?" [by any mechanism.
if desired, please see "id markers" concept on this list for
unbreakable bidirectional links and more stuff]


Hyperbole does not have bi-directional links, only a history function
to move back through followed node paths.  We have started thinking
about this need recently.

— rsw
Improvements to the backend of Koutliner would be useful, especially as 
(if I recall from the documentation) the API aspects are not so clearly 
defined.


Bi-directionality would be a priority IMHO, especially to facilitate the 
updating of all links targeting a specific block should it move.


At the moment, each link self updates when it identifies a reference 
which needs to be updated but that comes across as an expediency (which 
I mitigate with direty look running through links to validate they are 
functional).


It would be great to achieve this with an 'eventual-consistency' type 
way, given that files could come in and out of a system or network.


Similarly, allowing the perma-hyperlink anchors to be transferred would 
really mature the format.


Here are some umble functions I use to facilitate moving blocks into 
other files:

https://git.sr.ht/~indieterminacy/1q20bwb_oq_transferring_emacs/tree/main/item/kqk_kq_blocks_koutliner.el

They at least avoid being descructive, as after moving the block becomes 
a pointer to where the moved block ended up in the other dcoument - but 
it feels like a fudge which could turn some documents into spaghetti.



While Im sure that you are planning on solving these problems within 
eLisp, I should point out that I shall have a Koutliner parser, written 
in TXR (soon to be finalised, Ive had some familial and health 
impedencies recently).


Here is a WIP
https://git.sr.ht/~indieterminacy/1q20hqh_oqo_parsing_glean

And a (rough) example
https://git.sr.ht/~indieterminacy/1q20hqh_oqo_parsing_glean#examples

I do need to add some facets (I suspect the linking for other blocks is 
in a seperate script).
I shall also be integrating the parser with GemText (Orgmode would be 
nice one day too).

https://git.sr.ht/~indieterminacy/1q20hqh_kq_parsing_gemtext/

I do quite like TXR's datalisp format but I havent gotten around to 
finding a way to slurping it up into eLisp. I feel like it should be 
easy to resolve but its not a query which is easy given SEO search.


The way Ill be approaching this interpreter is that it could search the 
aggregate or a journey from one document. Being able to have an overview 
of multiple documents is something I consider to be helpful, given the 
domain of cross-referencing.


and FYI, I will be working on outputting RDF from Koutliner and GemText 
analyses.


--
Jonathan McHugh
indieterminacy@libre.brussels



Re: Org and Hyperbole

2022-06-24 Thread Robert Weiner
Hi Samuel:

> On Jun 24, 2022, at 12:32 AM, Samuel Wales  wrote:
> 
> hi robert, welcome to the org list and thanks for your offer.
> 
> for starters, does hyperbole have any concept of links that are:
> 
> - unbreakable [like org-id]

This one is not so simple to answer.  Hyperbole only uses perma-hyperlink 
anchors in its Koutliner format.  But it would be straightforward to add a 
UUID-type id for use elsewhere.
> 
> - bidirectional [link a goes to link b; link b goes to link a], or,
> reversible via command to say "what links here?" [by any mechanism.
> if desired, please see "id markers" concept on this list for
> unbreakable bidirectional links and more stuff]

Hyperbole does not have bi-directional links, only a history function to move 
back through followed node paths.  We have started thinking about this need 
recently.

— rsw


Customizing org-columns-modify-value-for-display-function to shorten time-stamps in colview

2022-06-24 Thread Mekeor Melire
Hello,

I'm trying to customize org-columns-modify-value-for-display-function in
order to change how time-stamps are displayed. I tried this kind of
function:

--8<---cut here---start->8---
(lambda (column-title value)
  (pcase column-title
((or "SCHEDULED" "TIMESTAMP" "DEADLINE")
  (if value
(format-time-string "%02m'%d %a %R"
  (org-read-date t t value))
""))
(_ nil)))
--8<---cut here---end--->8---

But it results in empty (nil, I guess) time-stamps being displayed as
the current time; and non-nil time-stamps being displayed with the
current hour and minute. What's wrong?

Kind regards
Mekeor



C-SPC works; C-u C-SPC doesn't. How could be?

2022-06-24 Thread Ypo

Hi

I have a weird problem that only happens in org-mode. I know very 
little, but I can't think how could this could be possible:


C-SPC works, but

C-u C-SPC doesn't work.

In emacs -q it works as it should, though.


C-h k C-SPC returns:

C-SPC runs the command set-mark-command (found in global-map),
which is an interactive native compiled Lisp function in
‘simple.el’.

It is bound to C-@, C-SPC.

(set-mark-command ARG)

...



C-h k C-u C-SPC returns:

C-u C-SPC is undefined




Re: Org and Hyperbole

2022-06-24 Thread Tim Cross


Hi Robert,

welcome to the list. 

I find hyperbole very interesting and am trying it out now. I can see a
few areas where I think it may augment my current org based workflows
and development tasks. 

One thing I will be looking at is how well hyperbole works with an
evil-mode based configuration. Probably no big effect with regards to
basic links and things like the interesting roladex type system, but may
be relevant with regards to koutline. 

At this stage, I'm thinking hyperbole might be good as a basic
'dashboard' type startup screen which makes selecting projects or Emacs
based apps (like this mu4e environment) easy to select. I likely won't
take advantage of the window/frame management stuff as I now tend to
work mainly with emacs tabs - I rarely even split windows anymore and
now tend to just have one big frame with many tabs or tab groups. 

It will be interesting to see if there are areas where org mode and
hyperbole may further enhance each other. I see them as having good
collaboration potential rather than as competing/conflicting systems.