Re: How to utilize Org mode editing without display formatting

2022-08-28 Thread Rohit Patnaik
Could you do this with a mode-hook? Something like: 

(add-hook 'org-mode-hook
  (lambda ()
(when (memq (buffer-file-name) 'list-of-files-to-not-highlight)
  (font-lock-mode -1


-- Rohit



Re: Have all the tags of a heading, with a tag hierarchy

2022-08-28 Thread Daniel Fleischer
Cletip Cletip [2022-08-28 Sun 18:34] wrote:

> I may not have been specific enough: 
> I want the tags also inherited with this "method" 
> https://orgmode.org/manual/Tag-Hierarchy.html.

I think these are 2 mechanisms that only share the name "hierarchy". One
is headline hierarchy: a headline shares the tags of its ancestors. It's
local information, it's about the categories this headline are part of
because of its location in the document.

The other mechanism is for grouping tags into families and is used in
the agenda; each family has a representative and you can search for it
instead of searching all the individual members.

I think it makes sense, but you might want these to be related.

-- 

Daniel Fleischer



Re: Have all the tags of a heading, with a tag hierarchy

2022-08-28 Thread Cletip Cletip
Thank you for your answer!

I may not have been specific enough:
I want the tags also inherited with this "method"
https://orgmode.org/manual/Tag-Hierarchy.html.


So imagine this in your configuration file

(setq org-tag-alist '((:startgrouptag)
  ("GTD")
  (:grouptags)
  ("Control")
  (:Persp)
  (:endgrouptag)
  (:startgrouptag)
  ( Control)
  (:grouptags)
  ("Context")
  (:Task")
  (:endgrouptag))


So, if I put the "Control" tag, I am also supposed to have the "GTD" tag,
because "Control" is a child of "GTD".

But, with the "org-get-tags" function, I don't have this famous "GTD" tag

Le dim. 28 août 2022 à 18:22, Juan Manuel Macías  a
écrit :

> Cletip Cletip writes:
>
> > After multiple searches on the internet, I did not find the answer to
> > my question (which is the subject of this mail): when calling the
> > "org-get-tags" function, only the tags put on the heading, and not the
> > inherited tags, are retrieved. How can I get the inherited tags as
> > well? Does such a function already exist? Did I miss an essential
> > variable?
>
> In my case, I do manage to get the iherited tags. Do you have
> `org-use-tag-inheritance' set to non-nil?
>
> According to the `org-get-tags' docstring:
>
> > According to ‘org-use-tag-inheritance’, tags may be inherited from
> > parent headlines, and from the whole document, through
> > ‘org-file-tags’. In this case, the returned list of tags contains tags
> > in this order: file tags, tags inherited from parent headlines, local
> > tags. If a tag appears multiple times, only the most local tag is
> > returned.
>
> and
>
> > However, when optional argument LOCAL is non-nil, only return tags
> > specified at the headline.
>
> Best regards,
>
> Juan Manuel
>
> --
> --
> --
> Juan Manuel Macías
>
> https://juanmanuelmacias.com
>
> https://lunotipia.juanmanuelmacias.com
>
> https://gnutas.juanmanuelmacias.com
>
>


How to utilize Org mode editing without display formatting

2022-08-28 Thread Robert Weiner
Hi:

I have an Emacs programmatic need where I want to read an Org file into
Emacs in a raw form without any display formatting (because the formatting
is too slow for large or many Org files) but I need to leave the buffer
after processing in Org mode, again without taking the time to visually
format the buffer in any way.  I want it in Org mode so that Org editing
and outlining commands potentially work properly but don't need any of the
fancy font-locking or complex display formatting.  Is this possible without
building a derived mode?

It would be very nice if the display formatting in Org were a minor mode
that you could enable and disable to switch between the formatted and
unformatted display all with one command.

Thanks for any help.

-- rsw


Re: Have all the tags of a heading, with a tag hierarchy

2022-08-28 Thread Juan Manuel Macías
Cletip Cletip writes:

> After multiple searches on the internet, I did not find the answer to
> my question (which is the subject of this mail): when calling the
> "org-get-tags" function, only the tags put on the heading, and not the
> inherited tags, are retrieved. How can I get the inherited tags as
> well? Does such a function already exist? Did I miss an essential
> variable?

In my case, I do manage to get the iherited tags. Do you have
`org-use-tag-inheritance' set to non-nil?

According to the `org-get-tags' docstring:

> According to ‘org-use-tag-inheritance’, tags may be inherited from
> parent headlines, and from the whole document, through
> ‘org-file-tags’. In this case, the returned list of tags contains tags
> in this order: file tags, tags inherited from parent headlines, local
> tags. If a tag appears multiple times, only the most local tag is
> returned.

and

> However, when optional argument LOCAL is non-nil, only return tags
> specified at the headline.

Best regards,

Juan Manuel 

-- 
--
--
Juan Manuel Macías 

https://juanmanuelmacias.com

https://lunotipia.juanmanuelmacias.com

https://gnutas.juanmanuelmacias.com




Have all the tags of a heading, with a tag hierarchy

2022-08-28 Thread Cletip Cletip
Hello everyone !

After multiple searches on the internet, I did not find the answer to my
question (which is the subject of this mail): when calling the
"org-get-tags" function, only the tags put on the heading, and not the
inherited tags, are retrieved. How can I get the inherited tags as well?
Does such a function already exist? Did I miss an essential variable?


Thanks in advance for your future answer.


Re: Selection owner couldn’t convert: STRING

2022-08-28 Thread Sharon Kimble
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Ihor Radchenko  writes:

> Sharon Kimble  writes:
>
>> I've found a problem with Imenu and org-mode, and the error report says -
>>
>> =
>> Selection owner couldn’t convert: STRING
>> Error in menu-bar-update-hook (imenu-update-menubar): (wrong-type-argument 
>> char-or-string-p nil)
>> =
>
> Are you able to reproduce starting from emacs -Q?
> See https://orgmode.org/manual/Feedback.html

No, the problem doesn't occur when using 'emacs -Q -l 
/home/boudiccas/.emacs.d/minimal-org.el'.

>
>> And its locking all of the menu-bar up such that nothing on it can be used!
>>
>> I've rebuilt emacs twice, which also included deleting my git repo of it, 
>> and re-downloading emacs from git and rebuilding. But its made no 
>> difference!
>
> Does it mean that you are using Emacs 29 (master branch)? Does the same
> problem appear in Emacs 28?

The problem seems to only occur when using the master branch.

>
>> I've also re-downloading org-mode and rebuilt it, still with no solution!
>
> Are you using main branch? bugfix? ELPA version?

Org mode version 9.5.4 (release_9.5.4-763-g06373a @ 
/home/boudiccas/git/org-mode/lisp/)

I don't know how to show the org-version as per the line above in my signature, 
can anyone advise please?

Thanks
Sharon.
- -- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 11.4, fluxbox 1.3.7, emacs 29.0.50, org 9.5.4 
-BEGIN PGP SIGNATURE-

iQJRBAEBCgA7FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAmMLboIdHGJvdWRpY2Nh
c0Bza2ltYmxlMDkucGx1cy5jb20ACgkQNoGAGQr4g1uZjA/+OU/rOtfgcTD+OEJd
DHUVIgGTqGn1WrYM0wqXa/8pR26xuhWjklJrs7lr6FMaPEJc3cS7Tyy+xbt+B/wP
uMIVjwNaMS218sgqP0mLanCk/XFGRIly0OV4akHTp/GjeOxbbeXGwwQwrVFEl5Og
4+ld11z5p7Qxxx0Nf6pl4krjPSsONRqUoxiBOxeflQIJhRA7xek3MIMWzJ0/szQE
f6xu58B483I/VAYtBzOOLAyZOWDeOSu+NKv+lOALAJuFgCp7oCpjWXX22vEmu33b
Z1ODiezSXKCjuvfZmUw5Qvul1xlmocIihse7DgW6OM0EY8kiWRVijyc5ENg0IUNa
xmyJRgrjgBZ5n057BK6DFtqd/Ew/ZjgBEwAiLe2U7oI4IK2At1JaP6A/PFCoMKhY
yHtcshSRtdFLo1lYJ60dCsvU3A8QEBjfVDbvi+ABBfvfE2HQCWWLMP+uxISCkpwk
EdpDGxws8lRlNp/mtaPK0jisSgxZ5XDqwfHphaFsqJDBDeG1sMrnI4cxyLF+4iWR
dwLr7VeqqoBcBPFjqDSHw/bhe8BdRcWFQbNDbB6oxA8te/NP4ZGKWEv4qh7Y8xUv
KsG7VGVO627Guol1+y4N02lrIJ+yC6KAqZTQgPQFxXFWPfK7eSor/tSgEvvRGkE7
Iv8joI29RzWrBUJ456sFPIFrD5Y=
=o6xX
-END PGP SIGNATURE-



Re: [PATCH v3] Show org file title in org-clock clocktable

2022-08-28 Thread Duy Nguyen
That is fine, thanks.

Regards,
Duy


Duy Nguyen  writes:

> Duy Nguyen  writes:
>
>> Duy Nguyen  writes:
>>
 Thanks for the update!
 Applied onto main via 2cc2d8f1f with amendments.
 I fixed on double space "  " between sentences, removed autoload cookie
 (that function is not used outside org-clock), and altered the docstring
 making the first line a single sentence and clarifying about the return
 value a bit.
 
>>>
>>> Thank you so much for your guidance throughout this patch, hopefully I
>>> will be able to contribute to better patches myself in the future!
>>>
>>> Duy
>>
>> Thanks man!
>>
>>
>> Regards,
>>
>>
>> ---
>>
>> *Duy*
>
> That works!
>
>
> Regards,
>
>
> ---
>
> Duy


Re: [PATCH v3] Show org file title in org-clock clocktable

2022-08-28 Thread Duy Nguyen
Duy Nguyen  writes:

> Duy Nguyen  writes:
>
>>> Thanks for the update!
>>> Applied onto main via 2cc2d8f1f with amendments.
>>> I fixed on double space "  " between sentences, removed autoload cookie
>>> (that function is not used outside org-clock), and altered the docstring
>>> making the first line a single sentence and clarifying about the return
>>> value a bit.
>>> 
>>
>> Thank you so much for your guidance throughout this patch, hopefully I
>> will be able to contribute to better patches myself in the future!
>>
>> Duy
>
> Thanks man!
>
>
> Regards,
>
>
> ---
>
> *Duy*

That works!


Regards,


---

Duy


Re: [PATCH v3] Show org file title in org-clock clocktable

2022-08-28 Thread Duy Nguyen
Duy Nguyen  writes:

>> Thanks for the update!
>> Applied onto main via 2cc2d8f1f with amendments.
>> I fixed on double space "  " between sentences, removed autoload cookie
>> (that function is not used outside org-clock), and altered the docstring
>> making the first line a single sentence and clarifying about the return
>> value a bit.
>> 
>
> Thank you so much for your guidance throughout this patch, hopefully I
> will be able to contribute to better patches myself in the future!
>
> Duy

Thanks man!


Regards,


---

*Duy*