all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-indent-line loops infinitely (when orgstruct++)
@ 2018-10-24 15:31 Garreau, Alexandre
  2018-10-24 15:45 ` Fixed [Was: Re: org-indent-line loops infinitely (when orgstruct++)] Garreau, Alexandre
  0 siblings, 1 reply; 5+ messages in thread
From: Garreau, Alexandre @ 2018-10-24 15:31 UTC (permalink / raw)
  To: emacs-orgmode

I finally found how people naturally made their mail with org, with
orgstruct++-mode, that I just tried.  However that triggers an infinite
loop error (“car: Lisp nesting exceeds ‘max-lisp-eval-depth’”), because
then indent-line-function refers to org-indent-line, which when
orgstruct-is-++ is true, calls indent-line-function.

Why that garbage? how is it supposed to be?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Fixed [Was: Re: org-indent-line loops infinitely (when orgstruct++)]
  2018-10-24 15:31 org-indent-line loops infinitely (when orgstruct++) Garreau, Alexandre
@ 2018-10-24 15:45 ` Garreau, Alexandre
  2018-10-24 16:15   ` Fixed [ Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Garreau, Alexandre @ 2018-10-24 15:45 UTC (permalink / raw)
  To: emacs-orgmode

On 2018-10-24 at 17:31, Garreau, Alexandre wrote:
> I finally found how people naturally made their mail with org, with
> orgstruct++-mode, that I just tried.  However that triggers an infinite
> loop error (“car: Lisp nesting exceeds ‘max-lisp-eval-depth’”), because
> then indent-line-function refers to org-indent-line, which when
> orgstruct-is-++ is true, calls indent-line-function.
>
> Why that garbage? how is it supposed to be?

Ok, then (cl-cadadr (assq 'indent-line-function org-fb-vars)) is
supposed *not* to return org-indent-line, as now I cleaned my hooks
(some modes where called several times redundantly in message-mode,
text-mode, etc.), I see no more problems, sorry for the disturbance.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fixed [
  2018-10-24 15:45 ` Fixed [Was: Re: org-indent-line loops infinitely (when orgstruct++)] Garreau, Alexandre
@ 2018-10-24 16:15   ` Nicolas Goaziou
  2018-10-24 16:45     ` Garreau, Alexandre
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2018-10-24 16:15 UTC (permalink / raw)
  To: Garreau, Alexandre; +Cc: emacs-orgmode

Hello,

"Garreau, Alexandre" <galex-713@galex-713.eu> writes:

> On 2018-10-24 at 17:31, Garreau, Alexandre wrote:
>> I finally found how people naturally made their mail with org, with
>> orgstruct++-mode, that I just tried.  However that triggers an infinite
>> loop error (“car: Lisp nesting exceeds ‘max-lisp-eval-depth’”), because
>> then indent-line-function refers to org-indent-line, which when
>> orgstruct-is-++ is true, calls indent-line-function.
>>
>> Why that garbage? how is it supposed to be?
>
> Ok, then (cl-cadadr (assq 'indent-line-function org-fb-vars)) is
> supposed *not* to return org-indent-line, as now I cleaned my hooks
> (some modes where called several times redundantly in message-mode,
> text-mode, etc.), I see no more problems, sorry for the disturbance.

Note that orgstruct-mode, and orgstruct++-mode are removed from the code
base.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fixed [
  2018-10-24 16:15   ` Fixed [ Nicolas Goaziou
@ 2018-10-24 16:45     ` Garreau, Alexandre
  2018-10-24 17:25       ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Garreau, Alexandre @ 2018-10-24 16:45 UTC (permalink / raw)
  To: emacs-orgmode

Le 24/10/2018 à 18h15, Nicolas Goaziou a écrit :
> "Garreau, Alexandre" <galex-713@galex-713.eu> writes:
>> On 2018-10-24 at 17:31, Garreau, Alexandre wrote:
>>> I finally found how people naturally made their mail with org, with
>>> orgstruct++-mode, that I just tried.  However that triggers an infinite
>>> loop error (“car: Lisp nesting exceeds ‘max-lisp-eval-depth’”), because
>>> then indent-line-function refers to org-indent-line, which when
>>> orgstruct-is-++ is true, calls indent-line-function.
>>>
>>> Why that garbage? how is it supposed to be?
>>
>> Ok, then (cl-cadadr (assq 'indent-line-function org-fb-vars)) is
>> supposed *not* to return org-indent-line, as now I cleaned my hooks
>> (some modes where called several times redundantly in message-mode,
>> text-mode, etc.), I see no more problems, sorry for the disturbance.
>
> Note that orgstruct-mode, and orgstruct++-mode are removed from the code
> base.

No really? how sad! do anyone knows why?

And also what are we supposed to use to support src blocks and
outline-like headings in Gnus?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fixed [
  2018-10-24 16:45     ` Garreau, Alexandre
@ 2018-10-24 17:25       ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2018-10-24 17:25 UTC (permalink / raw)
  To: Garreau, Alexandre; +Cc: emacs-orgmode

"Garreau, Alexandre" <galex-713@galex-713.eu> writes:

> Le 24/10/2018 à 18h15, Nicolas Goaziou a écrit :
>>
>> Note that orgstruct-mode, and orgstruct++-mode are removed from the code
>> base.
>
> No really? how sad! do anyone knows why?

You may want to browse the mailing list archives for discussions about
it. Essentially, Orgstruct mode was very buggy and its implementation
was wrong.

> And also what are we supposed to use to support src blocks and
> outline-like headings in Gnus?

Orgstruct mode, AFAIK, has nothing to do with source blocks in Gnus. For
outline-like headings, you have Outline, Outorg, Outshine and probably
other solutions out there.

Regards,

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-24 17:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-24 15:31 org-indent-line loops infinitely (when orgstruct++) Garreau, Alexandre
2018-10-24 15:45 ` Fixed [Was: Re: org-indent-line loops infinitely (when orgstruct++)] Garreau, Alexandre
2018-10-24 16:15   ` Fixed [ Nicolas Goaziou
2018-10-24 16:45     ` Garreau, Alexandre
2018-10-24 17:25       ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.