Re: [O] babel python example not reproducible

2014-06-17 Thread Shiyuan
Hi all,
  I found a solution to fix the echo problem of the emacs python shell:
http://stackoverflow.com/questions/8060609/python-interpreter-in-emacs-repeats-lines

That is, in the Interior Python buffer, do
M-: (setq comint-process-echoes t) ;; or nil

Now, if I enter command directly in the interior python buffer, the command
is not echoed and this is what I want.

However, When I evaluate the python src code block in org-mode(by `C-c
C-c`), the problem persists. I notice every time I evaluate the block, I
see 'org_babel_python_eoe' in the interior python buffer.

I  stumbled on a very strange emacs behavior. When I fiddled around, at
some point, I produced the correct answer as the manual. I thought I got
the right setup, but when I saved everything and restarted emacs, problem
persists. Will it be a sign of anything wrong?

What's even stranger is that: the evaluation for the first time gives
different results from the evaluation for the second time,  on exactly the
same src_block:

This is what I got when I evaluation the code block for the first time:
-
#+BEGIN_SRC python :results output :session foo
x=100
print hello
2
print bye
#+END_SRC

#+RESULTS:
#+begin_example

x=100
 print hello
 hello
2
2
print bye
bye


#+end_example
---
---

The following is what I got when I evaluate the same block again:
#+BEGIN_SRC python :results output :session foo
x=100
print hello
2
print bye
#+END_SRC

#+RESULTS:
: x=100
: print hello
: hello
: 2
: 2
: print bye
: bye
:
:

Notice that the prompt symbol  is in the result for the first
evaluation but not in the second evaluation.  Also the result is not
embedded in the #+being_example/#+end_example for the second evaluation.

I want to hunt down the problem. Any hints/helps is greatly appreciated.

Shiyuan




On Mon, Jun 16, 2014 at 9:12 AM, Doyley, Marvin mdoy...@ur.rochester.edu
wrote:

 Hi Eric,

 Thanks for showing me the smart way of doing this.

 cheers,
 M
 --






Re: [O] org-contacts email completion by tags

2014-06-17 Thread Daimrod
John Kitchin jkitc...@andrew.cmu.edu writes:

Hi,

First, sorry for the late reply.

 Here is what I finally ended up with to allow completion with tag
 expressions. I did not figure out how to avoid overwriting an
 org-contacts function. I thought I could find the right hooks to use,
 but I could not figure it out. It is only a one line modification to the
 org-contacts function.

I've added a new hook `org-contacts-complete-functions' that you can use
to plug your function.

 This works for tag expressions, but I have not
 gotten it to work with properties.

 (defun org-contacts-complete-tags (start end tag-expression)
   insert emails from org-contacts that match the tags expression. For 
 example:
 group-phd will match entries tagged with group but not with phd.
   (let* ((completion-ignore-case org-contacts-completion-ignore-case)
(group-completion-p t))
 (let ((result (mapconcat 'identity
(loop for contact in (org-contacts-db)
  for contact-name = (car contact)
  for email = (org-contacts-strip-link (car 
 (org-contacts-split-property
 (or
  (cdr 
 (assoc-string org-contacts-email-property
   
   (caddr contact)))
  
  for tags = (cdr (assoc TAGS (nth 2 contact)))
  for tags-list = (if tags
  (split-string (substring (cdr 
 (assoc TAGS (nth 2 contact))) 1 -1) :)
'())
  if (let ((todo-only nil))
   (eval (cdr (org-make-tags-matcher 
 tag-expression
  
  collect (org-contacts-format-email contact-name 
 email))
,)))
   (when (not (string=  result))
   ;; return (start end function)
   (lexical-let* ((to-return result))
 (list start end
   (lambda (string pred optional to-ignore) to-return)))


Thanks, but I'm refactoring org-contacts a bit, and I think I have found
a slightly better way to do that, but in the meantime you can use the
aforementioned hook for your function.

Best,

-- 
Daimrod/Greg



[O] Columns widths of block agenda?

2014-06-17 Thread Loris Bennett
Hi,

Can someone tell me where I can modify the widths of the columns in a
block agenda?  Specifically I would like to increase the width of the
first column, which currently contains the category or file name of the
task.

Cheers,

Loris

-- 
This signature is currently under construction.




[O] Add orgstruct-appendix to .emacs to default for .R-files

2014-06-17 Thread Henning
I currently use orgstruct-mode tu structure scripts for statistical
analysis in R. So I copy + paste some orgstruct-code into every R-file,
where I would like to enjoy folding.

||/Is there any way to put the following lines of code into my .emacs-file, so 
the orgstruct-properties becaume default for all my .R//-Files?/
|
  ### * End of file

  ### Local Variables:
  ### eval: (orgstruct-mode 1)
  ### orgstruct-heading-prefix-regexp: ### 
  ### End:

|(See 
https://stackoverflow.com/questions/14941429/structuring-a-statistical-analysis-with-r-using-emacs-ess
 for further references)

||



[O] helm and org-refile

2014-06-17 Thread Eric Abrahamsen
Hi there,

I just started using helm, with some ambivalence. Turning on helm mode
stompled all over my emacs, but for just that reason I suppose it might
be worth trading my ido muscle memory for helm muscle memory.

Anyhoo... The only thing it doesn't work well with is org-refile and
friends. It can complete the filename, but not the subtree path. My
org-refile-use-outline-path is set to 'file. I found this:

http://permalink.gmane.org/gmane.emacs.orgmode/70751

In the replies to that was a patch for making a 'helm option for org
refile, but my guess is that's well and truly out of date. Is anyone
using helm and org, and have a good solution for refiling? It's actually
preventing me from using refile and goto, at the moment...

Thanks!
E




Re: [O] helm and org-refile

2014-06-17 Thread Thorsten Jolitz
Eric Abrahamsen e...@ericabrahamsen.net writes:

Hi

 I just started using helm, with some ambivalence. Turning on helm mode
 stompled all over my emacs, but for just that reason I suppose it might
 be worth trading my ido muscle memory for helm muscle memory.

helm is truly amazing and impressive, and I did not even scratch the
surface of it, but 2 things bother me:

- when using helm, I'm caught in the mini-buffer, no way to switch to
  another workgroup/buffer to look up things ...
- helm is somehow too interactive, once done with it, the search/result buffers
  disappear, while I would like them to stay around sometimes

So not an answer to you question, but rather a related question -  is
there a way around the problems described?

-- 
cheers,
Thorsten




Re: [O] org-weather for openweathermap.org

2014-06-17 Thread Thorsten Jolitz
Ian Barton li...@wilkesley.net writes:

 Thanks, had to use this to make it work:

 #+CATEGORY: Citiy
 %%(diary-sunrise-sunset)


   City:  6:32.. Sunrise (CEST), sunset 11:16pm (CEST)

 But somehow lat/long are right, but time is 2h off ... I'm GMT+2
 (CEST) here.
 Where is the time adjusted for diary entries?

 The Emacs manual has the information:
 https://www.gnu.org/software/emacs/manual/html_node/emacs/Daylight-Saving.html#Daylight-Saving

 Also information on Lunar phases:
 https://www.gnu.org/software/emacs/manual/html_node/emacs/Lunar-Phases.html#Lunar-Phases

Thanks for the info!

-- 
cheers,
Thorsten




Re: [O] helm and org-refile

2014-06-17 Thread Eric Abrahamsen
Thorsten Jolitz tjol...@gmail.com writes:

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 Hi

 I just started using helm, with some ambivalence. Turning on helm mode
 stompled all over my emacs, but for just that reason I suppose it might
 be worth trading my ido muscle memory for helm muscle memory.

 helm is truly amazing and impressive, and I did not even scratch the
 surface of it, but 2 things bother me:

 - when using helm, I'm caught in the mini-buffer, no way to switch to
   another workgroup/buffer to look up things ...
 - helm is somehow too interactive, once done with it, the search/result 
 buffers
   disappear, while I would like them to stay around sometimes

 So not an answer to you question, but rather a related question -  is
 there a way around the problems described?

As a three-hour-old Helm user, I answer with some trepidation... I've
seen a bunch of helm-session-* stuff, and my guess is, that's what
sessions are for: leaving off helm actions, and coming back to them. I
think it's pretty clear how to come back to them, but as for the
leaving off...




Re: [O] babel python example not reproducible

2014-06-17 Thread Andreas Röhler

On 17.06.2014 08:21, Shiyuan wrote:

Hi all,
   I found a solution to fix the echo problem of the emacs python shell:
http://stackoverflow.com/questions/8060609/python-interpreter-in-emacs-repeats-lines

That is, in the Interior Python buffer, do
M-: (setq comint-process-echoes t) ;; or nil

Now, if I enter command directly in the interior python buffer, the command
is not echoed and this is what I want.

However, When I evaluate the python src code block in org-mode(by `C-c
C-c`), the problem persists. I notice every time I evaluate the block, I
see 'org_babel_python_eoe' in the interior python buffer.

I  stumbled on a very strange emacs behavior. When I fiddled around, at
some point, I produced the correct answer as the manual. I thought I got
the right setup, but when I saved everything and restarted emacs, problem
persists. Will it be a sign of anything wrong?

What's even stranger is that: the evaluation for the first time gives
different results from the evaluation for the second time,  on exactly the
same src_block:

This is what I got when I evaluation the code block for the first time:
-
#+BEGIN_SRC python :results output :session foo
x=100
print hello
2
print bye
#+END_SRC

#+RESULTS:
#+begin_example

x=100

print hello
hello

2
2
print bye
bye


#+end_example
---
---

The following is what I got when I evaluate the same block again:
#+BEGIN_SRC python :results output :session foo
x=100
print hello
2
print bye
#+END_SRC

#+RESULTS:
: x=100
: print hello
: hello
: 2
: 2
: print bye
: bye
:
:

Notice that the prompt symbol  is in the result for the first
evaluation but not in the second evaluation.  Also the result is not
embedded in the #+being_example/#+end_example for the second evaluation.

I want to hunt down the problem. Any hints/helps is greatly appreciated.

Shiyuan




Hi Guys,

please permit a comment after some times - it's just not to create heroes :)

IMHO the complexity orb-babel took by creating its own slots for symbols like 
function names, variables etc.
is not to handle reliably across the languages.

A net and simple way out would be just to employ commands delivered by existing 
Emacs modes on org-source sections.
Inserting the results might be provided by a hook.

Cheers,

Andreas







Re: [O] controling width of graphviz source block result

2014-06-17 Thread Sebastien Vauban
regcl wrote:
 Thank you for your earlier comments.  In order to adjust the scaling of
 a graphic generated by a R source block I am doing this ...

 ** adjusting scaling of a figure generated from source

 #+begin_src R :results graphics silent :file foo2.pdf :exports results 
   plot(c(1:10), c(10:1))
   #+end_src

 #+attr_latex: :width .35\textwidth
 file:foo2.pdf 

 While this does work, it is a wee bit unsatisfying to type foo2.pdf
 twice.

 Is there a better way to apply the latex keyword to the results?

What I do is that I simply execute it a first time, so that the link is
created (that is, the name is copied) by Org.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Tangling with variables in R

2014-06-17 Thread Sebastien Vauban
Rainer M Krug wrote:
 See above.  And thanks for your work on ob-R!  Keep it up!

 Thanks - I will do. Your email comes at the right moment, as I was
 wondering if I am the only one using R and ESS and org. But I guess it
 is rather the inner workings do not impact on most users.

No, you're not. But, yes, I'm only using that combination once every so
many months.

Still, when I do use it, I'm glad that it works and produces wonderful
results!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Columns widths of block agenda?

2014-06-17 Thread Nick Dokos
Loris Bennett loris.benn...@fu-berlin.de writes:

 Can someone tell me where I can modify the widths of the columns in a
 block agenda?  Specifically I would like to increase the width of the
 first column, which currently contains the category or file name of the
 task.


C-h v org-agenda-prefix-format RET
-- 
Nick




[O] bug#17724: 24.4.50; regression: error `recenter'ing a window that does not display current-buffer. when opening org-mode file

2014-06-17 Thread Stefan Monnier
   if (buf != current_buffer)
 //  error (`recenter'ing a window that does not display 
 current-buffer.);
 return Qnil;
 ... in src/window.c seems to work for me.

Using `emacs-24' also works, without defeating the purpose of the
error message ;-)


Stefan





Re: [O] org-plus-contrib should provide org

2014-06-17 Thread Vladimir Alexiev
  The org-plus-contrib package on http://orgmode.org/elpa/ should provide 
  org-8.0
 Why do you think it does not?

For example, ox-reveal says Requires: org-8.0. When I select to install it, 
the package manager also installs org, although org-plus-contrib is installed.
I looked for provides info in the packages and I couldn't find any... maybe 
simply the package name indicates what is provided?




[O] Section of Org manual on images in latex export

2014-06-17 Thread Christopher Witte
Hi all,

After quite a bit of mucking around and finally resorting to checking the
source code, I worked out how to wrap an image in a figure environment
without a caption.  The final solution

#+ATTR_LATEX: :float figure

was trivial, but the manual wasn't too helpful on this particular subject.

So others don't have to go through the same troubles I think the manual
could be slightly reworded. In the section Images in Latex export
http://orgmode.org/manual/LaTeX-specific-attributes.html#LaTeX-specific-attributes
I think the following sentence:

You can also ask Org to export an image as a float without specifying
caption by setting the :float attribute.

should be change to:

You can also ask Org to export an image as a float without specifying a
caption by setting the :float attribute *to figure*.

Also a summary of the the attributes and their valid values, as is done for
Latex tables would be useful.


Cheers,
Chris.

ps. I tried to find out if I could make those changes myself, but after
much clicking and searching, I could only find:
http://orgmode.org/worg/org-contribute.html but that doesn't say anything
about contributing to the documentation.


[O] [Babel] 2 new problems with tangling

2014-06-17 Thread Sebastien Vauban
Hello,

After an update to Org 8.2.7, I have troubles tangling files.

Problems:
- Code blocks tagged with :tangle no are still tangled.
- Code called in Noweb syntax coderef() is not executed anymore.

It's possible that the error resides on my side, so the first question
is: do you see the same as me?

ECM:

--8---cut here---start-8---
#+TITLE: Shell utilities
#+LANGUAGE:  en
#+OPTIONS:   ^:{}
#+PROPERTY:  eval no

* Preamble

Helper function.

#+name: current-year
#+begin_src emacs-lisp :eval yes :results silent :tangle no
(format-time-string %Y)
#+end_src

* Common
  :PROPERTIES:
  :tangle:   ~/common.sh
  :END:

Everything in common between Bash and Z shell will come here.

#+begin_src sh :noweb yes
# Hey Emacs, this is a -*- sh -*- file
## .commonshrc --- Common features between (Linux and Cygwin) Bash and Z Shell

# Copyright (C) 2009-current-year()
#+end_src

#+begin_src sh
echo This is tangled... right...
#+end_src

#+begin_src sh :tangle no
echo This is tangled as well... KO!
#+end_src
--8---cut here---end---8---

now returns:

--8---cut here---start-8---
# Hey Emacs, this is a -*- sh -*- file
## .commonshrc --- Common features between (Linux and Cygwin) Bash and Z Shell

# Copyright (C) 2009-current-year()

echo This is tangled... right...

echo This is tangled as well... KO!
--8---cut here---end---8---

instead of what I expected:

--8---cut here---start-8---
# Hey Emacs, this is a -*- sh -*- file
## .commonshrc --- Common features between (Linux and Cygwin) Bash and Z Shell

# Copyright (C) 2009-2014

echo This is tangled... right...
--8---cut here---end---8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Columns widths of block agenda?

2014-06-17 Thread Loris Bennett
Nick Dokos ndo...@gmail.com writes:

 Loris Bennett loris.benn...@fu-berlin.de writes:

 Can someone tell me where I can modify the widths of the columns in a
 block agenda?  Specifically I would like to increase the width of the
 first column, which currently contains the category or file name of the
 task.


 C-h v org-agenda-prefix-format RET

Ah, thanks, Nick.

However, from the documentation, it doesn't look like it is possible to
have the categories starting in the same column if some have a category
icon and some don't, i.e. there is no way of inserting spaces to
compensate when the category has no icon.  So with

  %i %-12:c%?-12t% s

I get

   calendar:   11:00-12:30 Meeting
  X task:   14:00 Fix agenda

where X is my icon.   

Is my interpretation correct?

Loris

-- 
This signature is currently under construction.




Re: [O] Section of Org manual on images in latex export

2014-06-17 Thread Nick Dokos
Christopher Witte ch...@witte.net.au writes:

 ps. I tried to find out if I could make those changes myself, but
 after much clicking and searching, I could only find:
 http://orgmode.org/worg/org-contribute.html but that doesn't say
 anything about contributing to the documentation.

Even so, it does apply to the documentation as well.

Nick




[O] bug#17724: 24.4.50; regression: error `recenter'ing a window that does not display current-buffer. when opening org-mode file

2014-06-17 Thread lee
Bastien b...@altern.org writes:

 Nicolas Richard theonewiththeevill...@yahoo.fr writes:

 I don't know if the bug should
 be closed in this siutation, so I'll leave it to someone else.

 It should not be closed in Emacs bugs system yet, because the master
 branch of Org is not released and not merged into Emacs.  I'll keep
 this under my radar until then.

Since users may want to work around this problem until it is fixed:


  if (buf != current_buffer)
  //  error (`recenter'ing a window that does not display 
current-buffer.);
  return Qnil;


... in src/window.c seems to work for me.


-- 
Knowledge is volatile and fluid.  Software is power.





Re: [O] [Babel] 2 new problems with tangling

2014-06-17 Thread Thorsten Jolitz
Sebastien Vauban sva-n...@mygooglest.com
writes:

Hello,

 After an update to Org 8.2.7, I have troubles tangling files.

 It's possible that the error resides on my side, so the first question
 is: do you see the same as me?

No, I see:

,--
| # Hey Emacs, this is a -*- sh -*- file ## .commonshrc --- Common
| features between (Linux and Cygwin) Bash and Z Shell
| 
| # Copyright (C) 2009-2014
| 
| echo This is tangled... right...
`--

,---
| Org-mode version 8.2.7 (release_8.2.7-1096-g23496c
| @ /usr/share/emacs/24.3/lisp/org/lisp/)
`---

-- 
cheers,
Thorsten




Re: [O] babel C, C++, D enhancement

2014-06-17 Thread Achim Gratz
Thierry Banel writes:
 You are right, INT_MAX is the C++ constant to compare to.
 It is defined in limits.h

 I'm not sure I want to locate limits.h (where is it ? are there several
 versions ?),
 and parse it, all from within Emacs-lisp...

No, this isn't something you should even try.  The only method that is
known to work is what autoconf does: compile a program and check the
output.

 And this will have to be done for all languages (Python, Perl, Java,
 and so on), not just C++.

Let's stick with C(++) and solve that problem first, that there is a lot
of boilerplate code in Babel language support that should be lifted off
elsewhere is a discussion for another time.

 Or we could assume that INT_MAX is always 2147483647.
 (Which of course is not true).

You've just made compilers customizable.  For a start, make those
constants customizable per compiler as well?


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] bug#17794: Acknowledgement (24.4.50; change in src/window.c breaks desktop mode)

2014-06-17 Thread lee
This is a duplicate of #17769.

Changing window.c to


  if (buf != current_buffer)
  //  error (`recenter'ing a window that does not display 
current-buffer.);
  return Qnil;


works here as a workaround until the problem is fixed.


-- 
Knowledge is volatile and fluid.  Software is power.





Re: [O] Orgmode on Android.

2014-06-17 Thread Johann Spies
On 11 Jun 2014 1:57 PM, Johann Spies  wrote:

 I will document my steps tonight an post it.

Apologies for not doing that.

I discovered what my problem was: I did not see the tickbox in the Android
App's setup wizard next to the directory.  I only noticed tonight (after
many tries) a tickbox which was not very clear.  The setup wizard's gui's
contrast was poor on my screen.

Thanks for your interest in my problem.

Regards.

Johann


Re: [O] Columns widths of block agenda?

2014-06-17 Thread Sebastien Vauban
Loris Bennett wrote:
 Nick Dokos ndo...@gmail.com writes:
 Loris Bennett loris.benn...@fu-berlin.de writes:

 Can someone tell me where I can modify the widths of the columns in a
 block agenda?  Specifically I would like to increase the width of the
 first column, which currently contains the category or file name of the
 task.

 C-h v org-agenda-prefix-format RET

 Ah, thanks, Nick.

 However, from the documentation, it doesn't look like it is possible to
 have the categories starting in the same column if some have a category
 icon and some don't, i.e. there is no way of inserting spaces to
 compensate when the category has no icon.  So with

   %i %-12:c%?-12t% s

 I get

calendar:   11:00-12:30 Meeting
   X task:   14:00 Fix agenda

 where X is my icon.

 Is my interpretation correct?

No, IIRC, you should have a fallback case:

--8---cut here---start-8---
 (setq org-agenda-category-icon-alist
   `((work ,(concat icon-dir my_briefcase.png)
  nil nil :ascent center)
 (House ,(concat icon-dir toolbar_home.png)
  nil nil :ascent center)
 ( '(space . (:height (16) :width (16))
--8---cut here---end---8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] org-plus-contrib should provide org

2014-06-17 Thread Achim Gratz
Vladimir Alexiev writes:
  The org-plus-contrib package on http://orgmode.org/elpa/ should provide 
  org-8.0
 Why do you think it does not?

 For example, ox-reveal says Requires: org-8.0. When I select to
 install it, the package manager also installs org, although
 org-plus-contrib is installed.  I looked for provides info in the
 packages and I couldn't find any... maybe simply the package name
 indicates what is provided?

Package manager simply doesn't allow for packages to provide another
package, there's nothing we can do about this.  The easiest (if a bit
clumsy) way to deal with this is to install Org via package manager,
then customize package-load-list to never load the org package.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Orgmode on Android.

2014-06-17 Thread John Hendy
On Tue, Jun 17, 2014 at 1:34 PM, Johann Spies johann.sp...@gmail.com wrote:

 On 11 Jun 2014 1:57 PM, Johann Spies  wrote:

 I will document my steps tonight an post it.

 Apologies for not doing that.

 I discovered what my problem was: I did not see the tickbox in the Android
 App's setup wizard next to the directory.  I only noticed tonight (after
 many tries) a tickbox which was not very clear.  The setup wizard's gui's
 contrast was poor on my screen.

 Thanks for your interest in my problem.

Not a problem, and glad you got it taken care of!

John


 Regards.

 Johann



[O] bug#17724: 24.4.50; regression: error `recenter'ing a window that does not display current-buffer. when opening org-mode file

2014-06-17 Thread Eli Zaretskii
 From: lee l...@yun.yagibdah.de
 Date: Tue, 17 Jun 2014 19:15:33 +0200
 Cc: Bastien b...@altern.org, 17...@debbugs.gnu.org, g...@gmx.de,
   Nicolas Richard theonewiththeevill...@yahoo.fr
 
 Having cloned as described on http://savannah.gnu.org/git/?group=emacs
 with 'git clone git://git.savannah.gnu.org/emacs.git', I'm getting the
 master branch.  Master seems to be identical with trunk.
 
 Perhaps add some advise to the web page so ppl pull the emacs24 branch
 instead?

It's git, right?  The one that has git checkout BRANCH and stuff?





[O] Only on my computer, Invalid function: org-with-silent-modifications

2014-06-17 Thread Grant Rettke
Good afternoon,

Just upgraded to 8.2.7 and was surprised to get the
org-with-silent-modifications error. Here is what happened.

The first time that I set up my Emacs libraries, using Cask, which
uses the Emacs package manager, it install org2blog which has org
8.2.6 as a dependency. Then, Cask installed org-plus-contrib 8.2.6 and
life went on. Then I can cask update to get the 8.2.7 release (Cask
just pulls from the org repo).

Started up Emacs and got that aforementioned error. The issue seemed
to revolve around load-path or
load-order, and I didn't understand any further than that. It was very
strange because my whole approach
had been to automate everything so it would just work.

Poking around, I eventually saw that org2blog depends on org (yes
now I admit that I didn't know this when
at first, but that is not relevant here I believe). That just didn't
look right to have both orgs in there, so I deleted plain old org
and commented out the org2blog load. Now Emacs works again.

The issue seems to be that org-plus-contrib doesn't satisfy org from
a package manager perspective.

This surprised me because the former is a superset.

My next step now is to figure out what to do from a package
perspective, because I would like to keep
org2blog in there.

Anyone else encountered this and want to share the solution?

I'm going to think about this some more and see.

Kind regards,

Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



[O] bug#17724: 24.4.50; regression: error `recenter'ing a window that does not display current-buffer. when opening org-mode file

2014-06-17 Thread Stefan Monnier
 Perhaps add some advise to the web page so ppl pull the emacs24 branch
 instead?

Does someone know how to change the text in
http://savannah.gnu.org/git/?group=emacs?


Stefan





[O] BEAMER_act property documented in ox-beamer.el

2014-06-17 Thread Sebastien Vauban
Hello,

I'm trying to understand the sentence from ox-beamer.el:

Headlines also support the BEAMER_act property.  [It] is translated as an
overlay/action specification (or a default overlay specification when
enclosed within square brackets).

Rewritten, it says that that property is translated as:

- a default overlay specification *when enclosed within square brackets*, or
- an overlay/action specification *when NOT enclosed within square brackets*.

Though, I don't understand exactly what that *default* specification really
means. Moreover, I can't get it: without square brackets, PDFLaTeX becomes
crazy...

--8---cut here---start-8---
* Overlay/action specification enclosed within square brackets

The following 2 cases are exported in exactly the same LaTeX code.

** With angular brackets
   :PROPERTIES:
   :BEAMER_act: [+-]
   :END:

- Item 1
- Item 2

** Without angular brackets
   :PROPERTIES:
   :BEAMER_act: [+-]
   :END:

- Item 1
- Item 2

* Overlay/action specification NOT enclosed within square brackets   :noexport:

The follow 2 cases make PDFLaTeX infloop...

** Without angular brackets
   :PROPERTIES:
   :BEAMER_act: +-
   :END:

- Item 1
- Item 2

** Without angular brackets
   :PROPERTIES:
   :BEAMER_act: +-
   :END:

- Item 1
- Item 2
--8---cut here---end---8---

Anyone undestanding more than I am?

Best regards,
  Seb

-- 
Sebastien Vauban




[O] bug#17724: 24.4.50; regression: error `recenter'ing a window that does not display current-buffer. when opening org-mode file

2014-06-17 Thread lee
Stefan Monnier monn...@iro.umontreal.ca writes:

   if (buf != current_buffer)
//  error (`recenter'ing a window that does not display 
 current-buffer.);
return Qnil;
 ... in src/window.c seems to work for me.

 Using `emacs-24' also works, without defeating the purpose of the
 error message ;-)

I figured that there must be a purpose to it; otherwise it doesn't seem
to make much sense to have this error :)

Having cloned as described on http://savannah.gnu.org/git/?group=emacs
with 'git clone git://git.savannah.gnu.org/emacs.git', I'm getting the
master branch.  Master seems to be identical with trunk.

Perhaps add some advise to the web page so ppl pull the emacs24 branch
instead?


-- 
Knowledge is volatile and fluid.  Software is power.





Re: [O] Only on my computer, Invalid function: org-with-silent-modifications

2014-06-17 Thread Jacob Gerlach
I have no idea if it relates to what you describe with cask and
dependencies, but I had the same error and found several old threads
stating that it's caused by installing org when it's already initialized.

I solved it by Emacs -q and reinstalling from elpa. If you search for the
old threads there was a link to documentation that explains why this occurs
which may be of some help addressing with cask.
On Jun 17, 2014 3:38 PM, Grant Rettke g...@wisdomandwonder.com wrote:

 Good afternoon,

 Just upgraded to 8.2.7 and was surprised to get the
 org-with-silent-modifications error. Here is what happened.

 The first time that I set up my Emacs libraries, using Cask, which
 uses the Emacs package manager, it install org2blog which has org
 8.2.6 as a dependency. Then, Cask installed org-plus-contrib 8.2.6 and
 life went on. Then I can cask update to get the 8.2.7 release (Cask
 just pulls from the org repo).

 Started up Emacs and got that aforementioned error. The issue seemed
 to revolve around load-path or
 load-order, and I didn't understand any further than that. It was very
 strange because my whole approach
 had been to automate everything so it would just work.

 Poking around, I eventually saw that org2blog depends on org (yes
 now I admit that I didn't know this when
 at first, but that is not relevant here I believe). That just didn't
 look right to have both orgs in there, so I deleted plain old org
 and commented out the org2blog load. Now Emacs works again.

 The issue seems to be that org-plus-contrib doesn't satisfy org from
 a package manager perspective.

 This surprised me because the former is a superset.

 My next step now is to figure out what to do from a package
 perspective, because I would like to keep
 org2blog in there.

 Anyone else encountered this and want to share the solution?

 I'm going to think about this some more and see.

 Kind regards,

 Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
 g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
 “Wisdom begins in wonder.” --Socrates
 ((λ (x) (x x)) (λ (x) (x x)))
 “Life has become immeasurably better since I have been forced to stop
 taking it seriously.” --Thompson




Re: [O] babel C, C++, D enhancement

2014-06-17 Thread Thierry Banel
Le 17/06/2014 19:16, Achim Gratz a écrit :
 Thierry Banel writes:
 You are right, INT_MAX is the C++ constant to compare to.
 It is defined in limits.h

 I'm not sure I want to locate limits.h (where is it ? are there several
 versions ?),
 and parse it, all from within Emacs-lisp...
 No, this isn't something you should even try.  The only method that is
 known to work is what autoconf does: compile a program and check the
 output.
Absolutely right.
Or use getconf INT_MAX as suggested by Nick Dokos, but this does not
works everywhere.
 And this will have to be done for all languages (Python, Perl, Java,
 and so on), not just C++.
 Let's stick with C(++) and solve that problem first, that there is a lot
 of boilerplate code in Babel language support that should be lifted off
 elsewhere is a discussion for another time.
I do agree.

By the way, other languages may not be as tricky.

- Java specifies int to be exactly 32 bits, long to be 64 bits.
  http://en.wikibooks.org/wiki/Java_Programming/Primitive_Types

- Same goes for D.
  http://dlang.org/type.html

- In C++ there is a new specification with types like:
  |int_least32_t| // at least 32 bits
  |int32_t // exactly 32 bits|
  http://en.cppreference.com/w/cpp/types/integer

 Or we could assume that INT_MAX is always 2147483647.
 (Which of course is not true).
 You've just made compilers customizable.  For a start, make those
 constants customizable per compiler as well?

Thomas S. Dye suggested just that.
Should we throw this detail at the user ?
She will have a hard time figuring out why we bother her with integer size.


Regards
Thierry




[O] navigation broken in recent maint

2014-06-17 Thread Samuel Wales
quick and dirty bug report.  recent org maint.

1:

jumping from magit (maint) to org using RET always goes
to the wrong location now.

i don't know that this is org's fault.  i have seen it
happen once before, which is when i tried
longlines-mode and similar modes.  i think it was only in org, but i
am not sure.

was there a change in org visibility?

2:

id links always go to the wrong location now.  they jump someplace
near the link.


dunno if 1 and 2 are related.  i'd guess not but they
started in the same snapshot.

can't do ecm at this time.

thanks.

samuel



Re: [O] Only on my computer, Invalid function: org-with-silent-modifications

2014-06-17 Thread Grant Rettke
That is the strange thing, Cask does not load org when it does its work.

So, the error occurred not in that scenario.
Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Tue, Jun 17, 2014 at 3:35 PM, Jacob Gerlach jacobgerl...@gmail.com wrote:
 I have no idea if it relates to what you describe with cask and
 dependencies, but I had the same error and found several old threads stating
 that it's caused by installing org when it's already initialized.

 I solved it by Emacs -q and reinstalling from elpa. If you search for the
 old threads there was a link to documentation that explains why this occurs
 which may be of some help addressing with cask.

 On Jun 17, 2014 3:38 PM, Grant Rettke g...@wisdomandwonder.com wrote:

 Good afternoon,

 Just upgraded to 8.2.7 and was surprised to get the
 org-with-silent-modifications error. Here is what happened.

 The first time that I set up my Emacs libraries, using Cask, which
 uses the Emacs package manager, it install org2blog which has org
 8.2.6 as a dependency. Then, Cask installed org-plus-contrib 8.2.6 and
 life went on. Then I can cask update to get the 8.2.7 release (Cask
 just pulls from the org repo).

 Started up Emacs and got that aforementioned error. The issue seemed
 to revolve around load-path or
 load-order, and I didn't understand any further than that. It was very
 strange because my whole approach
 had been to automate everything so it would just work.

 Poking around, I eventually saw that org2blog depends on org (yes
 now I admit that I didn't know this when
 at first, but that is not relevant here I believe). That just didn't
 look right to have both orgs in there, so I deleted plain old org
 and commented out the org2blog load. Now Emacs works again.

 The issue seems to be that org-plus-contrib doesn't satisfy org from
 a package manager perspective.

 This surprised me because the former is a superset.

 My next step now is to figure out what to do from a package
 perspective, because I would like to keep
 org2blog in there.

 Anyone else encountered this and want to share the solution?

 I'm going to think about this some more and see.

 Kind regards,

 Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
 g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
 “Wisdom begins in wonder.” --Socrates
 ((λ (x) (x x)) (λ (x) (x x)))
 “Life has become immeasurably better since I have been forced to stop
 taking it seriously.” --Thompson





Re: [O] navigation broken in recent maint

2014-06-17 Thread Samuel Wales
i have seen bad jumping in org with emacs bookmarks.  it will go to
the wrong place, then if i do it again, it goes to the right place.
but it was not all the time.



[O] Discussion request: 15m tangle time, details follow

2014-06-17 Thread Grant Rettke
Good evening,

Over the past few months I've been working on the same literate
document. It has been a learning
experience for me, trial and error has abounded. The key tenet that
I've adhered too though is to truly
embrace literate programming, and the more I learn the more it makes
sense. The document has
grown quite organically and it has been and continues to be a
wonderful experience. What I need
help, feedback, discussion, and more on is the build time.

The average build takes 15m. It didn't start this way; it was about 3
minutes way back when. The last time it
got kind of big was 9m and I didn't think too much of it. After
literally a day of additions, it shot up to 15m.
I tried upgrading to the latest org release with no change. I also
removed all of the non-tangleable text with no change there, either.To
give a fair picture, I did publish the system here:

https://github.com/grettke/home

My specific request: I need help with pointers on where I should start
looking to speed things up. My goal is to have a full powered literate
programming system in org mode that is blazing fast. This is from a
user perspective, I use it every chance I get now and have barely
scratched the surface. Right now though I'm sort of hobbled by the
build time. That is actually understating it, I can't really be
productive anymore at all. Little
changes take 15m each and if I test it the right way, 30m. Usually I
would make little changes and every
so often make sure that it can rebuild itself; usually it may :).

This build is documented in the github project; it only loads the
absolute minimum required to do the build.

Ideas: Separate the documents. Hack on org directly.

Non-ideas: Faster hardware. More ram. Newer software.

Details:

Emacs 24.3.1.
Org 8.2.6
OSX 10.9 (software updated)
Darwin orion 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13
PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
8core 2.x GHz, 16GB ram
Anti-virus turned off (compliance)

Please let me know any comments, questions, or concerns; looking
forward to all and every thought
and idea.

Where I may contribute is with time, effort, patience, cheerfulness,
and experience.

Kind regards,

Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



[O] bug#17724: 24.4.50; regression: error `recenter'ing a window that does not display current-buffer. when opening org-mode file

2014-06-17 Thread Eli Zaretskii
 From: Stefan Monnier monn...@iro.umontreal.ca
 Date: Tue, 17 Jun 2014 15:45:05 -0400
 Cc: Bastien b...@altern.org, 17...@debbugs.gnu.org, g...@gmx.de,
   Nicolas Richard theonewiththeevill...@yahoo.fr
 
  Perhaps add some advise to the web page so ppl pull the emacs24 branch
  instead?
 
 Does someone know how to change the text in
 http://savannah.gnu.org/git/?group=emacs?

Ask savannah-hack...@gnu.org.





Re: [O] Discussion request: 15m tangle time, details follow

2014-06-17 Thread Nick Dokos
Grant Rettke g...@wisdomandwonder.com writes:


 This build is documented in the github project; it only loads the
 absolute minimum required to do the build.

 Ideas: Separate the documents. Hack on org directly.

 Non-ideas: Faster hardware. More ram. Newer software.

 Details:

 Emacs 24.3.1.
 Org 8.2.6
 OSX 10.9 (software updated)
 Darwin orion 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13
 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
 8core 2.x GHz, 16GB ram
 Anti-virus turned off (compliance)

 Please let me know any comments, questions, or concerns; looking
 forward to all and every thought
 and idea.

 Where I may contribute is with time, effort, patience, cheerfulness,
 and experience.


Have you profiled the build? Do you know where the time is spent?
If not, that's where I'd start:

   (info (elisp) Profiling)

Nick