Re: [O] [org-babel] Problem using result of code block with eval no

2015-07-20 Thread Grant Rettke
Francesco how did this end up?

I just tried it and couldn't reproduce that behavior. Org-Mode warned
me that you can't evaluate block-id table2 so there is no result or
value for the last heading.
Grant Rettke
--
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
“All creativity is an extended form of a joke.” --Kay
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Wed, Apr 8, 2015 at 4:15 AM, Francesco Pizzolante
 wrote:
> Hi,
>
> I have an issue when I want to use the result of a code block which
> I executed manually (C-c C-v C-e) and then marked with ':eval no'.
>
> Here's what happen when I evaluate the following ECM with C-c C-v C-b:
>
> - the Result1 code block uses the table1 result as input and returns the
>   expected output;
>
> - the Result2 code block which should use the table2 result as input,
>   gets "nil" instead -- which seems wrong.
>
> Any help is welcome.
>
> Best regards,
>  Francesco
>
> --8<---cut here---start->8---
> * Table1
>
> #+name: table1
> #+begin_src emacs-lisp
> (setq my-table (quote ((0 "first") (1 "second") ("A" "third"
> #+end_src
>
> #+results: table1
> | 0 | first  |
> | 1 | second |
> | A | third  |
>
> * Result1
>
> #+header: :var data=table1
> #+begin_src emacs-lisp
> data
> #+end_src
>
> #+results:
> | 0 | first  |
> | 1 | second |
> | A | third  |
>
> * Table2
>
> #+name: table2
> #+begin_src emacs-lisp :eval no
> (setq my-table (quote ((0 "first") (1 "second") ("A" "third"
> #+end_src
>
> #+results: table2
> | 0 | first  |
> | 1 | second |
> | A | third  |
>
> * Result2
>
> #+header: :var data=table2
> #+begin_src emacs-lisp
> data
> #+end_src
>
> #+results:
> : nil
> --8<---cut here---end--->8---
>



Re: [O] meta commands and Info manual

2015-07-20 Thread Nick Dokos
Nicolas Goaziou  writes:

> Hello,
>
> Alan Wehmann  writes:
>
>> I am a new user of Org. I'm an experienced user of Emacs. My first use
>> of Org was to create a table. I soon found myself wanting to insert
>> a column. I looked at Info node "(org) Built-in table editor" [This
>> manual is for Org version 8.2.9.] and it said:
>>
>> ‘M-S- (org-table-insert-column)’
>>  Insert a new column to the left of the cursor position.
>>
>> I now know that this was somewhat mis-leading, since that key
>> combination is bound to "org-shiftmetaright", but at the time I was
>> rather confused (see topic "Org keymap question" in "news group"
>> gnu.emacs.help). I'd recommend a revision to the Info manual, to
>> describe more prominently command "org-shiftmetaright" and other
>> "meta" commands like it (apologies in advance if there is a later
>> version of the Info manual that addresses this).
>
> I think meta commands are the ones confusing here. I mean, is
>
>   M-S-  (org-shiftmetaright)
>
> informative?
>
> Anyway, I'm not sure to understand what puzzled you in the first place.
>

I think what's puzzling is that these are not "normal" emacs keybindings
(and therefore not discoverable using the "normal" emacs mechanisms):
there is an extra level of indirection that org mode imposes which you
just have to know about. But I'm not sure what the best way to document
them would be: maybe a section explaining the mechanism plus links (or
footnotes) to go from e.g. the description of M-S- in the table
section to the mechanism section. Or maybe showing the indirection
explicitly:

‘M-S- (org-shiftmetaright) --> (org-table-insert-column)’

Nick





Re: [O] meta commands and Info manual

2015-07-20 Thread Nicolas Goaziou
Hello,

Alan Wehmann  writes:

> I am a new user of Org. I'm an experienced user of Emacs. My first use
> of Org was to create a table. I soon found myself wanting to insert
> a column. I looked at Info node "(org) Built-in table editor" [This
> manual is for Org version 8.2.9.] and it said:
>
> ‘M-S- (org-table-insert-column)’
>  Insert a new column to the left of the cursor position.
>
> I now know that this was somewhat mis-leading, since that key
> combination is bound to "org-shiftmetaright", but at the time I was
> rather confused (see topic "Org keymap question" in "news group"
> gnu.emacs.help). I'd recommend a revision to the Info manual, to
> describe more prominently command "org-shiftmetaright" and other
> "meta" commands like it (apologies in advance if there is a later
> version of the Info manual that addresses this).

I think meta commands are the ones confusing here. I mean, is

  M-S-  (org-shiftmetaright)

informative?

Anyway, I'm not sure to understand what puzzled you in the first place.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] contrib: rip out org-jira

2015-07-20 Thread Nicolas Goaziou
Hello,

Mitchel Humpherys  writes:

> Its changelog says it's abandoned, it doesn't really do anything, and it
> clashes with [1].  Rip it out.

Thank you.

Could you provide patch with a proper commit message, using
format-patch?


Regards,

-- 
Nicolas Goaziou



Re: [O] PROPERTIES drawer inserted within LOGBOOK drawer during org-capture

2015-07-20 Thread Nicolas Goaziou
Hello,

Bruce Gilstrap  writes:

> I am running org-mode version 8.2.10 in GNU Emacs 24.3.1 on Windows 7
> Ultimate (Service Pack 1). When I invoke org-capture while the cursor is on
> or "under" a TODO headline that does not have a PROPERTIES drawer, org
> inserts a PROPERTIES drawer and an ID key-value pair, like so:

Could you update Org to development version and try it again? This might
be fixed already.


Regards,

-- 
Nicolas Goaziou



[O] PROPERTIES drawer inserted within LOGBOOK drawer during org-capture

2015-07-20 Thread Bruce Gilstrap
Hello,

I am running org-mode version 8.2.10 in GNU Emacs 24.3.1 on Windows 7
Ultimate (Service Pack 1). When I invoke org-capture while the cursor is on
or "under" a TODO headline that does not have a PROPERTIES drawer, org
inserts a PROPERTIES drawer and an ID key-value pair, like so:

* TODO New headline
:PROPERTIES:
:ID:   b0ee991b-cccb-46cc-8f43-a2341de68e4d
:END:

When the LOGBOOK contains a note after a clock entry, however, org inserts
the PROPERTIES drawer inside the existing LOGBOOK drawer, like so:

* TODO The LOGBOOK contains one complete clock entry and note after clock
entry
:LOGBOOK:
CLOCK: [2015-07-20 Mon 08:56]--[2015-07-20 Mon 09:03] =>  0:07
:PROPERTIES:
:ID:   e1cefdae-a34d-4ba1-bb80-7f05cd541605
:END:
- Note taken on [2015-07-20 Mon 13:16] \\
  a note
:END:

This behavior does not happen when:

* TODO There is no LOGBOOK drawer
:PROPERTIES:
:ID:   ebb1a5f2-0546-48aa-b18b-6d00fde03fcf
:END:

* TODO The LOGBOOK is empty
:LOGBOOK:
:END:
:PROPERTIES:
:ID:   c51f2f0a-0fe2-4182-9bc1-72ed5085070f
:END:

* TODO The LOGBOOK contains only note
:LOGBOOK:
- Note taken on [2015-07-20 Mon 13:13] \\
  a note
:END:
:PROPERTIES:
:ID:   5954a100-1da5-47f0-a73c-456b29024590
:END:

* TODO The LOGBOOK note precedes a clock entry
:LOGBOOK:
- Note taken on [2015-07-20 Mon 13:14] \\
  a note
CLOCK: [2015-07-20 Mon 08:56]--[2015-07-20 Mon 09:03] =>  0:07
:END:
:PROPERTIES:
:ID:   d8682ba6-5233-4c94-b2bc-2a90c287f980
:END:

* TODO The LOGBOOK contains a note between two clock entries
:LOGBOOK:
CLOCK: [2015-07-20 Mon 13:30]--[2015-07-20 Mon 13:42] =>  0:12
- Note taken on [2015-07-20 Mon 13:22] \\
  a note
CLOCK: [2015-07-20 Mon 08:56]--[2015-07-20 Mon 09:03] =>  0:07
:END:
:PROPERTIES:
:ID:   4c3b7ef5-5d0a-4de5-965c-2b8d46524931
:END:


Has anyone seen this behavior before?

Thanks,
Bruce


Re: [O] basename of exported subtree?

2015-07-20 Thread Matt Price
On Mon, Jul 20, 2015 at 10:19 AM, Leslie Harlley Watter 
wrote:

> To change the title of the exported subtree you can use a
>
> #+TITLE: Other title than your subtree title
>
> Below your subtree.
>
> Check this link: http://orgmode.org/manual/Export-settings.html
>
> 
> When exporting only a subtree, each of the previous keywords3 can be
> overridden locally by special node properties. These begin with ‘EXPORT_’,
> followed by the name of the keyword they supplant. For example, ‘DATE’ and
> ‘OPTIONS’ keywords become, respectively, ‘EXPORT_DATE’ and ‘EXPORT_OPTIONS’
> properties.
> 
>
> You could also try to add EXPORT_TITLE: My other title
>

Neither of these changed the actual file name, but Suvayu's euggestion --
setting the EXPORT_FILE_NAME property -- did the trick.  Thank you both!  I
was unable to find this in the org documentation on my own, though now that
I am able to search it I find that it is listed in 12.3, export settings.
Sorry and thank you!
m


> as a property.
>
>
> Cheers,
>
> LEslie
>
>
> Em Mon, Jul 20, 2015 at 04:06:53PM +0200, Suvayu Ali escreveu o seguinte:
> >) Date: Mon, 20 Jul 2015 16:06:53 +0200
> >) From: Suvayu Ali 
> >) To: emacs-orgmode@gnu.org
> >) Subject: Re: [O] basename of exported subtree?
> >) X-Original-To: les...@watter.net
> >)
> >) On Mon, Jul 20, 2015 at 09:58:26AM -0400, Matt Price wrote:
> >) > Is it possible to set the basename of an exported subtree to something
> >) > *other* than the name of the parent file -- to, say, the subtree
> headline,
> >) > or some property thereof?  Thank you!
> >)
> >) Doesn't setting the EXPORT_FILE_NAME property work?
> >)
> >) --
> >) Suvayu
> >)
> >) Open source is the future. It sets us free.
> >)
> >) :-- final da mensagem Re: [O] basename of exported subtree? de Suvayu
> Ali  --:
>
> --
> Leslie H. Watter
>  "Always do right.  This will gratify some people and astonish the rest."
> -- Mark Twain
>


Re: [O] Specify org-latex-pdf-process for a single file?

2015-07-20 Thread Vikas Rawal
Thanks all. I was not familiar with this way of defining local variables. Just 
checked the relevant part of the manual. Very useful.

Thanks,

Vikas


> On 20-Jul-2015, at 3:59 pm, Eric S Fraga  wrote:
> 
> On Monday, 20 Jul 2015 at 07:05, Vikas Rawal wrote:
>> How do I specify org-latex-pdf-process for a single file? I am working
>> on a book manuscript, where I need to run makeindex and biber, along
>> with xelatex. That is not normally needed in every document. Can I
>> org-latex-pdf-process in the document itself?
>> 
>> Vikas
> 
> I have the following at the end of most of my org files that are
> intended to be exported to LaTeX et al.:
> 
> --8<---cut here---start->8---
> # Local Variables:
> # org-export-allow-bind-keywords: t
> # org-latex-pdf-process: ("pdflatex %f")
> # eval: (esf/execute-startup-block)
> # End:
> --8<---cut here---end--->8---
> 
> where the src block esf/execute-startup-block does more general file
> specific settings.  Obviously, adapt the pdf process variable to your
> needs.
> 
> -- 
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1260-gcedef7




Re: [O] [ox bug] batch export seems to be broken or have changed

2015-07-20 Thread Rasmus
Nicolas Goaziou  writes:

>> C-h v mentions no change.  Fortunately there are not too many changes to
>> buffer.c
>
> It might be worth to make a bug report about it. It isn't clear that
> this change was intended.

Reported here:

 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21095

-- 
Send from my Emacs




Re: [O] function for cleaning org-attach directories

2015-07-20 Thread Alan Schmitt
On 2015-07-18 05:11, Eric Abrahamsen  writes:

> Alan Schmitt  writes:
>
>> I gave this a try and it seems that `org-attach-directory' needs to be
>> defined for it to work. I'm surprised because I never configured this
>> and with gnorb I have had files attached using org-attach. Does gnorb
>> use a default value for this?
>
> Gnorb has calls to (require 'org-attach) in certain places -- unless
> you've loaded and used gnorb in your current session, you'll probably
> want to require that yourself.

Ah, yes, of course. It seems to be working, but it’s awfully silent. It
would be great if it gave some feedback (I don’t know if it actually
deleted anything, as there was nothing in the *Messages* buffer).

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Last week athmospheric CO₂ average (Updated July 14, 2015, Mauna Loa Obs.):
401.73 ppm


signature.asc
Description: PGP signature


Re: [O] basename of exported subtree?

2015-07-20 Thread Leslie Harlley Watter
To change the title of the exported subtree you can use a

#+TITLE: Other title than your subtree title

Below your subtree.

Check this link: http://orgmode.org/manual/Export-settings.html


When exporting only a subtree, each of the previous keywords3 can be overridden 
locally by special node properties. These begin with ‘EXPORT_’, followed by the 
name of the keyword they supplant. For example, ‘DATE’ and ‘OPTIONS’ keywords 
become, respectively, ‘EXPORT_DATE’ and ‘EXPORT_OPTIONS’ properties. 
 

You could also try to add EXPORT_TITLE: My other title 

as a property.


Cheers,

LEslie


Em Mon, Jul 20, 2015 at 04:06:53PM +0200, Suvayu Ali escreveu o seguinte:
>) Date: Mon, 20 Jul 2015 16:06:53 +0200
>) From: Suvayu Ali 
>) To: emacs-orgmode@gnu.org
>) Subject: Re: [O] basename of exported subtree?
>) X-Original-To: les...@watter.net
>) 
>) On Mon, Jul 20, 2015 at 09:58:26AM -0400, Matt Price wrote:
>) > Is it possible to set the basename of an exported subtree to something
>) > *other* than the name of the parent file -- to, say, the subtree headline,
>) > or some property thereof?  Thank you!
>) 
>) Doesn't setting the EXPORT_FILE_NAME property work?
>) 
>) -- 
>) Suvayu
>) 
>) Open source is the future. It sets us free.
>) 
>) :-- final da mensagem Re: [O] basename of exported subtree? de Suvayu Ali 
> --:

-- 
Leslie H. Watter
 "Always do right.  This will gratify some people and astonish the rest."
-- Mark Twain


signature.asc
Description: Digital signature


Re: [O] basename of exported subtree?

2015-07-20 Thread Suvayu Ali
On Mon, Jul 20, 2015 at 09:58:26AM -0400, Matt Price wrote:
> Is it possible to set the basename of an exported subtree to something
> *other* than the name of the parent file -- to, say, the subtree headline,
> or some property thereof?  Thank you!

Doesn't setting the EXPORT_FILE_NAME property work?

-- 
Suvayu

Open source is the future. It sets us free.



[O] basename of exported subtree?

2015-07-20 Thread Matt Price
Is it possible to set the basename of an exported subtree to something
*other* than the name of the parent file -- to, say, the subtree headline,
or some property thereof?  Thank you!


Re: [O] [ox bug] batch export seems to be broken or have changed

2015-07-20 Thread Rasmus
Nicolas Goaziou  writes:

> Shot in the dark: could it be related to asynchronous export, calling
> a different Emacs executable (Emacs 25 in this case)?

No, 'cause I've only got on Emacs installed (/usr/bin/emacs) at the time
and I install org to /usr/share/emacs/site-lisp/ (but it's stable).  Maybe
the .elc files need to cleaned out.

Rasmus

-- 
Summon the Mothership!



Re: [O] Why navigating in Org mode is so slow in overview mode?

2015-07-20 Thread Gregor Zattler
Hi Nicolas,

thanks for this change it makes a tremendous difference.

* Nicolas Goaziou  [20. Jul. 2015]:
> Gregor Zattler  writes:
> 
>> Now I think I found something specific.  I do open the org-mode
>> file in question with #+STARTUP: showeverything because otherwise
>> it’s slow.  Today I discovered org-goto.  This presents the
>> buffer in overview mode.  So I started the profiler, started
>> org-goto and typed 11 letters in order to jump to a heading.
>> This takes quite some time while my notebooks fan is making noise
>> and Emacs uses 100% cpu according to htop.
>>
>> I did this two times with the same org-mode file:
>>
>> - with Org-mode version 8.3beta (release_8.3beta-1291-gd6e601 @
>>   /home/grfz/src/org-mode/lisp/) on GNU Emacs 25.0.50.4
>>   (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-07-17 on boo
>>
>> - with Org-mode version 8.2.10 (release_8.2.10 @
>>   /usr/local/stow/emacs-snapshot/share/Emacs/25.0.50/lisp/org/)
>>   on the same version of Emacs.
>>
>> I do not know how to read these reports, but to me it seems, that
>> most of the cpu cycles are used by org-context, org-end-of-item,
>> org-list-struct and org-list-context.  The memory reports do not
>> seem to be of interest but I attach them for the sake of
>> completeness.
> 
> I removed a call to `org-context' in
> 985420eceb3661aae8b1caafc95e959ab12ad1cb. Does it fix your problem?

Yes, it’s *much* faster now, it’s so responsive it’s almost
instantaneous.  Thanks.

> For the record, `org-context' predates Org Elements and should
> ultimately be removed from the code base.


Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-



Re: [O] Specify org-latex-pdf-process for a single file?

2015-07-20 Thread Eric S Fraga
On Monday, 20 Jul 2015 at 07:05, Vikas Rawal wrote:
> How do I specify org-latex-pdf-process for a single file? I am working
> on a book manuscript, where I need to run makeindex and biber, along
> with xelatex. That is not normally needed in every document. Can I
> org-latex-pdf-process in the document itself?
>
> Vikas

I have the following at the end of most of my org files that are
intended to be exported to LaTeX et al.:

--8<---cut here---start->8---
# Local Variables:
# org-export-allow-bind-keywords: t
# org-latex-pdf-process: ("pdflatex %f")
# eval: (esf/execute-startup-block)
# End:
--8<---cut here---end--->8---

where the src block esf/execute-startup-block does more general file
specific settings.  Obviously, adapt the pdf process variable to your
needs.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1260-gcedef7



Re: [O] Why navigating in Org mode is so slow in overview mode?

2015-07-20 Thread Nicolas Goaziou
Gregor Zattler  writes:

> Now I think I found something specific.  I do open the org-mode
> file in question with #+STARTUP: showeverything because otherwise
> it’s slow.  Today I discovered org-goto.  This presents the
> buffer in overview mode.  So I started the profiler, started
> org-goto and typed 11 letters in order to jump to a heading.
> This takes quite some time while my notebooks fan is making noise
> and Emacs uses 100% cpu according to htop.
>
> I did this two times with the same org-mode file:
>
> - with Org-mode version 8.3beta (release_8.3beta-1291-gd6e601 @
>   /home/grfz/src/org-mode/lisp/) on GNU Emacs 25.0.50.4
>   (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-07-17 on boo
>
> - with Org-mode version 8.2.10 (release_8.2.10 @
>   /usr/local/stow/emacs-snapshot/share/Emacs/25.0.50/lisp/org/)
>   on the same version of Emacs.
>
> I do not know how to read these reports, but to me it seems, that
> most of the cpu cycles are used by org-context, org-end-of-item,
> org-list-struct and org-list-context.  The memory reports do not
> seem to be of interest but I attach them for the sake of
> completeness.

I removed a call to `org-context' in
985420eceb3661aae8b1caafc95e959ab12ad1cb. Does it fix your problem?

For the record, `org-context' predates Org Elements and should
ultimately be removed from the code base.

Regards,



Re: [O] [ox bug] batch export seems to be broken or have changed

2015-07-20 Thread Nicolas Goaziou
Rasmus  writes:

> $ emacs --batch --file foo.org --eval="(let ((name (buffer-file-name))) 
> (with-temp-file \"report.txt\" (insert (message \"%S\n\" name"
> $ cat report.txt
>   nil

OK, so this changed.

> C-h v mentions no change.  Fortunately there are not too many changes to
> buffer.c

It might be worth to make a bug report about it. It isn't clear that
this change was intended.

> The stable Emacs version I've got is 24.5. Why is Org git trying to pull
> it in when exporting if it doesn't exist?  Probably I missed
> something.

Shot in the dark: could it be related to asynchronous export, calling
a different Emacs executable (Emacs 25 in this case)?


Regards,



Re: [O] [PATCH] Make html export honor html-viewport option

2015-07-20 Thread Nicolas Goaziou
Rasmus  writes:

> It's in 216a53d6cc88bd858fbc3aee82a2702a854fa8d6.

Thank you.

Regards,



Re: [O] Specify org-latex-pdf-process for a single file?

2015-07-20 Thread Rasmus
Vikas Rawal  writes:

> How do I specify org-latex-pdf-process for a single file? I am working
> on a book manuscript, where I need to run makeindex and biber, along
> with xelatex. That is not normally needed in every document. Can I
> org-latex-pdf-process in the document itself?

I'd just use "latexmk -xelatex".  It supports makeindex and biber out of
the box.  Bind org-latex-pdf-process it or use a file-local variable.

Also, feel free to test my recent patch for changing the latex variant on
a file to file basis.

Rasmus

-- 
And I faced endless streams of vendor-approved Ikea furniture. . .




Re: [O] [ox bug] batch export seems to be broken or have changed

2015-07-20 Thread Rasmus
Nicolas Goaziou  writes:

> You may write the output of (buffer-file-name) to a temporary file,
> e.g.,
>
> emacs --batch --file foo.org --eval="(let ((name (buffer-file-name))) 
> (with-temp-file \"report.txt\" (insert (message \"%S\n\" name"


$ emacs --batch --file foo.org --eval="(let ((name (buffer-file-name))) 
(with-temp-file \"report.txt\" (insert (message \"%S\n\" name"
$ cat report.txt
  nil

C-h v mentions no change.  Fortunately there are not too many changes to
buffer.c

$ git log --since=emacs-24.5 -- buffer.c
commit 3213d7707026573ca425ba1c865b7fa1a8b46639
Author: Paul Eggert 
Date:   Tue Jun 30 15:06:31 2015 -0700

In strings, prefer plain ` and ' to \` and \'

* lisp/allout.el (allout-insert-listified):
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
* lisp/ls-lisp.el (ls-lisp-UCA-like-collation)
(ls-lisp-string-lessp):
* lisp/menu-bar.el (menu-bar-open):
* lisp/obsolete/otodo-mode.el (todo-top-priorities):
* lisp/progmodes/compile.el (compile):
* lisp/progmodes/etags.el (tags-loop-scan):
* lisp/progmodes/make-mode.el (makefile-browser-insert-continuation):
* lisp/subr.el (posn-actual-col-row):
* lisp/term/pc-win.el (x-list-fonts):
* lisp/textmodes/texinfmt.el (texinfmt-version):
* lisp/textmodes/texnfo-upd.el (texinfo-master-menu):
* lisp/time.el (display-time-world-list):
* lisp/tmm.el (tmm-menubar):
* src/buffer.c (syms_of_buffer):
* src/fileio.c (syms_of_fileio):
Omit unnecessary and confusing backslash before quote.
* lisp/erc/erc.el (erc-cmd-LASTLOG):
* lisp/progmodes/flymake.el (flymake-fix-file-name):
* lisp/progmodes/vhdl-mode.el (vhdl-in-extended-identifier-p):
Fix string that was intended to escape a backslash and not a quote.

commit f8e26cd3af6b48428c3199f3f9c2a08c4f359234
Author: Glenn Morris 
Date:   Fri Jun 12 18:07:48 2015 -0400

* src/buffer.c (init_buffer): Add final newline to message.

commit ebbc6a4782c279527c52d6b1d8b379517aeec2d5
Author: Glenn Morris 
Date:   Thu Jun 11 20:34:54 2015 -0400

Some progress towards starting with PWD deleted.  (Bug#18851)

* src/buffer.c (init_buffer): Handle get_current_dir_name failures.

* lisp/startup.el (normal-top-level, command-line-1):
* lisp/minibuffer.el (read-file-name-default):
Handle default-directory being nil.

commit 2c656f7deb3b192a5063151368782c2715e81051
Author: Paul Eggert 
Date:   Sun May 31 23:52:09 2015 -0700

Avoid grave accent quoting in stderr diagnostics

A few Emacs diagnostics go directly to stderr, and so can't easily
contain curved quotes (as non-UTF-8 locales might mishandle them).
Instead of bothering to add support for this rarity, reword the
diagnostics so that they don't use grave accent to quote.
* src/alloc.c (mark_memory): Fix comment.
* src/buffer.c (init_buffer):
* src/dispnew.c (init_display):
* src/emacs.c (main, sort_args):
* src/lread.c (dir_warning):
* src/term.c (init_tty):
* src/unexmacosx.c (unexec):
* src/xfns.c (select_visual):
* src/xterm.c (cvt_string_to_pixel, x_io_error_quitter):
Reword stderr diagnostics to avoid quoting `like this'.
* src/unexmacosx.c: Include errno.h.
* src/xfns.c (select_visual): Encode value for locale.

commit d90a3b186d57ac700a32988b720f76f289740ece
Author: Paul Eggert 
Date:   Sat May 30 15:29:41 2015 -0700

Remove format2

* src/editfns.c, src/lisp.h (format2): Remove.
It is more trouble than it's worth, now that we have CALLN.
This is just a minor refactoring.
* src/buffer.c (Fkill_buffer):
* src/dbusbind.c (XD_OBJECT_TO_STRING):
* src/fileio.c (barf_or_query_if_file_exists):
Adjust to format2 going away.


>> Weird.  Cl-struct is what is used for holding backends, right?
>
> Correct. But AFAICT, `cl-struct-define' doesn't exist in Emacs 24.

The stable Emacs version I've got is 24.5. Why is Org git trying to pull
it in when exporting if it doesn't exist?  Probably I missed something.

Rasmus

-- 
May the Force be with you




Re: [O] [PATCH] Make html export honor html-viewport option

2015-07-20 Thread Rasmus
Nicolas Goaziou  writes:

> I think we could offer the option to set it to nil via Customize. WDYT?

Of course, I'm just very slow at getting Customize right.

It's in 216a53d6cc88bd858fbc3aee82a2702a854fa8d6.

Richard: Is there any reason why you want to disable viewport?  I added it
as it makes my own html pages look vastly better on the mobile.  I don't
know much about HTML however.

Rasmus

-- 
The Kids call him Billy the Saint




Re: [O] Why navigating in Org mode is so slow in overview mode?

2015-07-20 Thread Gregor Zattler
Hi Nicolas,
* Nicolas Goaziou  [23. Jun. 2015]:
> Gregor Zattler  writes:
> 
>> These reports are attachet.
> 
> Thank you. However, I don't see anything incriminating Org in these
> reports.

Now I think I found something specific.  I do open the org-mode
file in question with #+STARTUP: showeverything because otherwise
it’s slow.  Today I discovered org-goto.  This presents the
buffer in overview mode.  So I started the profiler, started
org-goto and typed 11 letters in order to jump to a heading.
This takes quite some time while my notebooks fan is making noise
and Emacs uses 100% cpu according to htop.

I did this two times with the same org-mode file:

- with Org-mode version 8.3beta (release_8.3beta-1291-gd6e601 @
  /home/grfz/src/org-mode/lisp/) on GNU Emacs 25.0.50.4
  (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-07-17 on boo

- with Org-mode version 8.2.10 (release_8.2.10 @
  /usr/local/stow/emacs-snapshot/share/Emacs/25.0.50/lisp/org/)
  on the same version of Emacs.

I do not know how to read these reports, but to me it seems, that
most of the cpu cycles are used by org-context, org-end-of-item,
org-list-struct and org-list-context.  The memory reports do not
seem to be of interest but I attach them for the sake of
completeness.

HTH, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-


org-goto-profiler-reports.tar.gz
Description: application/gzip


Re: [O] [PATCH] Make html export honor html-viewport option

2015-07-20 Thread Nicolas Goaziou
Rasmus  writes:

> Richard Hoskins  writes:
>
>> On Sun, Jul 19, 2015 at 4:05 AM, Nicolas Goaziou  
>> wrote:
>>> It can already be changed by customizing `org-html-viewport'. I don't
>>> think it is useful to change it through OPTIONS keywords, as your patch
>>> suggest, since the value is a bit complicated.
>>>
>>> You may change it document wise using a BIND keyword.
>>
>> You can't set it to nil through customize. I was trying to export html
>> without the viewport meta tags. Setting the customize variables to nil
>> just resulted in bogus viewport values.
>
> You are right you cannot set it to nil via Customize.  If you do
> (setq org-html-viewport nil)
> you will not get a viewport.

I think we could offer the option to set it to nil via Customize. WDYT?

Regards,



Re: [O] [ox bug] batch export seems to be broken or have changed

2015-07-20 Thread Nicolas Goaziou
Rasmus  writes:

> That's my first guess.  But I don't know how to debug it since it's batch.
> And I don't know if it's a an Emacs bug or Org needing to adapt to some
> new behavior.
>
> I could try to print the filename input to the console or something...

You may write the output of (buffer-file-name) to a temporary file,
e.g.,

emacs --batch --file foo.org --eval="(let ((name (buffer-file-name))) 
(with-temp-file \"report.txt\" (insert (message \"%S\n\" name"

>>> I tried to downgrade to Emacs 24.5, but when I batch export as above I
>>> get:
>>>
>>>  Symbol's function definition is void: cl-struct-define
>>
>> That doesn't ring a bell.
>
> Weird.  Cl-struct is what is used for holding backends, right?

Correct. But AFAICT, `cl-struct-define' doesn't exist in Emacs 24.

Regards,