emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [RFC] Dog food, anyone?
@ 2017-12-17 10:34 Nicolas Goaziou
  2017-12-17 11:59 ` Vikas Rawal
                   ` (8 more replies)
  0 siblings, 9 replies; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-17 10:34 UTC (permalink / raw)
  To: Org Mode List

Hello,

The task started by Thomas S. Dye a couple years ago is now complete.
The "manual.org" file in "contrib/" directory is an up-to-date,
sometimes enhanced, version of the Org manual. Org can now eat its own
dog food.

During the process, I had to re-organize some parts of the manual (e.g.,
"Working with source code" section, the concept index...) and improve
the "texinfo" export back-end, which was not up to the task when Thomas
started it.

Ultimately, this file is going to serve as the source for a new
"org.texi". IOW, it could go into "doc/" and "make info" should export
"manual.org" to "org.texi". First, however, it would be nice to review
it, either as an Org file, or within the Info viewer, with

   (require 'ox-texinfo)

and

   `C-c C-e i o' from "manual.org".

Note that Info output is expected to be sometimes different from the
current manual. This is not a 1:1 conversion.

Feedback welcome!


Regards,

-- 
Nicolas Goaziou                                                0x80A93738

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 10:34 Nicolas Goaziou
@ 2017-12-17 11:59 ` Vikas Rawal
  2017-12-17 18:41 ` Thomas S. Dye
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 39+ messages in thread
From: Vikas Rawal @ 2017-12-17 11:59 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: org-mode mailing list

> 
> The task started by Thomas S. Dye a couple years ago is now complete.
> The "manual.org" file in "contrib/" directory is an up-to-date,
> sometimes enhanced, version of the Org manual. Org can now eat its own
> dog food.
> 

This gives us a complex org file written by some of the finest orgers. Much to learn from this file.

Thanks to everyone who contributed to this.

Vikas

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 10:34 Nicolas Goaziou
  2017-12-17 11:59 ` Vikas Rawal
@ 2017-12-17 18:41 ` Thomas S. Dye
  2017-12-17 19:01   ` Nicolas Goaziou
  2017-12-17 18:51 ` Kaushal Modi
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 39+ messages in thread
From: Thomas S. Dye @ 2017-12-17 18:41 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Aloha Nicolas,

It's a real pleasure to know that Org can now eat its own dog food (and
to see Carsten's memorable phrase on the Org mode list again). Many
thanks for picking up this orphaned project. I look forward to the day
it serves as the source for org.texi.

When I was working on the project several years ago, I didn't notice any
constraints introduced by Jonathan Leech-Pepin's ox-texinfo. For me, the
hard part was trying to synchronize with the on-going changes to
org.texi, which quickly defeated my best efforts. Have you figured out
how to automate that?

All the best,
Tom

Nicolas Goaziou writes:

> Hello,
>
> The task started by Thomas S. Dye a couple years ago is now complete.
> The "manual.org" file in "contrib/" directory is an up-to-date,
> sometimes enhanced, version of the Org manual. Org can now eat its own
> dog food.
>
> During the process, I had to re-organize some parts of the manual (e.g.,
> "Working with source code" section, the concept index...) and improve
> the "texinfo" export back-end, which was not up to the task when Thomas
> started it.
>
> Ultimately, this file is going to serve as the source for a new
> "org.texi". IOW, it could go into "doc/" and "make info" should export
> "manual.org" to "org.texi". First, however, it would be nice to review
> it, either as an Org file, or within the Info viewer, with
>
>    (require 'ox-texinfo)
>
> and
>
>    `C-c C-e i o' from "manual.org".
>
> Note that Info output is expected to be sometimes different from the
> current manual. This is not a 1:1 conversion.
>
> Feedback welcome!
>
>
> Regards,


--
Thomas S. Dye
http://www.tsdye.com

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 10:34 Nicolas Goaziou
  2017-12-17 11:59 ` Vikas Rawal
  2017-12-17 18:41 ` Thomas S. Dye
@ 2017-12-17 18:51 ` Kaushal Modi
  2017-12-17 19:27   ` Nicolas Goaziou
  2017-12-17 23:10 ` Eric Abrahamsen
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 39+ messages in thread
From: Kaushal Modi @ 2017-12-17 18:51 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

On Sun, Dec 17, 2017 at 5:35 AM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> The task started by Thomas S. Dye a couple years ago is now complete.
> The "manual.org" file in "contrib/" directory is an up-to-date,
> sometimes enhanced, version of the Org manual. Org can now eat its own
> dog food.
>

There are awesome news!

Would a template Org file be available that package authors can easily use
as a base to write their package manuals?

Many thanks! Will test it out next week.
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1058 bytes --]

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 18:41 ` Thomas S. Dye
@ 2017-12-17 19:01   ` Nicolas Goaziou
  2017-12-17 21:58     ` Thomas S. Dye
  0 siblings, 1 reply; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-17 19:01 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org Mode List

Hello,

"Thomas S. Dye" <tsd@tsdye.com> writes:

> When I was working on the project several years ago, I didn't notice any
> constraints introduced by Jonathan Leech-Pepin's ox-texinfo. For me, the
> hard part was trying to synchronize with the on-going changes to
> org.texi, which quickly defeated my best efforts. Have you figured out
> how to automate that?

Once manual.org is the official source for org.texi, there is no need to
modify "org.texi" directly. Only the occasional back-port from upstream
requires to do so, which is very manageable.

Do you foresee any difficulty?

Regards,

-- 
Nicolas Goaziou

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 18:51 ` Kaushal Modi
@ 2017-12-17 19:27   ` Nicolas Goaziou
  0 siblings, 0 replies; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-17 19:27 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: Org Mode List

Hello,

Kaushal Modi <kaushal.modi@gmail.com> writes:

> Would a template Org file be available that package authors can easily use
> as a base to write their package manuals?

I'm not sure about what you mean by "template". Sure, there are a few
Texinfo specific sections (e.g., GNU Free Documentation License, Concept
index, Key index...) and a fancy macro (kbd), but otherwise it's
a straightforward file using standard Org syntax.

Anyway, time will tell.

Regards,

-- 
Nicolas Goaziou

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 19:01   ` Nicolas Goaziou
@ 2017-12-17 21:58     ` Thomas S. Dye
  2017-12-17 23:03       ` Adrian Bradd
  2017-12-17 23:44       ` Nicolas Goaziou
  0 siblings, 2 replies; 39+ messages in thread
From: Thomas S. Dye @ 2017-12-17 21:58 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Aloha Nicolas,

Nicolas Goaziou writes:

> Once manual.org is the official source for org.texi, there is no need to
> modify "org.texi" directly. Only the occasional back-port from upstream
> requires to do so, which is very manageable.
>
> Do you foresee any difficulty?

No, once manual.org is the official source for org.texi, there shouldn't
be any difficulty AFAICT.

My concern is with the time between a working manual.org and when it
becomes the official source.  IIRC, I wasn't able to get a commitment to
make manual.org the official source, so was looking at an open-ended
future of what I considered arduous maintenance, without any real hope
the project might succeed.  Perhaps you have that wrinkle ironed out?

BTW, I wasn't able to export manual.org using Org mode version 9.1.4
(9.1.4-elpaplus @ /Users/dk/.emacs.d/elpa/org-plus-contrib-20171205/).
It fails with this message:

format: Symbol’s value as variable is void: M-x

Does it depend on a more recent Org mode?

All the best,
Tom

--
Thomas S. Dye
http://www.tsdye.com

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 21:58     ` Thomas S. Dye
@ 2017-12-17 23:03       ` Adrian Bradd
  2017-12-18  1:13         ` Thomas S. Dye
  2017-12-17 23:44       ` Nicolas Goaziou
  1 sibling, 1 reply; 39+ messages in thread
From: Adrian Bradd @ 2017-12-17 23:03 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org Mode List, Nicolas Goaziou


Thanks for this. I think having the manual in org format is a great idea.

Thomas S. Dye <tsd@tsdye.com> writes:

> My concern is with the time between a working manual.org and when it
> becomes the official source.  IIRC, I wasn't able to get a commitment to
> make manual.org the official source, so was looking at an open-ended
> future of what I considered arduous maintenance, without any real hope
> the project might succeed.  Perhaps you have that wrinkle ironed out?

I support the move to manual.org. If there are concerns about the
quality of the manual.org file and its exported .texi manual that
prevent it from becoming the master source one could ask contributors to
add information to both the .texi and .org file until the final
conversion is made. At the very least this would prevent an individual
from taking all the load.

Was there resistance to the move to manual.org previously? Or was the
issue one of apathy?

> BTW, I wasn't able to export manual.org using Org mode version 9.1.4
> (9.1.4-elpaplus @ /Users/dk/.emacs.d/elpa/org-plus-contrib-20171205/).
> It fails with this message:
>
> format: Symbol’s value as variable is void: M-x
>
> Does it depend on a more recent Org mode?

Export worked for me on Org mode version 9.1.4
(9.1.4-2-g118753-elpaplus).

Cheers,

-- 
Adrian

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 10:34 Nicolas Goaziou
                   ` (2 preceding siblings ...)
  2017-12-17 18:51 ` Kaushal Modi
@ 2017-12-17 23:10 ` Eric Abrahamsen
  2017-12-18 21:02 ` Thomas S. Dye
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 39+ messages in thread
From: Eric Abrahamsen @ 2017-12-17 23:10 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> The task started by Thomas S. Dye a couple years ago is now complete.
> The "manual.org" file in "contrib/" directory is an up-to-date,
> sometimes enhanced, version of the Org manual. Org can now eat its own
> dog food.

Very cool! I look forward to learning from this, and will see if I can
spot any warts.

Nice work, all.

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 21:58     ` Thomas S. Dye
  2017-12-17 23:03       ` Adrian Bradd
@ 2017-12-17 23:44       ` Nicolas Goaziou
  2017-12-18  1:15         ` Vikas Rawal
  2017-12-18  1:23         ` Thomas S. Dye
  1 sibling, 2 replies; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-17 23:44 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org Mode List

"Thomas S. Dye" <tsd@tsdye.com> writes:

> My concern is with the time between a working manual.org and when it
> becomes the official source.  IIRC, I wasn't able to get a commitment to
> make manual.org the official source, so was looking at an open-ended
> future of what I considered arduous maintenance, without any real hope
> the project might succeed.  Perhaps you have that wrinkle ironed out?

Not really. But the shift is a step forward. It cannot see how that
could fail (famous last words).

> BTW, I wasn't able to export manual.org using Org mode version 9.1.4
> (9.1.4-elpaplus @ /Users/dk/.emacs.d/elpa/org-plus-contrib-20171205/).
> It fails with this message:
>
> format: Symbol’s value as variable is void: M-x
>
> Does it depend on a more recent Org mode?

The file is in master branch. You need to use that to export it.

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 23:03       ` Adrian Bradd
@ 2017-12-18  1:13         ` Thomas S. Dye
  0 siblings, 0 replies; 39+ messages in thread
From: Thomas S. Dye @ 2017-12-18  1:13 UTC (permalink / raw)
  To: Adrian Bradd; +Cc: Org Mode List, Nicolas Goaziou

Aloha Adrian,

Adrian Bradd writes:
>
> I support the move to manual.org. If there are concerns about the
> quality of the manual.org file and its exported .texi manual that
> prevent it from becoming the master source one could ask contributors to
> add information to both the .texi and .org file until the final
> conversion is made. At the very least this would prevent an individual
> from taking all the load.
>
> Was there resistance to the move to manual.org previously? Or was the
> issue one of apathy?

I don't know exactly.  I think there were legitimate concerns at the
time that manual.org required more work to produce a standard org.texi,
and some doubt whether it would indeed be possible.

I don't think apathy was a factor. IIRC, there was a lot of support for
the idea, including Carsten's hope that Org mode could "eat it's own dog
food."

All the best,
Tom

--
Thomas S. Dye
http://www.tsdye.com

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 23:44       ` Nicolas Goaziou
@ 2017-12-18  1:15         ` Vikas Rawal
  2017-12-18  1:23         ` Thomas S. Dye
  1 sibling, 0 replies; 39+ messages in thread
From: Vikas Rawal @ 2017-12-18  1:15 UTC (permalink / raw)
  To: org-mode mailing list; +Cc: Nicolas Goaziou

[-- Attachment #1: Type: text/plain, Size: 518 bytes --]


> 
>> BTW, I wasn't able to export manual.org using Org mode version 9.1.4
>> (9.1.4-elpaplus @ /Users/dk/.emacs.d/elpa/org-plus-contrib-20171205/).
>> It fails with this message:
>> 
>> format: Symbol’s value as variable is void: M-x
>> 
>> Does it depend on a more recent Org mode?
> 
> The file is in master branch. You need to use that to export it.
> 

Why do I have orgmanual.org <http://orgmanual.org/> and not manual.org <http://manual.org/>? My git repo is up to date with origin/master.

V.

[-- Attachment #2: Type: text/html, Size: 1133 bytes --]

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 23:44       ` Nicolas Goaziou
  2017-12-18  1:15         ` Vikas Rawal
@ 2017-12-18  1:23         ` Thomas S. Dye
  1 sibling, 0 replies; 39+ messages in thread
From: Thomas S. Dye @ 2017-12-18  1:23 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Aloha Nicolas,

Nicolas Goaziou writes:

> "Thomas S. Dye" <tsd@tsdye.com> writes:
>
>> My concern is with the time between a working manual.org and when it
>> becomes the official source.  IIRC, I wasn't able to get a commitment to
>> make manual.org the official source, so was looking at an open-ended
>> future of what I considered arduous maintenance, without any real hope
>> the project might succeed.  Perhaps you have that wrinkle ironed out?
>
> Not really. But the shift is a step forward. It cannot see how that
> could fail (famous last words).

:)

> The file is in master branch. You need to use that to export it.

Thanks.

All the best,
Tom

--
Thomas S. Dye
http://www.tsdye.com

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 10:34 Nicolas Goaziou
                   ` (3 preceding siblings ...)
  2017-12-17 23:10 ` Eric Abrahamsen
@ 2017-12-18 21:02 ` Thomas S. Dye
  2017-12-18 22:04   ` Nicolas Goaziou
  2017-12-19 20:16 ` Jonathan Leech-Pepin
                   ` (3 subsequent siblings)
  8 siblings, 1 reply; 39+ messages in thread
From: Thomas S. Dye @ 2017-12-18 21:02 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 1707 bytes --]

Aloha Nicolas,

Nicolas Goaziou writes:
>
> Ultimately, this file is going to serve as the source for a new
> "org.texi". IOW, it could go into "doc/" and "make info" should export
> "manual.org" to "org.texi". First, however, it would be nice to review
> it, either as an Org file, or within the Info viewer, with
>
>    (require 'ox-texinfo)
>
> and
>
>    `C-c C-e i o' from "manual.org".

I've spent a few hours with manual.org now and I like it very much.  The
info file it produces looks clean to me and it compiled without a hitch
using Org mode from the master branch.

One change that might be made globally is the use of em-dash (---) to
set off text, versus en-dash (--) between numerals, e.g. "the range of
run times is 1--5 seconds".  I've spotted several places where the
en-dash is used to set off text.  See this web site for the convention
on dashes:

https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Conventions.html

I appreciate your work on the chapter "Working with source code". I
think it is a big improvement over the original. The reorganization
seems effective to me, especially the integration of "Specific header
arguments" with the structural overview you provide in the first several
sections of the chapter.  Thanks!

Attached, please find a patch with some copy editing to the introductory
section of the "Working with source code" chapter.  The patch also
includes a correction for a typo elsewhere in the manual.

Like others on the list, I'm pleased by the prospect of being able to
contribute to the Org manual by editing an Org document.  It is so much
easier for me than trying to work on org.texi!

Let me know if you have questions.

All the best,
Tom


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Edits to the introductory section of "Working with source code" --]
[-- Type: text/x-patch, Size: 7758 bytes --]

From dc10dff3adf49783ef82ad43338f04ceb888ebc3 Mon Sep 17 00:00:00 2001
From: tsdye <tsd@tsdye.com>
Date: Mon, 18 Dec 2017 10:21:11 -1000
Subject: [PATCH] Edit the introduction

---
 contrib/manual.org | 123 +++++++++++++++++++++++++++--------------------------
 1 file changed, 62 insertions(+), 61 deletions(-)

diff --git a/contrib/manual.org b/contrib/manual.org
index c497129e9..3781a57ec 100644
--- a/contrib/manual.org
+++ b/contrib/manual.org
@@ -15939,13 +15939,17 @@ keywords.
 :END:
 #+cindex: source code, working with
 
-Source code here refers to any code typed in Org documents.  Org can
-manage source code in any Org file once such code is tagged with begin
-and end markers.  Working with source code begins with tagging source
-code blocks.  Tagged blocks are not restricted to the preamble or the
-end of an Org document; they can go anywhere -- with a few exceptions,
-such as not inside comments and fixed width areas.  Here's a sample
-source code block in Emacs Lisp:
+Source code here refers to any plain text collection of computer
+instructions, possibly with comments, written using a human-readable
+programming language.  Org can manage source code in an Org document
+when the source code is identified with begin and end markers.
+Working with source code begins with identifying source code blocks.
+A source code block can be placed almost anywhere in an Org document;
+it is not restricted to the preamble or the end of the
+document. However, Org cannot manage a source code block if it is
+placed inside an Org comment or within a fixed width section.
+
+Here is an example source code block in the Emacs Lisp language:
 
 #+begin_example
   ,#+BEGIN_SRC emacs-lisp
@@ -15955,62 +15959,59 @@ source code block in Emacs Lisp:
   ,#+END_SRC
 #+end_example
 
-Org can take the code in the block delimited by the =#+BEGIN_SRC=
-... =#+END_SRC= markup, and format, compile, execute, and show the
-results.  Org can simplify many housekeeping tasks essential to modern
-code maintenance.  That's why these blocks in Org mode literature are
-sometimes referred to as /live code/ blocks -- as compared to the
-static text and documentation around it.  Users can control how live
-they want each block by tweaking the headers for compiling, execution,
-extraction.
-
-Org's source code block type is one of many block types, such as
-quote, export, verse, latex, example, and verbatim.  This section
-pertains to blocks between =#+BEGIN_SRC= and =#+END_SRC=.
-
-For editing source code blocks, Org provides native Emacs major-modes.
-That leverages the latest Emacs features for that source code language
-mode.
-
-For exporting, Org can then extract source code blocks into compilable
-source files -- in a conversion process known as /tangling/ in
-literate programming terminology.
-
-For publishing, Org's back-ends can handle the code blocks and the
-text for output to a variety of formats with native syntax
-highlighting.
-
-For executing the source code in the code blocks, Org provides
-facilities that glue the tasks of compiling, collecting the results of
-the execution, and inserting them back to the Org file.  Besides text
-output, results may include links to other data types that Emacs can
-handle: audio, video, and graphics.
-
-An important feature of Org's execution of the code blocks is passing
-variables, functions, and results between them.  Such interoperability
-uses a common syntax even if these blocks are in different source code
-languages.  The integration extends to linking the debugger's error
-messages to the line in the source code block in the Org file.  That
-should partly explain why this functionality by the original
-contributors, Eric Schulte and Dan Davison, was called /Org Babel/.
-
-In literate programming, the main appeal is code and documentation
-co-existing in one file.  Org mode takes this several steps further.
-First by enabling execution, and then by inserting results of that
-execution back into the Org file.  Along the way, Org provides
-extensive formatting features, including handling tables.  Org handles
-multiple source code languages in one file, and provides a common
-syntax for passing variables, functions, and results between source
-code blocks.
+Org can manage the source code in the block delimited by =#+BEGIN_SRC=
+... =#+END_SRC= in several ways that can simplify housekeeping tasks
+essential to modern source code maintenance.  Org can edit, format,
+extract, export, and publish source code blocks.  Org can also compile and
+execute a source code block, then capture the results.  The Org mode
+literature sometimes refers to source code blocks as /live code/
+blocks because they can alter the content of the Org document or the
+material that it exports.  Users can control how live they want each
+source code block by tweaking the [[*Using header arguments][header arguments]] for compiling,
+execution, extraction, and exporting.
+
+Source code blocks are one of many Org block types, which also include
+=quote=, =export=, =verse=, =latex=, =example=, and =verbatim=.  This
+section pertains to blocks between =#+BEGIN_SRC= and =#+END_SRC=.
+
+For editing and formatting a source code block, Org uses an
+appropriate Emacs major-mode that includes features specifically
+designed for source code in that language.
+
+Org can extract one or more source code blocks and write them to one
+or more source files --- a process known as /tangling/ in literate
+programming terminology.
+
+For exporting and publishing, Org's back-ends can format a source code
+block appropriately, often with native syntax highlighting.
+
+For executing and compiling a source code block, the user can
+configure Org to select the appropriate compiler.  Org provides
+facilities to collect the result of the execution or compiler output,
+insert it into the Org document, and/or export it.  In addition to
+text results, Org can insert links to other data types, including
+audio, video, and graphics. Org can also link a compiler error message
+to the appropriate line in the source code block.
+
+An important feature of Org's management of source code blocks is the
+ability to pass variables, functions, and results to one another using
+a common syntax for source code blocks in any language.  Although most
+literate programming facilities are restricted to one language or
+another, Org's language-agnostic approach lets the literate programmer
+match each programming task with the appropriate computer language and
+to mix them all together in a single Org document.  This
+interoperability among languages explains why Org's source code
+management facility was named /Org Babel/ by its originators, Eric
+Schulte and Dan Davison.
 
 Org mode fulfills the promise of easy verification and maintenance of
-publishing reproducible research by keeping all these in the same
-file: text, data, code, configuration settings of the execution
-environment, the results of the execution, and associated narratives,
-claims, references, and internal and external links.
+publishing reproducible research by keeping text, data, code,
+configuration settings of the execution environment, the results of
+the execution, and associated narratives, claims, references, and
+internal and external links in a single Org document.
 
-Details of Org's facilities for working with source code are shown
-next.
+Details of Org's facilities for working with source code are described
+in the following sections.
 
 ** Structure of code blocks
 :PROPERTIES:
@@ -16046,7 +16047,7 @@ An inline code block conforms to this structure:
 
 : src_<language>{<body>}
 
-#+teinfo: @noindent
+#+texinfo: @noindent
 or
 
 : src_<language>[<header arguments>]{<body>}
-- 
2.14.2


[-- Attachment #3: Type: text/plain, Size: 39 bytes --]


--
Thomas S. Dye
http://www.tsdye.com

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

* Re: [RFC] Dog food, anyone?
  2017-12-18 21:02 ` Thomas S. Dye
@ 2017-12-18 22:04   ` Nicolas Goaziou
  2017-12-19  0:12     ` Thomas S. Dye
  0 siblings, 1 reply; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-18 22:04 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org Mode List

Hello,

"Thomas S. Dye" <tsd@tsdye.com> writes:

> I've spent a few hours with manual.org now and I like it very much.  The
> info file it produces looks clean to me and it compiled without a hitch
> using Org mode from the master branch.

Great!

> One change that might be made globally is the use of em-dash (---) to
> set off text, versus en-dash (--) between numerals, e.g. "the range of
> run times is 1--5 seconds".  I've spotted several places where the
> en-dash is used to set off text.  See this web site for the convention
> on dashes:
>
> https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Conventions.html

I think it is a matter of "American English" vs "British English"
convention. See, e.g., <https://www.gsbe.co.uk/grammar-the-dash.html>.

I consistently used the latter because I find it more aesthetically
pleasing. As a GNU manual, we can switch to the American English
convention everywhere. In this case, however, em-dash are not
spaced-out.

In the same vein, we also need to use title case. This needs some
special care as fuzzy links need to be updated accordingly.

WDYT?

> Attached, please find a patch with some copy editing to the introductory
> section of the "Working with source code" chapter.  The patch also
> includes a correction for a typo elsewhere in the manual.

Thank you. I applied it with the changes mentioned below.

> +Users can control how live they want each
> +source code block by tweaking the [[*Using header arguments][header arguments]] for compiling,
> +execution, extraction, and exporting.

I changed it to

  ... by tweaking the header arguments (see [[* Using header
  arguments]]) for compiling...

For more information, see (info "(texinfo) @ref"), last paragraphs.
N.B.: I suggest to read it in regular info viewer, i.e., "info texinfo"
from the command line, instead of Emacs to make sense out of this.

> +Source code blocks are one of many Org block types, which also include
> +=quote=, =export=, =verse=, =latex=, =example=, and =verbatim=.  This
> +section pertains to blocks between =#+BEGIN_SRC= and =#+END_SRC=.
> +
> +For editing and formatting a source code block, Org uses an
> +appropriate Emacs major-mode that includes features specifically
> +designed for source code in that language.
> +
> +Org can extract one or more source code blocks and write them to one
> +or more source files --- a process known as /tangling/ in literate
> +programming terminology.

I changed it to

    ... or more sources files---a process known as...

per above.


Regards,

-- 
Nicolas Goaziou                                                0x80A93738

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

* Re: [RFC] Dog food, anyone?
  2017-12-18 22:04   ` Nicolas Goaziou
@ 2017-12-19  0:12     ` Thomas S. Dye
  2017-12-19 19:25       ` Nicolas Goaziou
  0 siblings, 1 reply; 39+ messages in thread
From: Thomas S. Dye @ 2017-12-19  0:12 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Aloha Nicolas,

Nicolas Goaziou writes:

>> One change that might be made globally is the use of em-dash (---) to
>> set off text, versus en-dash (--) between numerals, e.g. "the range of
>> run times is 1--5 seconds".  I've spotted several places where the
>> en-dash is used to set off text.  See this web site for the convention
>> on dashes:
>>
>> https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Conventions.html
>
> I think it is a matter of "American English" vs "British English"
> convention. See, e.g., <https://www.gsbe.co.uk/grammar-the-dash.html>.
>
> I consistently used the latter because I find it more aesthetically
> pleasing. As a GNU manual, we can switch to the American English
> convention everywhere. In this case, however, em-dash are not
> spaced-out.

I find the en-dash with spaces more aesthetically pleasing, too.

>
> In the same vein, we also need to use title case. This needs some
> special care as fuzzy links need to be updated accordingly.
>
> WDYT?

Agreed. This is one of the first things we might do if manual.org
becomes the official source of the Org manual.

FYI, Phil Rooke's Documentation_Standards.org suggests title case for
chapter heads and sentence case for section and subsection headings.


> I changed it to
>
>   ... by tweaking the header arguments (see [[* Using header
>   arguments]]) for compiling...
>
> For more information, see (info "(texinfo) @ref"), last paragraphs.
> N.B.: I suggest to read it in regular info viewer, i.e., "info texinfo"
> from the command line, instead of Emacs to make sense out of this.

Yes, much better.

All the best,
Tom

--
Thomas S. Dye
http://www.tsdye.com

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

* Re: [RFC] Dog food, anyone?
  2017-12-19  0:12     ` Thomas S. Dye
@ 2017-12-19 19:25       ` Nicolas Goaziou
  2017-12-19 20:11         ` Thomas S. Dye
  0 siblings, 1 reply; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-19 19:25 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org Mode List

Hello,

"Thomas S. Dye" <tsd@tsdye.com> writes:

> I find the en-dash with spaces more aesthetically pleasing, too.

Unfortunately, Emacs manual thoroughly uses em-dash. We have to bite the
bullet, IMO.

I will change " -- " into "---" if there is no objection.

> Agreed. This is one of the first things we might do if manual.org
> becomes the official source of the Org manual.
>
> FYI, Phil Rooke's Documentation_Standards.org suggests title case for
> chapter heads and sentence case for section and subsection headings.

OTOH, Emacs manual seems to use title case at every level, barring some
exceptions (e.g., "Terminal emulator").

Maybe we should stick to title case to every heading that belong to
a menu, i.e., we can use sentence case for "notoc" headings.

Since Texinfo node names are derived from headlines, it means external
references to Org manual, if such thing exists, are going to break.

WDYT?

Regards,

-- 
Nicolas Goaziou

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

* Re: [RFC] Dog food, anyone?
  2017-12-19 19:25       ` Nicolas Goaziou
@ 2017-12-19 20:11         ` Thomas S. Dye
  0 siblings, 0 replies; 39+ messages in thread
From: Thomas S. Dye @ 2017-12-19 20:11 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Aloha Nicolas,

Nicolas Goaziou writes:

> Hello,
>
> "Thomas S. Dye" <tsd@tsdye.com> writes:
>
>> I find the en-dash with spaces more aesthetically pleasing, too.
>
> Unfortunately, Emacs manual thoroughly uses em-dash. We have to bite the
> bullet, IMO.
>
> I will change " -- " into "---" if there is no objection.

No objection here.

>> Agreed. This is one of the first things we might do if manual.org
>> becomes the official source of the Org manual.
>>
>> FYI, Phil Rooke's Documentation_Standards.org suggests title case for
>> chapter heads and sentence case for section and subsection headings.
>
> OTOH, Emacs manual seems to use title case at every level, barring some
> exceptions (e.g., "Terminal emulator").
>
> Maybe we should stick to title case to every heading that belong to
> a menu, i.e., we can use sentence case for "notoc" headings.
>
> Since Texinfo node names are derived from headlines, it means external
> references to Org manual, if such thing exists, are going to break.
>
> WDYT?

I think we should identify and follow the appropriate style guide, but
I'm confused about what *is* the appropriate style guide.

The style guide for GNU documentation seems more about teaching coders
how to communicate with other humans and less about the nitty-gritty
style issues that send an editor to a guide like the Chicago Manual of
Style. See:

https://www.fsf.org/gnu-press/GNU-Press-styleguide.pdf

Note that the GNU style guide uses sentence case for section heads, and
em-dashes with spaces (" --- ")!

Of course, the TexInfo style guide I cited in an earlier post appears to
have conflicting advice about dashes :(

In the end, the important thing is consistency.  A good document
"trains" its readers how to read it by hewing to a consistent standard.

My recommendation at this point is to follow Phil Rooke's style guide
and augment it where possible. If manual.org becomes the official source
for Org documentation, then it would be useful to "translate" Rooke's
guide to show how to achieve its style prescriptions using Org markup.

hth,
Tom

--
Thomas S. Dye
http://www.tsdye.com

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 10:34 Nicolas Goaziou
                   ` (4 preceding siblings ...)
  2017-12-18 21:02 ` Thomas S. Dye
@ 2017-12-19 20:16 ` Jonathan Leech-Pepin
  2017-12-19 23:11   ` Nicolas Goaziou
       [not found] ` <WM!57dfd1c25b2c2af3021c1294841c916968d326cf362c32864a6fbc9615cf19dba6ceadc1960e4c3ef5578687af476fba!@mailhub-mx1.ncl.ac.uk>
                   ` (2 subsequent siblings)
  8 siblings, 1 reply; 39+ messages in thread
From: Jonathan Leech-Pepin @ 2017-12-19 20:16 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]

Hello Nicolas

On 17 December 2017 at 05:34, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> The task started by Thomas S. Dye a couple years ago is now complete.
> The "manual.org" file in "contrib/" directory is an up-to-date,
> sometimes enhanced, version of the Org manual. Org can now eat its own
> dog food.
>
> During the process, I had to re-organize some parts of the manual (e.g.,
> "Working with source code" section, the concept index...) and improve
> the "texinfo" export back-end, which was not up to the task when Thomas
> started it.
>

As Thomas mentioned I had originally written the exporter.  I'd done my best
to get it to work with the majority of the org.texi however there were
certain
features that did not seem to be present at the time in Org  (or at least no
convenient method to simulate them without macros).

I haven't had the chance to keep up with the exporter or the export engine
in
general, however I'm glad that the manual now can be entirely written in
Org.
That was part of the motivation behind writing the exporter in the first
place.

Regards,

--
Jonathan

[-- Attachment #2: Type: text/html, Size: 1735 bytes --]

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

* Re: [RFC] Dog food, anyone?
  2017-12-19 20:16 ` Jonathan Leech-Pepin
@ 2017-12-19 23:11   ` Nicolas Goaziou
  2017-12-20  0:05     ` Jonathan Leech-Pepin
  0 siblings, 1 reply; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-19 23:11 UTC (permalink / raw)
  To: Jonathan Leech-Pepin; +Cc: Org Mode List

Hello,

Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> writes:

> As Thomas mentioned I had originally written the exporter.  

I know. You are credited as the author of ox-texinfo.el. Did I mention
otherwise?

> I'd done my best to get it to work with the majority of the org.texi
> however there were certain features that did not seem to be present at
> the time in Org (or at least no convenient method to simulate them
> without macros).

Just to prevent miscommunication, I wasn't criticizing your work when
I wrote I had improved the back-end.

Regards,

-- 
Nicolas Goaziou

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

* Re: [RFC] Dog food, anyone?
  2017-12-19 23:11   ` Nicolas Goaziou
@ 2017-12-20  0:05     ` Jonathan Leech-Pepin
  2017-12-20  0:59       ` Thomas S. Dye
  0 siblings, 1 reply; 39+ messages in thread
From: Jonathan Leech-Pepin @ 2017-12-20  0:05 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Hello,

On December 19, 2017 6:11:21 PM EST, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>Hello,
>
>Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> writes:
>
>> As Thomas mentioned I had originally written the exporter.  
>
>I know. You are credited as the author of ox-texinfo.el. Did I mention
>otherwise?
>

It had partially sounded like you were saying both the backend and the work on manual.org were his. Might just have been a misinterpretation though.

>> I'd done my best to get it to work with the majority of the org.texi
>> however there were certain features that did not seem to be present
>at
>> the time in Org (or at least no convenient method to simulate them
>> without macros).
>
>Just to prevent miscommunication, I wasn't criticizing your work when
>I wrote I had improved the back-end.
>

I didn’t take it as criticism, when I’d started working on it the new export engine was still in it’s infancy and a lot of the work you’ve done to improve performance and parsing hadn’t occurred yet.  I’m glad it was complete enough to let Thomas start his work and give you a basis for improving to allow for a full manual.

>Regards,

-- 
Jonathan

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

* Re: [RFC] Dog food, anyone?
  2017-12-20  0:05     ` Jonathan Leech-Pepin
@ 2017-12-20  0:59       ` Thomas S. Dye
  0 siblings, 0 replies; 39+ messages in thread
From: Thomas S. Dye @ 2017-12-20  0:59 UTC (permalink / raw)
  To: Jonathan Leech-Pepin; +Cc: Org Mode List, Nicolas Goaziou

Aloha Jonathan,

Jonathan Leech-Pepin writes:

>>
>>Just to prevent miscommunication, I wasn't criticizing your work when
>>I wrote I had improved the back-end.
>>
>
> I didn’t take it as criticism, when I’d started working on it the new export engine was still in it’s infancy and a lot of the work you’ve done to improve performance and parsing hadn’t occurred yet.  I’m glad it was complete enough to let Thomas start his work and give you a basis for improving to allow for a full manual.

I remember that working with you, and with your software, was a real
pleasure.  Like you, I'm pleased our work provided some basis for
Nicolas' accomplishment.

All the best,
Tom

--
Thomas S. Dye
http://www.tsdye.com

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

* Re: [RFC] Dog food, anyone?
       [not found] ` <WM!57dfd1c25b2c2af3021c1294841c916968d326cf362c32864a6fbc9615cf19dba6ceadc1960e4c3ef5578687af476fba!@mailhub-mx1.ncl.ac.uk>
@ 2017-12-21 12:58   ` Phillip Lord
  2017-12-21 13:37     ` Nicolas Goaziou
  0 siblings, 1 reply; 39+ messages in thread
From: Phillip Lord @ 2017-12-21 12:58 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List


Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> The task started by Thomas S. Dye a couple years ago is now complete.
> The "manual.org" file in "contrib/" directory is an up-to-date,
> sometimes enhanced, version of the Org manual. Org can now eat its own
> dog food.
>
> During the process, I had to re-organize some parts of the manual (e.g.,
> "Working with source code" section, the concept index...) and improve
> the "texinfo" export back-end, which was not up to the task when Thomas
> started it.


Good stuff!

My question about this and your experiences with ox-texinfo, is would it
be possible to integrate this into a workflow where a manual was
converted piece-meal.

So, if a texinfo manual was multi-part (like the Emacs manual for
instance), it could be converted one file at a time, rather than having
to do the whole lot.

Phil

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

* Re: [RFC] Dog food, anyone?
  2017-12-21 12:58   ` Phillip Lord
@ 2017-12-21 13:37     ` Nicolas Goaziou
  2017-12-21 17:26       ` Phillip Lord
  0 siblings, 1 reply; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-21 13:37 UTC (permalink / raw)
  To: Phillip Lord; +Cc: Org Mode List

Hello,

phillip.lord@russet.org.uk (Phillip Lord) writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> Hello,
>>
>> The task started by Thomas S. Dye a couple years ago is now complete.
>> The "manual.org" file in "contrib/" directory is an up-to-date,
>> sometimes enhanced, version of the Org manual. Org can now eat its own
>> dog food.
>>
>> During the process, I had to re-organize some parts of the manual (e.g.,
>> "Working with source code" section, the concept index...) and improve
>> the "texinfo" export back-end, which was not up to the task when Thomas
>> started it.
>
>
> Good stuff!
>
> My question about this and your experiences with ox-texinfo, is would it
> be possible to integrate this into a workflow where a manual was
> converted piece-meal.
>
> So, if a texinfo manual was multi-part (like the Emacs manual for
> instance), it could be converted one file at a time, rather than having
> to do the whole lot.

You can use #+INCLUDE keywords for that.

Regards, 

-- 
Nicolas Goaziou                                                0x80A93738

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

* Re: [RFC] Dog food, anyone?
  2017-12-21 13:37     ` Nicolas Goaziou
@ 2017-12-21 17:26       ` Phillip Lord
  2017-12-21 19:53         ` Nicolas Goaziou
  0 siblings, 1 reply; 39+ messages in thread
From: Phillip Lord @ 2017-12-21 17:26 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

>> Good stuff!
>>
>> My question about this and your experiences with ox-texinfo, is would it
>> be possible to integrate this into a workflow where a manual was
>> converted piece-meal.
>>
>> So, if a texinfo manual was multi-part (like the Emacs manual for
>> instance), it could be converted one file at a time, rather than having
>> to do the whole lot.
>
> You can use #+INCLUDE keywords for that.


I was wondering the other way around. Can org produce .texi that
could be part of a larger existing texinfo. So, something that can be
@include'd.

Phil

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

* Re: [RFC] Dog food, anyone?
  2017-12-21 17:26       ` Phillip Lord
@ 2017-12-21 19:53         ` Nicolas Goaziou
       [not found]           ` <WM!3e1c2e8dc2d528e2348759d2a34555337e2f3a5782534bcece582121239ecf030ff1b6d5efd2b2c4955a04c496f00ac6!@mailhub-mx2.ncl.ac.uk>
  0 siblings, 1 reply; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-21 19:53 UTC (permalink / raw)
  To: Phillip Lord; +Cc: Org Mode List

phillip.lord@russet.org.uk (Phillip Lord) writes:

> I was wondering the other way around. Can org produce .texi that
> could be part of a larger existing texinfo. So, something that can be
> @include'd.

I don't see why it couldn't. Do you have any difficulty in mind?

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

* Re: [RFC] Dog food, anyone?
       [not found]           ` <WM!3e1c2e8dc2d528e2348759d2a34555337e2f3a5782534bcece582121239ecf030ff1b6d5efd2b2c4955a04c496f00ac6!@mailhub-mx2.ncl.ac.uk>
@ 2017-12-21 22:13             ` Phillip Lord
  2017-12-22 18:30               ` Nicolas Goaziou
  0 siblings, 1 reply; 39+ messages in thread
From: Phillip Lord @ 2017-12-21 22:13 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> phillip.lord@russet.org.uk (Phillip Lord) writes:
>
>> I was wondering the other way around. Can org produce .texi that
>> could be part of a larger existing texinfo. So, something that can be
>> @include'd.
>
> I don't see why it couldn't. Do you have any difficulty in mind?


Oh, might even be trivial things. I mean, emacs.texi contains a "title"
statement, but none of its include files do. Also, cross references, I
believe have to be unique within a file and all include files.

Phil

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

* Re: [RFC] Dog food, anyone?
  2017-12-21 22:13             ` Phillip Lord
@ 2017-12-22 18:30               ` Nicolas Goaziou
  0 siblings, 0 replies; 39+ messages in thread
From: Nicolas Goaziou @ 2017-12-22 18:30 UTC (permalink / raw)
  To: Phillip Lord; +Cc: Org Mode List

Hello,

phillip.lord@russet.org.uk (Phillip Lord) writes:

> Oh, might even be trivial things. I mean, emacs.texi contains a "title"
> statement, but none of its include files do.

You need to export other files "body only".

> Also, cross references, I believe have to be unique within a file and
> all include files.

Org cannot ensure node name (if that's what you are talking about) are
unique across multiple files at the moment. You need to make sure there
are no headlines with the same name in two different files.

Regards,

-- 
Nicolas Goaziou

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 10:34 Nicolas Goaziou
                   ` (6 preceding siblings ...)
       [not found] ` <WM!57dfd1c25b2c2af3021c1294841c916968d326cf362c32864a6fbc9615cf19dba6ceadc1960e4c3ef5578687af476fba!@mailhub-mx1.ncl.ac.uk>
@ 2017-12-23  6:56 ` Yasushi SHOJI
  2017-12-23 14:12   ` Kaushal Modi
  2018-04-26 23:34 ` Bastien
  8 siblings, 1 reply; 39+ messages in thread
From: Yasushi SHOJI @ 2017-12-23  6:56 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Hi Nicolas,

On Sun, Dec 17, 2017 at 7:34 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> The task started by Thomas S. Dye a couple years ago is now complete.
> The "manual.org" file in "contrib/" directory is an up-to-date,
> sometimes enhanced, version of the Org manual. Org can now eat its own
> dog food.

This is at great news!!

I remember a thread on the emacs-devel saying that texinfo html exporter doesn't
render as cute as the current standard (whatever that is).
But now we have the manual in org, and we can convert it to many format.

I just tried rst exporter, which I just happen to be using, and it works great,
with the following tiny patch. And the results is this.

http://org-manual.readthedocs.io/en/latest/

Info and orgmode.org/org.html is already super useful so this doesn't
gain much for me.  but someone might like the way it renders.

regards,
-- 
           yashi (now on to fix my own exporters ;-p)

--- ox-rst.el~ 2017-11-22 21:01:58.503667382 +0900
+++ ox-rst.el 2017-11-22 21:52:31.213331562 +0900
@@ -1086,7 +1086,7 @@
   ;; Protect ..
   (setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\.. " text))
   ;; Protect ^\d+.
-  (setq text (replace-regexp-in-string "^\\([[:digit:]]\\)+\\." "\\1\\." text))
+  (setq text (replace-regexp-in-string "^\\([[:digit:]]\\)+\\."
"\\\\\\1." text))
   ;; Return value.
   text)

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

* Re: [RFC] Dog food, anyone?
  2017-12-23  6:56 ` Yasushi SHOJI
@ 2017-12-23 14:12   ` Kaushal Modi
  2017-12-25  1:44     ` Yasushi SHOJI
  0 siblings, 1 reply; 39+ messages in thread
From: Kaushal Modi @ 2017-12-23 14:12 UTC (permalink / raw)
  To: Yasushi SHOJI; +Cc: Org Mode List, Nicolas Goaziou

[-- Attachment #1: Type: text/plain, Size: 763 bytes --]

On Sat, Dec 23, 2017, 1:57 AM Yasushi SHOJI <yasushi.shoji@gmail.com> wrote:

> I just tried rst exporter, which I just happen to be using, and it works
> great,
> with the following tiny patch. And the results is this.
>
> http://org-manual.readthedocs.io/en/latest/
>
> Info and orgmode.org/org.html is already super useful so this doesn't
> gain much for me.  but someone might like the way it renders.
>

Thanks for sharing that! I do like the colors and syntax highlighting on
readthedocs.io.

The only minor issue is that it loads the whole manual as a single HTML
page, so it takes a while to load. Do you know if there's a way to set it
up so that it shows a single page per node as orgmode.org does? Even if
not, this is wonderful :)

> --

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1551 bytes --]

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

* Re: [RFC] Dog food, anyone?
  2017-12-23 14:12   ` Kaushal Modi
@ 2017-12-25  1:44     ` Yasushi SHOJI
  0 siblings, 0 replies; 39+ messages in thread
From: Yasushi SHOJI @ 2017-12-25  1:44 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: Org Mode List, Nicolas Goaziou

Hi,

On Sat, Dec 23, 2017 at 11:12 PM, Kaushal Modi <kaushal.modi@gmail.com> wrote:
> The only minor issue is that it loads the whole manual as a single HTML
> page, so it takes a while to load. Do you know if there's a way to set it up
> so that it shows a single page per node as orgmode.org does?

I've looked around the doc but not sure how.  They support multi-files with
index, so it might be that we need to export to multi rst files?

Does org support such an export option?
-- 
           yashi

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

* Re: [RFC] Dog food, anyone?
  2017-12-17 10:34 Nicolas Goaziou
                   ` (7 preceding siblings ...)
  2017-12-23  6:56 ` Yasushi SHOJI
@ 2018-04-26 23:34 ` Bastien
  2018-04-28 10:56   ` Nicolas Goaziou
  2018-05-09  0:30   ` Nicolas Goaziou
  8 siblings, 2 replies; 39+ messages in thread
From: Bastien @ 2018-04-26 23:34 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org Mode List

Hi Nicolas,

it would be nice to make the switch to org-manual.org for Org 9.2,
and to delete org.texi entirely from the master branch.

I guess we need to add some Makefile rules so that "make pdf" first
exports .org => .texi then exports .texi to .pdf... is that so?

I'd rather make the switch now so that users and contributors are
not confused by the presence of two manuals in the repo.

Thanks,

-- 
 Bastien

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

* Re: [RFC] Dog food, anyone?
  2018-04-26 23:34 ` Bastien
@ 2018-04-28 10:56   ` Nicolas Goaziou
  2018-04-28 12:43     ` Bastien
  2018-05-09  0:30   ` Nicolas Goaziou
  1 sibling, 1 reply; 39+ messages in thread
From: Nicolas Goaziou @ 2018-04-28 10:56 UTC (permalink / raw)
  To: Bastien; +Cc: Org Mode List

Hello,

Bastien <bzg@gnu.org> writes:

> it would be nice to make the switch to org-manual.org for Org 9.2,
> and to delete org.texi entirely from the master branch.

We already switched to "org-manual.org" in the sense that current
"org.texi" is generated from "org-manual.org".

> I guess we need to add some Makefile rules so that "make pdf" first
> exports .org => .texi then exports .texi to .pdf... is that so?

I guess we could extend the "info" rule to generate the ".texi" file out
of "org-manual.org" first. For example, in "doc/Makefile",  we could
either add a pre-requisite to the following rule:

  info:             org

e.g.,

  info:         org.texi org

  org.texi: org-manual.org
       $(BATCH) \
         --eval '(add-to-list '"'"'load-path "../lisp")' \
         --eval '(load "org-compat.el")' \
	 --eval '(load "../mk/org-fixup.el")' \
	 --eval '(org-generate-texinfo-manual "$<" "@$")'
       $(MAKEINFO) --no-split $< -o $@

assuming `org-generate-texinfo-manual' is defined in "org-fixup.el".

However, the above may require to mess with the match-all rule

  .SUFFIXES:	.texi .tex .txt _letter.tex
  
  %:		%.texi org-version.inc
  	$(MAKEINFO) --no-split $< -o $@

In particular, we might drop the "org-version.inc" file. But the build
system is tricky, I admit I do not understand it totally.

BTW, I wonder why the build system needs to create an "org" file,
without extension, equivalent to "org.info".

Regards,

-- 
Nicolas Goaziou

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

* Re: [RFC] Dog food, anyone?
  2018-04-28 10:56   ` Nicolas Goaziou
@ 2018-04-28 12:43     ` Bastien
  0 siblings, 0 replies; 39+ messages in thread
From: Bastien @ 2018-04-28 12:43 UTC (permalink / raw)
  To: Nicolas Goaziou, Achim Gratz; +Cc: Org Mode List

Hi Nicolas,

I'm cc'ing Achim as I seem to remember he offered to help writing
needed rules for the switch to org-manual.org to be complete.

> I guess we could extend the "info" rule to generate the ".texi" file out
> of "org-manual.org" first. For example, in "doc/Makefile",  we could
> either add a pre-requisite to the following rule:
>
>   info:             org
>
> e.g.,
>
>   info:         org.texi org
>
>   org.texi: org-manual.org
>        $(BATCH) \
>          --eval '(add-to-list '"'"'load-path "../lisp")' \
>          --eval '(load "org-compat.el")' \
> 	 --eval '(load "../mk/org-fixup.el")' \
> 	 --eval '(org-generate-texinfo-manual "$<" "@$")'
>        $(MAKEINFO) --no-split $< -o $@
>
> assuming `org-generate-texinfo-manual' is defined in "org-fixup.el".
>
> However, the above may require to mess with the match-all rule
>
>   .SUFFIXES:	.texi .tex .txt _letter.tex
>   
>   %:		%.texi org-version.inc
>   	$(MAKEINFO) --no-split $< -o $@
>
> In particular, we might drop the "org-version.inc" file. But the build
> system is tricky, I admit I do not understand it totally.

Achim, what do you think?

If we can drop the org-version.inc, that's even better.

> BTW, I wonder why the build system needs to create an "org" file,
> without extension, equivalent to "org.info".

I guess that's a leftover from old times, when the .info extension on
info files was not systematic.

-- 
 Bastien

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

* Re: [RFC] Dog food, anyone?
  2018-04-26 23:34 ` Bastien
  2018-04-28 10:56   ` Nicolas Goaziou
@ 2018-05-09  0:30   ` Nicolas Goaziou
  2018-05-09 18:16     ` Gregor Zattler
  1 sibling, 1 reply; 39+ messages in thread
From: Nicolas Goaziou @ 2018-05-09  0:30 UTC (permalink / raw)
  To: Bastien; +Cc: Org Mode List

Hello,

Bastien <bzg@gnu.org> writes:

> it would be nice to make the switch to org-manual.org for Org 9.2,
> and to delete org.texi entirely from the master branch.

Done.

> I guess we need to add some Makefile rules so that "make pdf" first
> exports .org => .texi then exports .texi to .pdf... is that so?

Done (or so I think).

Regards,

-- 
Nicolas Goaziou                                                0x80A93738

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

* Re: [RFC] Dog food, anyone?
@ 2018-05-09 18:11 Jon Snader
  2018-05-10  8:02 ` Neil Jerram
  0 siblings, 1 reply; 39+ messages in thread
From: Jon Snader @ 2018-05-09 18:11 UTC (permalink / raw)
  To: Nicolas Goaziou, Bastien, Org-mode

This is excellent. I love that, as Nicolas says, we're eating our 
own
dog food. Perhaps this will put to rest the doubts expressed on
Emacs-Devel a year or two ago in the thread about replacing 
TeXinfo as
to whether Org mode was up to the task.

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

* Re: [RFC] Dog food, anyone?
  2018-05-09  0:30   ` Nicolas Goaziou
@ 2018-05-09 18:16     ` Gregor Zattler
  2018-05-09 19:12       ` Nicolas Goaziou
  0 siblings, 1 reply; 39+ messages in thread
From: Gregor Zattler @ 2018-05-09 18:16 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2180 bytes --]

Hi Nicolas, Org mode developers,
* Nicolas Goaziou <mail@nicolasgoaziou.fr> [2018-05-09; 02:30]:
> Bastien <bzg@gnu.org> writes:
>
>> it would be nice to make the switch to org-manual.org for Org 9.2,
>> and to delete org.texi entirely from the master branch.
>
> Done.
>
>> I guess we need to add some Makefile rules so that "make pdf" first
>> exports .org => .texi then exports .texi to .pdf... is that so?
>
> Done (or so I think).

Hurray!

I found that org-float instead of diary-float is documented in
org-manual.org although ORG-NEWS says to use diary-float instead:

~/src/org-mode$ rgrep  org-float
etc/ORG-NEWS:** =org-float= is now obsolete, use =diary-float= instead
Binary file lisp/org-compat.elc matches
lisp/org-compat.el:(define-obsolete-function-alias 'org-float-time 'float-time "Org 9.0")
testing/lisp/test-org.el:   (org-test-with-temp-text "<%%(org-float t 4 2)>"
testing/lisp/test-org.el:   (equal "<%%(org-float t 4 2)>"
testing/lisp/test-org.el:         (org-test-with-temp-text "<%%(org-float t 4 2)>"
doc/org.texi:  <%%(org-float t 4 2)>
doc/org.texi:<%%(org-float t 42)>
doc/org-manual.org:       <%%(org-float t 4 2)>
doc/org-manual.org:: <%%(org-float t 42)>
doc/org:            <%%(org-float t 4 2)>
doc/org:     <%%(org-float t 42)>
doc/org.html:  &lt;%%(org-float t 4 2)&gt;
doc/org.html:<pre class="example">&lt;%%(org-float t 42)&gt;


~/src/org-mode$ rgrep  diary-float
etc/ORG-NEWS:** =org-float= is now obsolete, use =diary-float= instead
testing/lisp/test-org-element.el:  (should (equal (org-test-parse-and-interpret "<%%diary-float t 4 2>")
testing/lisp/test-org-element.el:                "<%%diary-float t 4 2>\n"))
doc/orgguide.texi:  <%%(diary-float t 4 2)>

org-guide.texi is already up to date with respect to
diary-float.

I made a very simple patch for org-manual.org but none for
test-org.el or test-org-element.el since I do not understand
them.  When reading about documentation standards I found that
Org manuals filename and directory wasn't up to date, so I fixed
this.  I assume that the parts of doc/Documentation_Standards.org
which deal with texinfo formatting are also out of date but do
not know how to rewrite them.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Tiny-doc-fixes.patch --]
[-- Type: text/x-diff, Size: 2144 bytes --]

From b45739a23b093e1ee54ae09be8172720fa611628 Mon Sep 17 00:00:00 2001
From: Gregor Zattler <telegraph@gmx.net>
Date: Wed, 9 May 2018 19:51:51 +0200
Subject: [PATCH] ; Tiny doc fixes

* doc/org-manual.org (Dates and Times) (Timestamps, Deadlines and
  Scheduling): Document "diary-float" instead of obsolete "org-float".
* doc/Documentation_Standards.org (org-manual.org specific
  conventions): Fix file name and directory of Org manual.

Copyright-paperwork-exempt: yes
TINYCHANGE
---
 doc/Documentation_Standards.org | 4 ++--
 doc/org-manual.org              | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/Documentation_Standards.org b/doc/Documentation_Standards.org
index 9d8f19fe6..c4dd862db 100644
--- a/doc/Documentation_Standards.org
+++ b/doc/Documentation_Standards.org
@@ -94,10 +94,10 @@ I have made them up of course).
 - Entries in the concept index are normally all lower case unless some
   other rule dictates otherwise.
 
-* orgmanual.org specific conventions
+* org-manual.org specific conventions
 
 Org git repository comes with an .org version of the manual in the
-=contrib/= directory.  Here are indications that are specific to this
+=doc/= directory.  Here are indications that are specific to this
 version of the manual.
 
 - Five of the standard Texinfo indexes are used in the Org manual:
diff --git a/doc/org-manual.org b/doc/org-manual.org
index eb6c96fb2..d9e95b1ee 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -5779,7 +5779,7 @@ the agenda (see [[*Weekly/daily agenda]]).  We distinguish:
 
      #+begin_example
      ,* 22:00-23:00 The nerd meeting on every 2nd Thursday of the month
-       <%%(org-float t 4 2)>
+       <%%(diary-float t 4 2)>
      #+end_example
 
 - Time/Date range ::
@@ -6158,7 +6158,7 @@ entries.  Org mode issues early and late warnings based on the
 assumption that the timestamp represents the /nearest instance/ of the
 repeater.  However, the use of diary S-exp entries like
 
-: <%%(org-float t 42)>
+: <%%(diary-float t 42)>
 
 #+texinfo: @noindent
 in scheduling and deadline timestamps is limited.  Org mode does not
-- 
2.11.0


[-- Attachment #3: Type: text/plain, Size: 141 bytes --]


I'm not sure if "org-float" is the right way to quote this kind
of symbol in a commit message.  Please fix if not.

HTH a tiny bit, Gregor


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

* Re: [RFC] Dog food, anyone?
  2018-05-09 18:16     ` Gregor Zattler
@ 2018-05-09 19:12       ` Nicolas Goaziou
  0 siblings, 0 replies; 39+ messages in thread
From: Nicolas Goaziou @ 2018-05-09 19:12 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Gregor Zattler <telegraph@gmx.net> writes:

> I found that org-float instead of diary-float is documented in
> org-manual.org although ORG-NEWS says to use diary-float instead:

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou

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

* Re: [RFC] Dog food, anyone?
  2018-05-09 18:11 [RFC] Dog food, anyone? Jon Snader
@ 2018-05-10  8:02 ` Neil Jerram
  0 siblings, 0 replies; 39+ messages in thread
From: Neil Jerram @ 2018-05-10  8:02 UTC (permalink / raw)
  To: emacs-orgmode, Jon Snader, Nicolas Goaziou, Bastien

[-- Attachment #1: Type: text/plain, Size: 476 bytes --]

In my $dayjob we're now calling that "drinking our own champagne", which IMO is rather nicer than eating our own dog food :-)

Best wishes - Neil


On 9 May 2018 19:11:21 BST, Jon Snader <jcs@irreal.org> wrote:
>This is excellent. I love that, as Nicolas says, we're eating our 
>own
>dog food. Perhaps this will put to rest the doubts expressed on
>Emacs-Devel a year or two ago in the thread about replacing 
>TeXinfo as
>to whether Org mode was up to the task.

[-- Attachment #2: Type: text/html, Size: 760 bytes --]

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

end of thread, other threads:[~2018-05-10  8:02 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-09 18:11 [RFC] Dog food, anyone? Jon Snader
2018-05-10  8:02 ` Neil Jerram
  -- strict thread matches above, loose matches on Subject: below --
2017-12-17 10:34 Nicolas Goaziou
2017-12-17 11:59 ` Vikas Rawal
2017-12-17 18:41 ` Thomas S. Dye
2017-12-17 19:01   ` Nicolas Goaziou
2017-12-17 21:58     ` Thomas S. Dye
2017-12-17 23:03       ` Adrian Bradd
2017-12-18  1:13         ` Thomas S. Dye
2017-12-17 23:44       ` Nicolas Goaziou
2017-12-18  1:15         ` Vikas Rawal
2017-12-18  1:23         ` Thomas S. Dye
2017-12-17 18:51 ` Kaushal Modi
2017-12-17 19:27   ` Nicolas Goaziou
2017-12-17 23:10 ` Eric Abrahamsen
2017-12-18 21:02 ` Thomas S. Dye
2017-12-18 22:04   ` Nicolas Goaziou
2017-12-19  0:12     ` Thomas S. Dye
2017-12-19 19:25       ` Nicolas Goaziou
2017-12-19 20:11         ` Thomas S. Dye
2017-12-19 20:16 ` Jonathan Leech-Pepin
2017-12-19 23:11   ` Nicolas Goaziou
2017-12-20  0:05     ` Jonathan Leech-Pepin
2017-12-20  0:59       ` Thomas S. Dye
     [not found] ` <WM!57dfd1c25b2c2af3021c1294841c916968d326cf362c32864a6fbc9615cf19dba6ceadc1960e4c3ef5578687af476fba!@mailhub-mx1.ncl.ac.uk>
2017-12-21 12:58   ` Phillip Lord
2017-12-21 13:37     ` Nicolas Goaziou
2017-12-21 17:26       ` Phillip Lord
2017-12-21 19:53         ` Nicolas Goaziou
     [not found]           ` <WM!3e1c2e8dc2d528e2348759d2a34555337e2f3a5782534bcece582121239ecf030ff1b6d5efd2b2c4955a04c496f00ac6!@mailhub-mx2.ncl.ac.uk>
2017-12-21 22:13             ` Phillip Lord
2017-12-22 18:30               ` Nicolas Goaziou
2017-12-23  6:56 ` Yasushi SHOJI
2017-12-23 14:12   ` Kaushal Modi
2017-12-25  1:44     ` Yasushi SHOJI
2018-04-26 23:34 ` Bastien
2018-04-28 10:56   ` Nicolas Goaziou
2018-04-28 12:43     ` Bastien
2018-05-09  0:30   ` Nicolas Goaziou
2018-05-09 18:16     ` Gregor Zattler
2018-05-09 19:12       ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).