Re: [O] newbye questions [the nnir-article-group issue]

2017-06-12 Thread Alain . Cochard
Eric Abrahamsen writes on Tue 13 Jun 2017 08:41:
 > alain.coch...@unistra.fr writes:
 > 
 > > Eric Abrahamsen writes on Sun 11 Jun 2017 14:37:
 > >  > alain.coch...@unistra.fr writes:
 > >  > 
 > >  > >>Fran?ois Patte  writes:
 > >  > >>
 > >  > >>> Le 05/06/2017 ? 12:07, Eric Abrahamsen a ?crit :
 > >  >  Fran?ois Patte  writes:
 > >  >  
 > >  > > Le 05/06/2017 ? 01:33, Eric Abrahamsen a ?crit :
 > >  > >> Fran?ois Patte  writes:
 > >  > >>
 > >  > >>> Bonjour,
 > >  > >>>
 > >  > >>> Ijust discovered org-mode for emacs and I want to explore the
 > >  > >>> capabilities of this mode for LaTeX documents.
 > >  > >>>
 > >  > >>> I have a few preliminary questions:
 > >  > >>>
 > >  > >>> 1- I installed org-mode from ELPA and I get a warning message
 > >  > >>> when I open a *.org file:
 > >  > >>> Eager macro-expansion failure: (error "Autoloading failed to
 > >  > >>> define function nnir-article-group")
 > >  > >>>
 > >  > >>> What does it mean and how to get rid of this message.
 > >
 > > [...]
 > >
 > >  Hi Eric, thanks much for the feedback.
 > >
 > >  > That was very useful, thanks for the detailed report! Looks like it's
 > >  > the same as this:
 > >  > 
 > >  > https://bugzilla.redhat.com/show_bug.cgi?id=1177978
 > >  > 
 > >  > Looks like uninstalling an emacs-goodies package might do the trick?
 > >
 > > Yes it did!  Also, the error is not present on another machine (with
 > > Fedora 23) on which I could perform a test, with simply the command
 > > 'emacs' and a void .emacs file -- and of course the emacs-goodies
 > > packages installed on that machine:
 > >
 > > Org mode version 9.0.8 (9.0.8-elpa @ /root/.emacs.d/elpa/org-20170606/)
 > >
 > > GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of
 > > 2016-04-11 on buildvm-25.phx2.fedoraproject.org
 > >
 > > Linux fruc.u-strasbg.fr 4.8.13-100.fc23.x86_64 #1 SMP Fri Dec 9
 > > 14:51:40 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
 > >
 > >> Anyway, you're meant to be loading nnir.el from
 > >> emacs//lisp/gnus/nnir.el, not site/lisp/gnus-bonus.
 > >
 > > So in your opinion what is the best to do in order to avoid this error
 > > message, and, above all, the possible consequences related to this
 > > problem? -- so far, I have not noticed any, but who knows...
 > >
 > > - get rid of the file /usr/share/emacs/site-lisp/gnus-bonus/nnir.el?
 > > - get rid of the dir /usr/share/emacs/site-lisp/gnus-bonus/altogether?
 > > - something else?
 > >
 > > Because uninstalling the emacs-goodies packages sound rather
 > > extreme...  NB: I uses gnus very rarely.
 > 
 > Perhaps you could doctor your load-path early in the init process, so
 > that /usr/share/emacs/site-lisp comes later, and is shadowed by
 > emacs//lisp? On my machine the relevant load-path elements are
 > ordered as:
 > 
 > /usr/local/share/emacs/26.0.50/site-lisp
 > /usr/local/share/emacs/site-lisp
 > /usr/local/share/emacs/26.0.50/lisp
 > 
 > If that's the case on your machine as well, perhaps you could remove
 > emacs/site-lisp, and re-add it at the end of the list. That has the
 > potential to break other things, though...

Yes, that's the same for me.  I'll try to investigate along that
line.  Thanks again for your time.

-- 
EOST (École et Observatoire des Sciences de la Terre) 
IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 106] | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France| Fax:   +33 (0)3 68 85 01 25 


Re: [O] How to get rid of first line indent?

2017-06-12 Thread Marcin Borkowski

On 2017-06-13, at 03:24, Birnle  wrote:

> Yes, John, you are surely right. From the beginning I use the Prelude
> Emacs distribution (http://batsov.com/prelude/) that comes with
> a bunch of preinstalled packages, so I don’t know yet what is original
> Emacs/Org and what is optional. So much to learn, so little time.
>
> Even for a text editing professional like me (publishing manager,
> foreign language typesetter, book producer, copy editor) Emacs is like
> an almost undiscovered parallel universe. I try boldly to go where
> just a few men have gone before …
>
> So thank you all, group, for being patient with an Emacs novice like me.

I started (almost two decades ago...) with a vanilla Emacs.  (There was
nothing like "Prelude" back then, I guess.  Also, I had no internet
access (at home) until, like, ten years later...)

Also, being a student, I had much free time then.  I read most of the
Emacs manual.  That helped _a lot_.

BTW, Emacs absolutely rocks for copyediting (which I also happen to do),
since you can define lots of little commands to ease the repetitive
tasks.  And yes, you probably do need to learn Lisp to master Emacs.
Start with "An Introduction to Programming in Emacs Lisp" by Robert
J. Chassell (evaluate the form (info "eintr")).

Best,

--
Marcin Borkowski



[O] Offtopic: Auto Loading org2blog Mode

2017-06-12 Thread Grant Rettke
Good evening,

org2blog users:

Add #+ORG2BLOG: to your blog post or page and org2blog will get auto loaded...

after you get the latest code and make the following changes:

https://github.com/punchagan/org2blog#auto-loading-org2blog-mode

Let me know how it goes.

Sincerely,

Grant Rettke



Re: [O] How to get rid of first line indent?

2017-06-12 Thread Marcin Borkowski

On 2017-06-12, at 23:42, Birnle  wrote:

> Thank you, John, for your answer. And no, it’s much too early for me
> to be sure … But C-c n does actually indent each (first) line with
> whitespace according to the number of asterisks in the heading.
>
> The easiest and fastest solution is in fact deleting the leading
> whitespace in every line by replace-regexp (replace ^ + by nothing).

The easiest and fastest solution is probably to use delete-rectangle (or
rectangle-mark-mode and then DEL).

Hth,

-- 
Marcin Borkowski



[O] Best book to get from novice to guru?

2017-06-12 Thread Birnle

Dear group,

Since I like to know my daily used software „by heart“ and I really 
don’t want to ask too many silly questions, here’s another:


Which book (or books) do I have to read / work through to get from 
Emacs/Org novice to (almost) guru? Which is/are the best in your 
opinion?


I’ve seen that there is

- the *GNU Emacs Manual* from Richard Stallman
- *The Org Mode 7 Reference Manual* from Carsten Dominik and others
- *Mastering Emacs* from Mickey Petersen (www.masteringemacs.org)

Are there more? Which one is obligatory? And I know the sites

- www.emacswiki.org
- orgmode.org

and some others. All the good information is out there, but where is it 
bundled in one (or two or three) book(s)?


And is it necessary to learn Lisp in order to master Emacs?

Best,
Birnle



Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, John, you are surely right. From the beginning I use the Prelude 
Emacs distribution (http://batsov.com/prelude/) that comes with a bunch 
of preinstalled packages, so I don’t know yet what is original 
Emacs/Org and what is optional. So much to learn, so little time.


Even for a text editing professional like me (publishing manager, 
foreign language typesetter, book producer, copy editor) Emacs is like 
an almost undiscovered parallel universe. I try boldly to go where just 
a few men have gone before …


So thank you all, group, for being patient with an Emacs novice like me.

Best,
Birnle

On 13 Jun 2017, at 1:13, John Kitchin wrote:

The C-c n binding is not defined in org-mode though as far as I know. 
That

suggests it is something outside of org-mode doing that.

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Mon, Jun 12, 2017 at 5:42 PM, Birnle  wrote:

Thank you, John, for your answer. And no, it’s much too early for 
me to be
sure … But C-c n does actually indent each (first) line with 
whitespace

according to the number of asterisks in the heading.

The easiest and fastest solution is in fact deleting the leading
whitespace in every line by replace-regexp (replace ^ + by nothing).


On 12 Jun 2017, at 18:57, John Kitchin wrote:


On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:


crux-cleanup-buffer-or-region



if that command is what does it, then it is happening outside of 
org-mode.
I guess it is a command from here: https://github.com/bbatsov/crux 
and

that it is in a hook function somewhere.

However, I am skeptical this command is what is doing it, because I 
also

see this happen occasionally. Are you sure it isn't because
of org-indent-mode?



John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803 <(412)%20268-7803>
@johnkitchin
http://kitchingroup.cheme.cmu.edu







Re: [O] newbye questions [the nnir-article-group issue]

2017-06-12 Thread Eric Abrahamsen
alain.coch...@unistra.fr writes:

> Eric Abrahamsen writes on Sun 11 Jun 2017 14:37:
>  > alain.coch...@unistra.fr writes:
>  > 
>  > >>Fran?ois Patte  writes:
>  > >>
>  > >>> Le 05/06/2017 ? 12:07, Eric Abrahamsen a ?crit :
>  >  Fran?ois Patte  writes:
>  >  
>  > > Le 05/06/2017 ? 01:33, Eric Abrahamsen a ?crit :
>  > >> Fran?ois Patte  writes:
>  > >>
>  > >>> Bonjour,
>  > >>>
>  > >>> Ijust discovered org-mode for emacs and I want to explore the
>  > >>> capabilities of this mode for LaTeX documents.
>  > >>>
>  > >>> I have a few preliminary questions:
>  > >>>
>  > >>> 1- I installed org-mode from ELPA and I get a warning message
>  > >>> when I open a *.org file:
>  > >>> Eager macro-expansion failure: (error "Autoloading failed to
>  > >>> define function nnir-article-group")
>  > >>>
>  > >>> What does it mean and how to get rid of this message.
>
> [...]
>
>  Hi Eric, thanks much for the feedback.
>
>  > That was very useful, thanks for the detailed report! Looks like it's
>  > the same as this:
>  > 
>  > https://bugzilla.redhat.com/show_bug.cgi?id=1177978
>  > 
>  > Looks like uninstalling an emacs-goodies package might do the trick?
>
> Yes it did!  Also, the error is not present on another machine (with
> Fedora 23) on which I could perform a test, with simply the command
> 'emacs' and a void .emacs file -- and of course the emacs-goodies
> packages installed on that machine:
>
> Org mode version 9.0.8 (9.0.8-elpa @ /root/.emacs.d/elpa/org-20170606/)
>
> GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of
> 2016-04-11 on buildvm-25.phx2.fedoraproject.org
>
> Linux fruc.u-strasbg.fr 4.8.13-100.fc23.x86_64 #1 SMP Fri Dec 9
> 14:51:40 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>
>> Anyway, you're meant to be loading nnir.el from
>> emacs//lisp/gnus/nnir.el, not site/lisp/gnus-bonus.
>
> So in your opinion what is the best to do in order to avoid this error
> message, and, above all, the possible consequences related to this
> problem? -- so far, I have not noticed any, but who knows...
>
> - get rid of the file /usr/share/emacs/site-lisp/gnus-bonus/nnir.el?
> - get rid of the dir /usr/share/emacs/site-lisp/gnus-bonus/altogether?
> - something else?
>
> Because uninstalling the emacs-goodies packages sound rather
> extreme...  NB: I uses gnus very rarely.

Perhaps you could doctor your load-path early in the init process, so
that /usr/share/emacs/site-lisp comes later, and is shadowed by
emacs//lisp? On my machine the relevant load-path elements are
ordered as:

/usr/local/share/emacs/26.0.50/site-lisp
/usr/local/share/emacs/site-lisp
/usr/local/share/emacs/26.0.50/lisp

If that's the case on your machine as well, perhaps you could remove
emacs/site-lisp, and re-add it at the end of the list. That has the
potential to break other things, though...

Eric




Re: [O] How to get rid of first line indent?

2017-06-12 Thread John Kitchin
The C-c n binding is not defined in org-mode though as far as I know. That
suggests it is something outside of org-mode doing that.

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Mon, Jun 12, 2017 at 5:42 PM, Birnle  wrote:

> Thank you, John, for your answer. And no, it’s much too early for me to be
> sure … But C-c n does actually indent each (first) line with whitespace
> according to the number of asterisks in the heading.
>
> The easiest and fastest solution is in fact deleting the leading
> whitespace in every line by replace-regexp (replace ^ + by nothing).
>
>
> On 12 Jun 2017, at 18:57, John Kitchin wrote:
>
>
> On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:
>
>> crux-cleanup-buffer-or-region
>>
>
> if that command is what does it, then it is happening outside of org-mode.
> I guess it is a command from here: https://github.com/bbatsov/crux and
> that it is in a hook function somewhere.
>
> However, I am skeptical this command is what is doing it, because I also
> see this happen occasionally. Are you sure it isn't because
> of org-indent-mode?
>
>
>
> John
>
> ---
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803 <(412)%20268-7803>
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
>


Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, John, thank you! Sometimes it is so easy … if you know it. Great. 
Now I can export to Markdown and ODT directly.



On 12 Jun 2017, at 19:15, John Ankarström wrote:


Birnle  writes:

But I’ve read that it is possible to directly export to Markdown 
– that is the
format I usually work with. By exporting an Org mode file these 
unnecessary
spaces should be erased. I just have to figure out how to export to 
Markdown

from Org mode … Do you know a good online How-to?


Exporting to Markdown is built into Org-mode, accessible from the
C-c C-e export menu, but might not be enabled by default. To
enable it, customize `org-export-backends' (M-x customize RET
org-export-backends RET) and enable export to Markdown format
(`md').

Then you can press C-c C-e m m to export the Org document to a
.md file.

- John




Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Thank you, John, for your answer. And no, it’s much too early for me 
to be sure … But C-c n does actually indent each (first) line with 
whitespace according to the number of asterisks in the heading.


The easiest and fastest solution is in fact deleting the leading 
whitespace in every line by replace-regexp (replace ^ + by nothing).




On 12 Jun 2017, at 18:57, John Kitchin wrote:


On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:


crux-cleanup-buffer-or-region



if that command is what does it, then it is happening outside of 
org-mode.
I guess it is a command from here: https://github.com/bbatsov/crux and 
that

it is in a hook function somewhere.

However, I am skeptical this command is what is doing it, because I 
also

see this happen occasionally. Are you sure it isn't because
of org-indent-mode?



John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu





Re: [O] How to export LaTeX amsmath align bmatrix to ODT?

2017-06-12 Thread edgar

On 2017-06-10 05:13, ed...@openmail.cc wrote:

On 2017-06-10 04:54, ed...@openmail.cc wrote:

Hello,

I have been making progress with my export procedure to ODT. I would
like to know if someone knows how to export the following LaTeX block
to ODT correctly:

\[\begin{align} \begin{bmatrix} a = 1 & b=2 \\ c=3 & d = 4
\end{bmatrix} \end{align}\]
https://www.vfemail.net/roundcube/?_task=mail&_action=compose&_id=289067995593b7fd683a1f#
\[\begin{align}  a = & 1 + 2 + 3 + 4 \\ c = &  4 \end{bmatrix} 
\end{align}\]


As always, any help is welcome :) .


Edgar


By the way, I tried with latexmlmath and mathtoweb.jar without success.


Ok. I got it (with a minor glitch). If someone can help me to get the 
right colors on the screen (my screen is black; the \tensor symbol is 
also black), I would appreciate it. Now I can export to ODT with my 
custom symbols and the bmatrix environment.


For the record, I had modified org-preview-latex-process-alist to get 
custom symbols, and this got in the way of the LaTeX bmatrix environment 
(I don't know how; I was loading a file with with :latex-header as 
"\\input{preamble.tex}").


My partial answer (it is partial, because the \tensor preview renders in 
a different color than the rest of symbols): Instead of modifying 
org-preview-latex-process-alist, the answer I modified 
org-format-tex-header. I added the following at the end of M-x 
customize-variable org-format-tex-header (I leave it here for posterity; 
I added some symbols: tensor, derivative, vector, Roman numeral, etc.)


\usepackage{stackengine}
\stackMath
% Does not work
% \newcommand\tenq[2]{%
% \def\useanchorwidth{T}%
%  \ifnum#1>1%
%
\stackunder[0pt]{\tenq[\numexpr#1-1\relax]{#2}}{\scriptscriptstyle\sim}%

%  \else%
%\stackunder[1pt]{#2}{\scriptscriptstyle\sim}%
%  \fi%
%}

% Change del operator to d
% 
http://tex.stackexchange.com/questions/178946/better-automatic-spacing-of-differential-d

\renewcommand{\d}[1]{\mathop{\mathrm{d}{#1}}\!{}}
\newcommand{\del}[1]{\d{\left(#1\right)}}
\newcommand{\diff}[2]{
  \frac{\d{}}{\d{#2}}
  \left(#1\right)}
\newcommand{\deriv}[2]{
  \frac{\del{#1}}{\d{#2}}}

% https://tex.stackexchange.com/a/229547
\renewcommand{\vec}[1]{
  \hbox{\oalign{$#1$\crcr\hidewidth$\scriptscriptstyle\sim$\hidewidth}}}
% --- Define \dvec and \ddvec for dotted and double-dotted vectors.
\newcommand{\dvec}[1]{\dot{\vec{#1}}}
\newcommand{\ddvec}[1]{\ddot{\vec{#1}}}

% 
https://tex.stackexchange.com/questions/229543/double-tilde-symbol-under-letter

\newcommand{\dtens}[1]{
  
\stackunder[0pt]{\stackunder[1pt]{#1}{\scriptscriptstyle\sim}}{\scriptscriptstyle\sim}}


\newcommand{\ftens}[1]{
  
\stackunder[0pt]{\stackunder[0pt]{\stackunder[0pt]{\stackunder[1pt]{#1}{\scriptscriptstyle\sim}}{\scriptscriptstyle\sim}}{\scriptscriptstyle\sim}}{\scriptscriptstyle\sim}

}

% Define \tensor and \mtensor (matrix)
\newcommand{\tensor}[1]{\dtens{#1}}
\newcommand{\tens}[1]{\ftens{#1}}

\newcommand{\mtensor}[1]{%
  \left[{\tensor{#1}}\right]}
% --- Define \dtens and \ddtens for dotted and double-dotted tensors.
\newcommand{\dtens}[1]{\dot{\tensor{#1}}}
\newcommand{\ddtens}[1]{\ddot{\tensor{#1}}}
% --- Define \dmtens and \ddmtens for dotted and double-dotted tensors.
\newcommand{\dmtens}[1]{\dot{\mtensor{#1}}}
\newcommand{\ddmtens}[1]{\ddot{\mtensor{#1}}}

% Trace
\newcommand{\Tr}[1]{\mathop{\mathrm{tr}}\!{}\left(#1\right)}

% Have a thicker line for the mean value
%\newcommand*{\mean}[1]{\overbracket[0.65pt][-1pt]{#1}}
% amssymb, amsmath
% adapt: 
http://tex.stackexchange.com/questions/22100/the-bar-and-overline-commands
\newcommand{\mean}[1]{\mkern 
3mu\overbracket[0.65pt][-1pt]{\mkern-3mu#1\mkern-3mu}\mkern 3mu}


% Roman number III
\def\III{I\hspace{-2pt}I\hspace{-2pt}I}

-

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  



Re: [O] Allow #+SETUPFILE to point to an URL for the org file

2017-06-12 Thread Kaushal Modi
I have attached the same patch with one more test; rebased to master.

On Fri, Jun 9, 2017 at 12:59 PM Kaushal Modi  wrote:

> I have attached the updated patch, rebased to master.
>
-- 

Kaushal Modi


0001-Allow-org-file-contents-to-fetch-file-contents-from-.patch
Description: Binary data


Re: [O] mathjax

2017-06-12 Thread Colin Baxter
Dear Kaushal and Adam

> "Adam" == Adam Aviv  writes:

Adam> Another change in moving to cloudflair was that it was https
Adam> link rather than a http. It could be the case that you have
Adam> mixed content, https with http as well. Does it still not
Adam> render when you change to https?

Adam> On Sun, Jun 11, 2017 at 10:03 AM, Colin Baxter
Adam>  wrote:

I have mathjax working now. I had inserted a path to cdnjs.cloudflare
local to the file, which I had thought mistakenly was identical to the global
setting. However, one was https and the other http. As always, the devil
is in the detail.

Thank you for your help. 

Best wishes,

Colin.

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8



Re: [O] How to get rid of first line indent?

2017-06-12 Thread John Ankarström
Birnle  writes:

> But I’ve read that it is possible to directly export to Markdown – that is the
> format I usually work with. By exporting an Org mode file these unnecessary
> spaces should be erased. I just have to figure out how to export to Markdown
> from Org mode … Do you know a good online How-to?

Exporting to Markdown is built into Org-mode, accessible from the
C-c C-e export menu, but might not be enabled by default. To
enable it, customize `org-export-backends' (M-x customize RET
org-export-backends RET) and enable export to Markdown format
(`md').

Then you can press C-c C-e m m to export the Org document to a
.md file.

- John



Re: [O] How to get rid of first line indent?

2017-06-12 Thread John Kitchin
On Mon, Jun 12, 2017 at 11:49 AM, Birnle  wrote:

> crux-cleanup-buffer-or-region
>

if that command is what does it, then it is happening outside of org-mode.
I guess it is a command from here: https://github.com/bbatsov/crux and that
it is in a hook function somewhere.

However, I am skeptical this command is what is doing it, because I also
see this happen occasionally. Are you sure it isn't because
of org-indent-mode?



John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


Re: [O] [PATCH] ox-html.el: Fix display of language indicators for source blocks

2017-06-12 Thread Matt Price
Hi,

You raise two important-seeming points about my patch:

1) a feature (display of language on hover) is removed by the patch
2) the patch also breaks XHTML validation

That patch was submitted to add support for live code examples in exported
HTML (using the klipse.js  library).  As it stands right now, both changes
(addition of `data-editor-type` attribute and moving the language name
class from `pre` to `code`) are necessary to make klipse work (cf.
https://github.com/viebel/klipse).  I'd rather not lose that functionality
completely. Can you think of a way to solve both the problems without
losing klipse funcitonality? If not, would you be satisfied with an
improved docstring and maybe turning klipse off by default?


On Thu, Jun 8, 2017 at 3:42 PM, N. Raghavendra 
wrote:

> At 2017-06-08T21:24:31+02:00, Nicolas Goaziou wrote:
>
> > I'm Cc'ing Matt Price, who introduced klipse feature, for some
> > insight.
>
> Thanks for the reply, and for the information.  I'll wait for Matt
> Price's response.
>
> > You posted the patch only two days ago. I hope you understand a "bump"
> > may be a bit early at this point.
>
> Certainly.  It was less a bump than an expression of concern that my
> messages may have been lost in the general mileu of the mailing list.
>
> Cheers,
> Raghu.
>
> --
> N. Raghavendra , http://www.retrotexts.net/
> Harish-Chandra Research Institute, http://www.hri.res.in/
>
>


Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, Eric, thank you again. This is what I knew, I can do it with regexp. I 
just thought there would be a simple command that could undo the "cleanup".

But I’ve read that it is possible to directly export to Markdown – that is the 
format I usually work with. By exporting an Org mode file these unnecessary 
spaces should be erased. I just have to figure out how to export to Markdown 
from Org mode … Do you know a good online How-to?



> Am 12.6.2017 um 18:01 h schrieb Eric S Fraga :
> 
> On Monday, 12 Jun 2017 at 15:49, Birnle wrote:
>> Is there no command to "unclean" the file again?
> 
> Difficulty is defining what "unclean" means.  For instance, if it is
> simply removing spaces at the start of a line, you could use
> 
> ,[ C-h f replace-regexp RET ]
> | replace-regexp is an interactive compiled Lisp function in
> | ‘replace.el’.
> | 
> | (replace-regexp REGEXP TO-STRING  DELIMITED START END
> | BACKWARD)
> | 
> | This function is for interactive use only;
> | [...]
> `
> 
> and replace "^ +" with "" (no quotes typed).  But this would apply to
> all lines.  If you can come up with a regexp for "unclean" lines then
> this could work.
> 
> HTH,
> eric
> 
> -- 
> : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113




Re: [O] How to get rid of first line indent?

2017-06-12 Thread Eric S Fraga
On Monday, 12 Jun 2017 at 15:49, Birnle wrote:
> Is there no command to "unclean" the file again?

Difficulty is defining what "unclean" means.  For instance, if it is
simply removing spaces at the start of a line, you could use

,[ C-h f replace-regexp RET ]
| replace-regexp is an interactive compiled Lisp function in
| ‘replace.el’.
| 
| (replace-regexp REGEXP TO-STRING  DELIMITED START END
| BACKWARD)
| 
| This function is for interactive use only;
| [...]
`

and replace "^ +" with "" (no quotes typed).  But this would apply to
all lines.  If you can come up with a regexp for "unclean" lines then
this could work.

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113


signature.asc
Description: PGP signature


Re: [O] How to get rid of first line indent?

2017-06-12 Thread Birnle
Yes, Eric, thank you, that is a good idea.

Now I've found that it is more a feature than a failure – org mode thinks of it 
as "cleaning up", and it does it automagically together with some commands. 
There is even a special command for it: C-c n (crux-cleanup-buffer-or-region).

But I cannot find the command to "unclean" the text so that I get again what 
I've typed – without the whitespace before each (first) line.

The reason that I want the text as I type it (without leading whitespace) in is 
that I want to copy/paste it into other apps, where it is wrong to have the 
whitespace at the beginning of the line, so I have to erase it by hand (or 
regexp search/replace).

Is there no command to "unclean" the file again?



On 11 Jun 2017, at 16:51, Eric S Fraga wrote:

> […] if you want to see what you did when the
> "suddenly" bit happens, try typing "C-h l" (Control and H key
> simultaneously and then lower case l) to see all the most recent
> keystrokes you have made and how they have been interpreted by
> emacs. This may point to an offending command you are invoking without
> being aware.



Re: [O] mathjax

2017-06-12 Thread Kaushal Modi
On Mon, Jun 12, 2017 at 11:20 AM Colin Baxter  wrote:

> I have mathjax working now. I had inserted a path to cdnjs.cloudflare
> local to the file, which I had thought mistakenly was identical to the
> global
> setting. However, one was https and the other http. As always, the devil
> is in the detail.
>

Glad you got it sorted out!

Adam did some awesome crystal ball debugging :)
-- 

Kaushal Modi


Re: [O] mathjax

2017-06-12 Thread Adam Aviv
Another change in moving to cloudflair was that it was https link rather
than a http. It could be the case that you have mixed content, https with
http as well. Does it still not render when you change to https?



On Sun, Jun 11, 2017 at 10:03 AM, Colin Baxter  wrote:

> Dear Kaushal,
>
> > "Kaushal" == Kaushal Modi  writes:
>
> Kaushal> So all the org-mode updates on Org Elpa or Melpa since then
> Kaushal> have that in effect, and even the releases starting with
> Kaushal> version 9.0.6.
>
> Kaushal> - What's your org version?  - What do you see when you do
> Kaushal> C-h v org-html-mathjax-options ?  --
>
>
> My org is version 9.0.8, and I've appended the output for
> org-html-mathjax-options. I'm guessing the relevant bit is at the bottom.
>
>  Begin 
>
> org-html-mathjax-options is a variable defined in `ox-html.el'.
> Its value is shown below.
>
> Documentation:
> Options for MathJax setup.
>
> Alist of the following elements.  All values are strings.
>
> path  The path to MathJax.
> scale Scaling with HTML-CSS, MathML and SVG output engines.
> align How to align display math: left, center, or right.
> font  The font to use with HTML-CSS and SVG output.  As of MathJax
> 2.5
>   the following values are understood: "TeX", "STIX-Web",
>   "Asana-Math", "Neo-Euler", "Gyre-Pagella",
>   "Gyre-Termes", and "Latin-Modern".
> linebreaksLet MathJax perform automatic linebreaks.  Valid values
>   are "true" and "false".
> indentIf align is not center, how far from the left/right side?
>   Valid values are "left" and "right"
> multlinewidth The width of the multline environment.
> autonumberHow to number equations.  Valid values are "None",
>   "all" and "AMS Math".
> tagindent The amount tags are indented.
> tagside   Which side to show tags/labels on.  Valid values are
>   "left" and "right"
>
> You can also customize this for each buffer, using something like
>
> #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler
>
> For further information about MathJax options, see the MathJax
> documentation:
>
>   http://docs.mathjax.org/
>
> You can customize this variable.
>
> This variable was introduced, or its default value was changed, in
> version 8.3 of the Org package.
>
>
> Value: ((path "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/
> MathJax.js?config=TeX-AMS_HTML")
>  (scale "100")
>  (align "center")
>  (font "TeX")
>  (linebreaks "false")
>  (autonumber "AMS")
>  (indent "0em")
>  (multlinewidth "85%")
>  (tagindent ".8em")
>  (tagside "right"))
>
> -- End ---
>
>
> Best wishes,
>
> Colin.
>
> --
> --
> Colin Baxter
> m43...@yandex.com
> GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8
>
>


-- 
Adam J. Aviv, PhD
*Asst. Professor*
*Computer Science*
*U.S. Naval Academy*
*(410) 293- 6655*


Re: [O] newbye questions [the nnir-article-group issue]

2017-06-12 Thread Alain . Cochard
Eric Abrahamsen writes on Sun 11 Jun 2017 14:37:
 > alain.coch...@unistra.fr writes:
 > 
 > >>Fran?ois Patte  writes:
 > >>
 > >>> Le 05/06/2017 ? 12:07, Eric Abrahamsen a ?crit :
 >  Fran?ois Patte  writes:
 >  
 > > Le 05/06/2017 ? 01:33, Eric Abrahamsen a ?crit :
 > >> Fran?ois Patte  writes:
 > >>
 > >>> Bonjour,
 > >>>
 > >>> Ijust discovered org-mode for emacs and I want to explore the
 > >>> capabilities of this mode for LaTeX documents.
 > >>>
 > >>> I have a few preliminary questions:
 > >>>
 > >>> 1- I installed org-mode from ELPA and I get a warning message
 > >>> when I open a *.org file:
 > >>> Eager macro-expansion failure: (error "Autoloading failed to
 > >>> define function nnir-article-group")
 > >>>
 > >>> What does it mean and how to get rid of this message.

[...]

 Hi Eric, thanks much for the feedback.

 > That was very useful, thanks for the detailed report! Looks like it's
 > the same as this:
 > 
 > https://bugzilla.redhat.com/show_bug.cgi?id=1177978
 > 
 > Looks like uninstalling an emacs-goodies package might do the trick?

Yes it did!  Also, the error is not present on another machine (with
Fedora 23) on which I could perform a test, with simply the command
'emacs' and a void .emacs file -- and of course the emacs-goodies
packages installed on that machine:

Org mode version 9.0.8 (9.0.8-elpa @ /root/.emacs.d/elpa/org-20170606/)

GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of
2016-04-11 on buildvm-25.phx2.fedoraproject.org

Linux fruc.u-strasbg.fr 4.8.13-100.fc23.x86_64 #1 SMP Fri Dec 9
14:51:40 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

> Anyway, you're meant to be loading nnir.el from
> emacs//lisp/gnus/nnir.el, not site/lisp/gnus-bonus.

So in your opinion what is the best to do in order to avoid this error
message, and, above all, the possible consequences related to this
problem? -- so far, I have not noticed any, but who knows...

- get rid of the file /usr/share/emacs/site-lisp/gnus-bonus/nnir.el?
- get rid of the dir /usr/share/emacs/site-lisp/gnus-bonus/altogether?
- something else?

Because uninstalling the emacs-goodies packages sound rather
extreme...  NB: I uses gnus very rarely.

Regards,
a.

-- 
EOST (École et Observatoire des Sciences de la Terre) 
IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 106] | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France| Fax:   +33 (0)3 68 85 01 25