Re: [O] Bug: Can't follow a link to a relative html filename with a whitespace [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]

2013-09-13 Thread Carsten Dominik

On 8.9.2013, at 04:54, Diogo F. S. Ramos diogo...@gmail.com wrote:

 1. touch a file as `/tmp/bar baz.html'
 2. Visit `/tmp/foo.org'
 3. Link to the HTML file typing [[file:bar baz.html]]
 4. Try following the link with C-c C-o
 
 * Expected
 
 Open the file inside a browser
 
 * Happens
 
 Two urls are open inside the browser: file:///tmp/bar and
 http://www.baz.html/


Hi Ramos,

first of all, this works out of the box with my current Org version.
Second, the link should look like this

 [[file:bar%20baz.html][file:bar baz.html]]

Org makes it look like this when you insert the link using the proper Org 
commands to do so.  It also repairs  the link when you put the Cursor on it and 
press `C-c C-l RET RET'.

Third:  I never put spaces into file names :)

Regards

- Carsten



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] [PATCH] Center currently clocked headline to top of screen

2013-09-13 Thread Carsten Dominik
Applied, thank you.

- Carsten

On 10.9.2013, at 11:57, Sebastien Vauban sva-n...@mygooglest.com wrote:

 Hi Carsten,
 
 Carsten Dominik wrote:
 On Sep 2, 2013, at 4:02 PM, Sebastien Vauban sva-n...@mygooglest.com wrote:
 Carsten Dominik wrote:
 El Thu, 22 Aug 2013 10:36:00 +0200 Sebastien Vauban va escriure:
 
 When jumping to the currently clocked headline (via `C-c C-x C-j'), it
 seems (to me) more logical to recenter that headline at the top of the
 screen (vs at the center of the screen, that is the current behavior).
 
 Seeing a bit of context is nice; maybe putting it at line 2 or 3 is
 better than at the top and I think it is better than centered. It could
 also be configurable.
 
 Yup, I have made this a (recenter 2). Non-configurable until arrival of
 more votes.
 
 I'd vote for (recenter 0), as:
 
 - I generally only clock on projects, and
 
 - I'm not interested by seeing the last action(s) of the previous project,
  when jumping to the currently clocking task.
 
 May I submit a patch with a configurable variable?
 
 Yes.
 
 Here it is!
 
 Best regards,
  Seb
 
 From: Sebastien Vauban sva-n...@mygooglest.com
 Date: Tue, 10 Sep 2013 11:52:51 +0200
 Subject: [PATCH] Add option with number of context lines before currently 
 clocked-in entry
 
 * org-clock.el (org-clock-goto-before-context): New option.
  (org-clock-goto): Use that option.
 
 ---
 lisp/org-clock.el |5 -
 1 files changed, 4 insertions(+), 1 deletions(-)
 
 diff --git a/lisp/org-clock.el b/lisp/org-clock.el
 index 524dbf1..c39b589 100644
 --- a/lisp/org-clock.el
 +++ b/lisp/org-clock.el
 @@ -1668,6 +1668,9 @@ Optional argument N tells to change by that many units.
   (message Clock canceled)
   (run-hooks 'org-clock-cancel-hook))
 
 +(defvar org-clock-goto-before-context 2
 +  Number of lines of context to display before currently clocked-in entry.)
 +
 ;;;###autoload
 (defun org-clock-goto (optional select)
   Go to the currently clocked-in entry, or to the most recently clocked one.
 @@ -1691,7 +1694,7 @@ With prefix arg SELECT, offer recently clocked tasks 
 for selection.
 (org-show-entry)
 (org-back-to-heading t)
 (org-cycle-hide-drawers 'children)
 -(recenter 2)
 +(recenter org-clock-goto-before-context)
 (org-reveal)
 (if recent
   (message No running clock, this is the most recently clocked task))
 -- 
 1.7.9
 
 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] [wish, detail] Resume ordered lists

2013-09-13 Thread Carsten Dominik
Hi Sebastien,

this would be nice to have, but is non-trivial to implement and not easily 
mapped to different backends.

- Carsten

On 11.9.2013, at 15:18, Sebastien Vauban sva-n...@mygooglest.com wrote:

 Hello,
 
 Currently, ordered list items may be (re-)started with a different value
 (e.g., 20), by writing the item with `[@20]'.
 
 A nice-to-have feature would be the ability to resume a list at the previous
 value + 1, such as:
 
  ╭
  │ 1. This
  │ 2. That
  │ 
  │ Some intermediate paragraph.
  │ 
  │ 3. [@resume] Those
  ╰
 
 That would allow for more efficiency when adding or deleting items from the
 previous list.
 
 Best regards,
  Seb
 
 -- 
 Sebastien Vauban
 
 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] Bug: Can't follow a link to a relative html filename with a whitespace [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]

2013-09-13 Thread Carsten Dominik

On 8.9.2013, at 04:54, Diogo F. S. Ramos diogo...@gmail.com wrote:

 1. touch a file as `/tmp/bar baz.html'
 2. Visit `/tmp/foo.org'
 3. Link to the HTML file typing [[file:bar baz.html]]
 4. Try following the link with C-c C-o
 
 * Expected
 
 Open the file inside a browser
 
 * Happens
 
 Two urls are open inside the browser: file:///tmp/bar and
 http://www.baz.html/


Hi Ramos,

first of all, this works out of the box with my current Org version.
Second, the link should look like this

[[file:bar%20baz.html][file:bar baz.html]]

Org makes it look like this when you insert the link using the proper Org 
commands to do so.  It also repairs  the link when you put the Cursor on it and 
press `C-c C-l RET RET'.

Third:  I never put spaces into file names :)

Regards

- Carsten



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] Connect to the ssh and execute any command

2013-09-13 Thread Michael Albinus
Andrey Tykhonov atykho...@gmail.com writes:

[Cc to tramp-de...@gnu.org, because I want to help with Tramp config]

 Hi all!

Hi Andrey,

 During last several days I was trying to implement quite simple script
 which:

 1. Creates new buffer with the shell (M-x shell)
 2. Executes there ssh usern...@domain.com. As result -- the password
 prompt appears in the minibuffer. I manually input password.
 3. Then script executes any command in the recently created buffer
 (shell), for example: ls -la. So I expect to see directory listing on
 the domain.com.

 but, for sorry, I cannot to do so that ls -la will be executed!

 I googled, I have tried many different approaches but without any luck :-(

 Here I should mention quite important thing: I cannot use TRAMP because
 it does not work with the server to which the script connects and then
 on which executes ls -la. (I suppose that TRAMP uses FUSE, but for
 sorry FUSE does not work with mine server). So TRAMP is not available
 for me.

Tramp does not use FUSE for ssh connections. Please show an example
connection to the remote host, and how it fails.

Prior to the test, you should apply

   (setq tramp-verbose 6)

This will create a Tramp debug buffer, which shall show the problem.

 Regards,
 Andrey

Best regards, Michael.



Re: [O] Alfred workflow for org-capture

2013-09-13 Thread Alan Schmitt
hari...@gmail.com writes:

 Robert P. Goldman rpgold...@sift.info writes:

 Does anyone have a workflow for the Alfred Mac app launcher that will
 interact with org-capture?

 If Alfred can trigger an Applescript, I use the following with Quicksilver: 

 Applescript: 

 property eclient : /Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n 
 -e 
 do shell script eclient  '(make-orgcapture-frame)'

 elisp in init.el or ...: 

 (defun make-orgcapture-frame ()  
   Create a new frame and run org-capture.  
   (interactive)  
   (make-frame '((name . remember) (width . 80) (height . 16)
 (top . 400) (left . 300)
 (font . 
 -apple-Monaco-medium-normal-normal-*-13-*-*-*-m-0-iso10646-1)
 ))
   (select-frame-by-name remember)  
   (org-capture))

This is a great suggestion! I have one comment and one question.

The comment: if you have capture-templates set up, you can bypass them
by calling `(org-capture nil t)' if you want that template.

The question: is there a way to:
- present only the capture buffer in the new frame (right now it's split
with the scratch buffer)?
- delete the window at the end of capture?

According to some old discussion
(https://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00482.html)
it is not possible, but things may have changed since then.

Alan



Re: [O] [export] Should sidewaystable option automatically add rotating package?

2013-09-13 Thread Detlef Steuer
Hi!

 Hello,
 
 Rasmus ras...@gmx.us writes:
 
  So the question is should it be a default package?
 
  I think not.  E.g. tabu isn't loaded.  Amsmath isn't loaded if you
  generate a matrix.
 
 I think the tabu case (and longtable...) is different from rotating.
 
 No feature in Org requires tabu or longtable unless user explicitly
 writes tabu or longtable somewhere in the buffer (i.e.
 in :environment attribute).
 
 On the other hand, rotating or wrapfig may be needed without the
 user knowing about it (e.g. when setting :float or :wrap attributes).
 
 Therefore, I think wrapfig and rotating belong to the same boat.
 Either we require them both in default packages, or we do not require
 any and add a footnote about it in the manual. I have no preference.
 

I think it is more consistent to provide these packages automagically.

There seems no downside besides slightly longer latex startup times.
Org already loads some default packages to perform its export magic.
Why not try to be feature complete in the sense Nicloas describes:
User doesn't try something special with latex, but uses
commands/options provided by org, so a bare bone export can be expected
work.

Personally I would appreciate it very much if org followed the
principle of least surprise in these cases, as these surprises tend to
show up, if time is running out ;-) 

Just my two user cents.

Detlef 


 On the same line, we could remove longtable from
 `org-latex-default-packages-alist', if only to spare a few kittens.
 
 WDYT?
 
 
 Regards,
 
 -- 
 Nicolas Goaziou
 
 





Re: [O] Alfred workflow for org-capture

2013-09-13 Thread Alexander Baier
Hi Alan,

Alan Schmitt alan.schm...@polytechnique.org writes:

[...]

 The question: is there a way to:
 - present only the capture buffer in the new frame (right now it's split
 with the scratch buffer)?
 - delete the window at the end of capture?


How about `org-capture-after-finalize-hook'? What I can get from the
pcumentation string it seems to be what you are looking for.  You could
try something like this:

  (add-hook org-capture-after-finalize-hook 'delete-frame)

Just tried that, and on my machine this works.


 According to some old discussion
 (https://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00482.html)
 it is not possible, but things may have changed since then.

 Alan


Regards,
Alex




Re: [O] Visibility cycling for headlines with a specific tag ?

2013-09-13 Thread Sebastien Vauban
Hi Martin,

Martin Leduc wrote:
   I am currently taking a lot of notes in an org file containing figures,
 equations, code snippets and text. In my project tree, I have several nodes
 containing supplementary material and code that will not be part of my final
 report exported as a LaTeX pdf. These nodes are tagged as :noexport to avoid
 exporting.

 However, when editing the buffer, I would like to hide all such parts in
 order to focus on the important ones. Is there a way to whether:
 1) folding (or cycling) all headlines of a specific tag in one key action
 2) prevent these tagged headlines to unfold (unless I specifically want to by
 hitting tab when the cursor is on the headline), by some kind of locking
 process ? For example, by tagging with :locked ?

I don't know whether than can solve your problem, but you may try using the
ARCHIVE tag. I know, this is not semantically right; but you could already try
if it meets your requirements.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [export] Should sidewaystable option automatically add rotating package?

2013-09-13 Thread Sebastien Vauban
Hello,

Nicolas Goaziou wrote:
 My point is: if wrapfig is there, rotating should accompany it, or
 both should be removed from the variable. Also, there's no reason for
 longtable to be included.

Your analysis makes a lot of sense (somehow looking at what LaTeX knowledge
the user has, if he writes `longtabu' in his document).

However, I am undecided about doing it the way you propose here above, and
having all of them included by default.

Hence, I'll be happy with whichever proposition you apply.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Alfred workflow for org-capture

2013-09-13 Thread Alan Schmitt
lexi.ba...@gmail.com writes:

 Hi Alan,

 Alan Schmitt alan.schm...@polytechnique.org writes:

 [...]

 The question: is there a way to:
 - present only the capture buffer in the new frame (right now it's split
 with the scratch buffer)?
 - delete the window at the end of capture?


 How about `org-capture-after-finalize-hook'? What I can get from the
 pcumentation string it seems to be what you are looking for.  You could
 try something like this:

   (add-hook org-capture-after-finalize-hook 'delete-frame)

 Just tried that, and on my machine this works.

Thanks, here is my modified version, if someone finds it useful. It
tests for the frame name (there may be a simpler way to get it, but I
could not find it) before deleting the frame.

--8---cut here---start-8---
(add-hook 'org-capture-after-finalize-hook
  (lambda ()
(when (equal
   (cdr (assoc 'name (frame-parameters (selected-frame
   remember)
  (delete-frame
--8---cut here---end---8---

Alan



Re: [O] Alfred workflow for org-capture

2013-09-13 Thread Alan Schmitt
alan.schm...@polytechnique.org writes:

 lexi.ba...@gmail.com writes:

 Hi Alan,

 Alan Schmitt alan.schm...@polytechnique.org writes:

 [...]

 The question: is there a way to:
 - present only the capture buffer in the new frame (right now it's split
 with the scratch buffer)?

Following the idea from Alexander, I tried to find a hook where I could
call delete-other-windows. Unfortunately adding it to
org-capture-hook does not work. Is there a place to do it?

Thanks,

Alan



[O] [PATCH] Recenter around #+begin_src when moving to previous/next code block

2013-09-13 Thread Sebastien Vauban
Hello,

When moving with C-c C-v C-n (or p) from one code block to the next (or
previous), it's much better if the code block gets centered (vs hidden,
forcing the user to scroll down, as it currently is).

This is the purpose of this easy patch.

Best regards,
  Seb

From: Sebastien Vauban sva-n...@mygooglest.com
Date: Fri, 13 Sep 2013 11:56:56 +0200
Subject: [PATCH] Recenter around #+begin_src when moving to previous/next code 
block

* ob-core.el (org-babel-next-src-block): Recenter after jumping to next code 
block.
  (org-babel-previous-src-block): Recenter after jumping to previous code block.

---
 lisp/ob-core.el |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index d57806b..fd4b1bd 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -1748,14 +1748,16 @@ buffer or nil if no such result exists.
   Jump to the next source block.
 With optional prefix argument ARG, jump forward ARG many source blocks.
   (interactive p)
-  (org-next-block arg nil org-babel-src-block-regexp))
+  (org-next-block arg nil org-babel-src-block-regexp)
+  (recenter))
 
 ;;;###autoload
 (defun org-babel-previous-src-block (optional arg)
   Jump to the previous source block.
 With optional prefix argument ARG, jump backward ARG many source blocks.
   (interactive p)
-  (org-previous-block arg org-babel-src-block-regexp))
+  (org-previous-block arg org-babel-src-block-regexp)
+  (recenter))
 
 (defvar org-babel-load-languages)
 
-- 
1.7.9




Re: [O] Outline cycling does not preserve point's position

2013-09-13 Thread Carsten Dominik
Hi Nicolas,

thanks for these.  Please see the two comments below.

On Sep 11, 2013, at 10:01 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Jambunathan K kjambunat...@gmail.com writes:
 
 I am happy with whatever is the latest version.  You may want to commit
 it.
 
 I copy here[fn:1] the current version, for the record, along with its backward
 counterpart. Some points are still to be discussed:
 
  1. What to do on node properties?

I think they should be covered with a single C-down, so treated like a single 
paragraph.

  2. What to do on source blocks?

At the beginning of the block (at the src line)  I think it should jump over 
the full src block.
Inside the block, it can use text-modes forward paragraph.

At lease these would be my suggestions.
Thank you for all your work around this issue!

When the functions are done, please go ahead and commit them and bind them to 
C-up/down.

Regards

- Carsten

 
 
 [fn:1] Here is the code:
 
 (defun org-forward-linear-element ()
  Move forward to beginning of next element, ignoring depth.
 The function implements some special moves for convenience:
  - On an affiliated keyword, jump to the beginning of the
relative element.
  - On an item or a footnote definition, move to the second
element inside, if any.
  - On a table, jump after it.
  - On a verse block, stop after each blank line.
  (interactive)
  (when (eobp) (user-error Cannot move further down))
  (let* ((element (org-element-at-point))
 (type (org-element-type element))
 (post-affiliated (org-element-property :post-affiliated element))
 (contents-begin (org-element-property :contents-begin element))
 (contents-end (org-element-property :contents-end element))
 (end (let ((end (org-element-property :end element)) (parent element))
(while (and (setq parent (org-element-property :parent parent))
(= (org-element-property :contents-end parent) 
 end))
  (setq end (org-element-property :end parent)))
end)))
(cond ((not element)
   (skip-chars-forward  \r\t\n)
   (or (eobp) (beginning-of-line)))
  ;; On affiliated keywords, move to element's beginning.
  ((and post-affiliated ( (point) post-affiliated))
   (goto-char post-affiliated))
  ;; At a table row, move to the end of the table.
  ((eq type 'table-row)
   (goto-char (org-element-property
   :end (org-element-property :parent element
  ((eq type 'table) (goto-char end))
  ((not contents-begin) (goto-char end))
  ;; If current element contents are invisible, skip the
  ;; element altogether.
  ((outline-invisible-p (line-end-position))
   (case type
 (headline
  (org-with-limited-levels (outline-next-visible-heading 1)))
 ;; At a plain list, make sure we move to the next item
 ;; instead of skipping the whole list.
 (plain-list (forward-char)
 (org-forward-linear-element))
 (otherwise (goto-char end
  ((= (point) contents-end) (goto-char end))
  ((= (point) contents-begin)
   ;; Handle special cases.  In all other situations, point is
   ;; where it should be.
   (case type
 (paragraph (goto-char end))
 ;; At a plain list, try to move to second element in
 ;; first item, if possible.
 (plain-list (end-of-line)
 (org-forward-linear-element))
 ;; Consider blank lines as separators in verse blocks to
 ;; ease editing.
 (verse-block
  (beginning-of-line)
  (if (not (re-search-forward ^[ \t]*$ contents-end t))
  (goto-char end)
(skip-chars-forward  \r\t\n)
(if (= (point) contents-end) (goto-char contents)
  (beginning-of-line))
  ;; When contents start on the middle of a line (e.g. in
  ;; items and footnote definitions), try to reach first
  ;; element starting after current line.
  (( (line-end-position) contents-begin)
   (end-of-line)
   (org-forward-linear-element))
  (t (goto-char contents-begin)
 
 (defun org-backward-linear-element ()
  Move backward to start of previous element, ignoring depth.
  (interactive)
  (when (bobp) (user-error Cannot move further up))
  (let* ((element (org-element-at-point))
 (type (org-element-type element))
 (contents-begin (org-element-property :contents-begin element))
 (contents-end (org-element-property :contents-end element))
 (post-affiliated (org-element-property :post-affiliated element))
 (begin (org-element-property :begin element)))
(cond ((not element) (goto-char (point-min)))
  ((= (point) begin)
   

Re: [O] LaTeX export: images subplots

2013-09-13 Thread Suvayu Ali
On Wed, Sep 11, 2013 at 09:47:08PM -0500, John Hendy wrote:
 On Wed, Sep 11, 2013 at 8:56 PM, Martin Leduc mart...@hotmail.com wrote:
  Hi all,
I am using org-mode to write a report with several figures. I would like
  to group some images into a same figure, let say a 2x2 panel. I know that I
  can directly embed latex code in my org file, for example by using the
  subfloats (from the latex subfig package).
 
  However, I would prefer to use an org-based solution of inserting the image
  links in order to keep the convenient way of previewing images right into
  the buffer with C-c C-x C-v.
 
  The only solution I found is by using tables such as:
 
  #+CAPTION: Insert caption here.
  #+ATTR_LATEX: :align p{0.5\textwidth}p{0.5\textwidth}
  | [[pathtoimage]] | [[pathtoimage]] |
  | [[pathtoimage]] | [[pathtoimage]] |
 
  where the size of the images is controled by p{} and C-cxv is working.
  However, in the exported TeX file, it is a table, not a figure. Is there a
  cleaner way to make image panels that would preserve the figure environment
  in the exported TeX file ?
 
 Just wanted to cite my similar (same?) question from a bit back:
 - http://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg01800.html

Actually this might be easier than we might think.

AFAIK, there is already a feature of writing matrices with tables (sorry
no citation).  Maybe that can adapted for images?

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Connect to the ssh and execute any command

2013-09-13 Thread Suvayu Ali
Hi Andrey,

I think you will have better luck on the help-gnu-em...@gnu.org list.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



[O] Remove Org and Tbl from menubar for derived mode

2013-09-13 Thread Christian Wittern

Hi there,

I am developing a mode derived from org for special editing and browsing 
purposes.  I will add my own menu to the menubar and would like to remove 
the menus added by org, Org and Tbl, in order not to confuse my users, 
who will be Emacs newbies in most cases.

I tried several things like

(define-key org-mode-map [menu-bar Org] nil)
or
(define-key global-map [menu-bar Org] nil)
and some other combinations of this line of thought, but nothing succeeded 
in removing the stuff.


I wonder if anybody here has any advice?

All the best and thanks in advance,

Christian

--
Christian Wittern, Kyoto




[O] How to create new export modes derived from html

2013-09-13 Thread Pascal Quesseveur
Hello,

In the past I have created 2 modes in Muse to produce help files from
JavaHelp and CSH. Those modes derived throm html. I want to adapt them
to org-mode (version 7.9). I think they could be implemented as a hook
to html export. What do you think is the best way to create new
exports in that case?


-- 
Pascal Quesseveur
pques...@gmail.com




Re: [O] Remove Org and Tbl from menubar for derived mode

2013-09-13 Thread Carsten Dominik

On Sep 13, 2013, at 2:28 PM, Christian Wittern cwitt...@gmail.com wrote:

 Hi there,
 
 I am developing a mode derived from org for special editing and browsing 
 purposes.  I will add my own menu to the menubar and would like to remove the 
 menus added by org, Org and Tbl, in order not to confuse my users, who 
 will be Emacs newbies in most cases.
 I tried several things like
 
 (define-key org-mode-map [menu-bar Org] nil)
 or
 (define-key global-map [menu-bar Org] nil)
 and some other combinations of this line of thought, but nothing succeeded in 
 removing the stuff.
 
 I wonder if anybody here has any advice?

Interesting question, and I do not know the answer.  Only that you certainly 
should not change the org-mode-map, because such changes would have effects in 
all Org mode buffers.

- Carsten

 
 All the best and thanks in advance,
 
 Christian
 
 -- 
 Christian Wittern, Kyoto
 
 



signature.asc
Description: Message signed with OpenPGP using GPGMail


[O] [export] Beamer frames containing lstlisting are no longer made fragile

2013-09-13 Thread Christoph LANGE
Dear all,

having created a number of Beamer presentations with the old exporter
(Org version 7), I'm now working on the first Beamer presentation with
the new exporter.

Frames that contain an lstlisting environment are no longer made fragile
automatically.  (Thus I'm not sure the documentation in manual section
12.5 Beamer export is still correct, which says `fragile' option is
added automatically if it contains source code that uses any verbatim
environment.)

My intuition after browsing the Org source code and documentation is
that I should now use #+BEGIN_SRC and that then everything will be
handled automatically.  However the language of my listings is a
non-standard one, which requires a lot of custom options to the
lstlisting environment.

Could anyone kindly point me to an example?

Cheers, and thanks in advance,

Christoph

-- 
Christoph Lange, School of Computer Science, University of Birmingham
http://cs.bham.ac.uk/~langec/, Skype duke4701

→ Mathematics in Computer Science Special Issue on “Enabling Domain
  Experts to use Formalised Reasoning”; submission until 31 October.
  http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/



Re: [O] Remove Org and Tbl from menubar for derived mode

2013-09-13 Thread Thorsten Jolitz
Christian Wittern cwitt...@gmail.com writes:

 I wonder if anybody here has any advice?

Not really an advice, just a hint: doesn't org-mode itself use easy-menu
to remove outline from the menu bar?

,---
| 9 matches for easy-menu in buffer: org.el
|5312:(easy-menu-remove outline-mode-menu-heading)
|5313:(easy-menu-remove outline-mode-menu-show)
|5314:(easy-menu-remove outline-mode-menu-hide))
|5320:  (easy-menu-add org-org-menu)
|5321:  (easy-menu-add org-tbl-menu)
|   20675:(easy-menu-define org-tbl-menu org-mode-map Tbl menu
|   20735:(easy-menu-define org-org-menu org-mode-map Org menu
|   21006:(easy-menu-change
|   21096:(easy-menu-change
`---

-- 
cheers,
Thorsten




Re: [O] Bug: Can't follow a link to a relative html filename with a whitespace [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)]

2013-09-13 Thread Diogo F. S. Ramos
 On 8.9.2013, at 04:54, Diogo F. S. Ramos diogo...@gmail.com wrote:

 1. touch a file as `/tmp/bar baz.html'
 2. Visit `/tmp/foo.org'
 3. Link to the HTML file typing [[file:bar baz.html]]
 4. Try following the link with C-c C-o
 
 * Expected
 
 Open the file inside a browser
 
 * Happens
 
 Two urls are open inside the browser: file:///tmp/bar and
 http://www.baz.html/


 Hi Ramos,

Hello Dominik.

 first of all, this works out of the box with my current Org version.

Uh.  That's odd.  Maybe you are not using the same version of me?  I'm
using the org-version shipped with Emacs 24.3.1.

 Second, the link should look like this

 [[file:bar%20baz.html][file:bar baz.html]]

 Org makes it look like this when you insert the link using the proper Org 
 commands to do so.  It also repairs  the link when you put the Cursor on it 
 and press `C-c C-l RET RET'.

You are right.

I was aware of it though so that's why I specifically wrote typing.

I think the %20 is added because org-mode thinks this is an url, which
it is not.

But either way, can you open the file using C-c C-o?  I suspect that
with the repair it's even harder now to open it.

 Third:  I never put spaces into file names :)

That's a sensible thing to do.



Re: [O] Visibility cycling for headlines with a specific tag ?

2013-09-13 Thread Martin Leduc
Exactly what I was searching for. Thank you very much.  
  

[O] [Babel] Getting Info On Empty Source Block Fails

2013-09-13 Thread aditya siram
Hi all,
`org-babel-get-src-block-info` on an empty block fails.

Given:
#+BEGIN_SRC c
#+END_SRC

#+BEGIN_SRC c
non-empty
#+END_SRC

Running `org-babel-get-src-block-info` with point at the beginning of the
first line gives:
(c #+END_SRC

#+BEGIN_SRC c
non-empty ((:colname-names) (:rowname-names) (:result-params replace)
(:result-type . value) (:comments . ) (:shebang . ) (:cache . no)
(:padline . ) (:noweb . no) (:tangle . no) (:exports . code)
(:results . replace) ...)  nil 0 8)

The problem is somewhere in `org-babel-src-block-regex` but I didn't want
to mess with it because it touches all parts of org-babel and I'm not sure
what else would break.

Any advice on how to fix this is appreciated.
-deech


[O] error when publishing

2013-09-13 Thread pw

Hi,

With org-mode 8.0.7 (emacs 23.4.1), I have some problems to publish a 
project.


I have this error : Publishing file /home/xxx/site/org/index.org using 
`org-publish-org-to-html'
find-buffer-visiting: Wrong type argument: stringp, (:base-directory 
~/site/org/ :base-extension org :publishing-directory 
~/site/public_html/ :recursive t :publishing-function 
org-publish-org-to-html ...)


I also had once this error : org-publish-file: Symbol's function 
definition is void: org-publish-org-to-html


I have this code into my .emacs :
-
;; org-mode publishing
(require 'org-publish)
(setq org-publish-project-alist
  '((org-notes
 :base-directory ~/site/org/
 :base-extension org
 :publishing-directory ~/site/public_html/
 :recursive t
 :publishing-function org-publish-org-to-html
 :section-numbers nil
 :table-of-contents nil
 :export-creator-info nil
 :export-author-info nil
 :auto-preamble t
 )
(org-static
 :base-directory ~/site/org/
 :base-extension css\\|js\\|png\\|jpg\\|pdf\\|mp3\\|ogg
 :publishing-directory ~/site/public_html/
 :recursive t
 :publishing-function org-publish-attachment
 )
(site :components (org-notes org-static
---

Any ideas ?

pw



Re: [O] removing Figure x from a caption

2013-09-13 Thread Matt Price
On Thu, Sep 12, 2013 at 4:15 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Matt Price mopto...@gmail.com writes:

 sorry, another question whose answer I'm having trouble finding in the
 manual: is it possible to remove the text Figure X:  from a caption
 defined with

 #+CAPTION:

 ? I'm just doing lecture slides, and the images are merely
 illustrative, labelling them Figure 1 is a bit grandiose.  Thanks
 again!

 I guess you are exporting to Beamer?  If so, the easiest way would be to
 redefine caption to something else.  The following seems to work but I'm
 sure there are prettier ways of doing this:

 --8---cut here---start-8---
 #+startup: beamer
 #+options: H:1
 #+latex_header: \newcommand{\mycaption}[1]{\newline \hfill #1 \hfill 
 \newline} \let\caption\mycaption

 * the slide
 #+caption: This is some very catchy caption
 #+attr_LaTeX: :width 0.5\textwidth
 [[file:~/test/myfig.jpg]]
 --8---cut here---end---8---

 hope this helps,
 eric


Unfortunatey, I'm exporting to HTML (deck.js) not Beamer.  I guess I
still on't understand how to use beamer -- I tried it just now and it
seemed to produce a very plain pdf, not a slideshow at all.  sigh.



Re: [O] removing Figure x from a caption

2013-09-13 Thread Matt Price
On Thu, Sep 12, 2013 at 2:18 PM, Rasmus ras...@gmx.us wrote:
 Matt Price mopto...@gmail.com writes:

 sorry, another question whose answer I'm having trouble finding in the
 manual: is it possible to remove the text Figure X:  from a caption
 defined with

 #+CAPTION:

 ? I'm just doing lecture slides, and the images are merely
 illustrative, labelling them Figure 1 is a bit grandiose.  Thanks
 again!

 Depending on the output format that should be possible.  If LaTeX it
 should be enough to set some variable defining the label name and
 disable the counter.

 If HTML you could probably do it with a filter removing [Ff]igure
 [1-9]+.

I'm not finding an org-export-filter-caption-function, and captions
aren't listed as a valid element type in section 12.13 of the manual.
I can just use CSS to hide the figure-number span that org generates,
but that seems a little clumsy (also interferes a bit with my pristine
install of deck.js... ).

Thanks,
Matt


 –Rasmus

 --
 Got mashed potatoes. Ain't got no T-Bone. No T-Bone





Re: [O] [export] Beamer frames containing lstlisting are no longer made fragile

2013-09-13 Thread Nicolas Goaziou
Hello,

Christoph LANGE math.semantic@gmail.com writes:

 Frames that contain an lstlisting environment are no longer made fragile
 automatically.  (Thus I'm not sure the documentation in manual section
 12.5 Beamer export is still correct, which says `fragile' option is
 added automatically if it contains source code that uses any verbatim
 environment.)

If you're inserting the environment manually, Beamer export back-end
will not be able to detect that a fragile option is required. In that
case, you can also insert that option manually, by setting BEAMER_OPT
property to fragile in the headline representing your frame:

* My frame
  :PROPERTIES:
  :BEAMER_OPT: fragile
  :END:


Regards,

-- 
Nicolas Goaziou



Re: [O] error when publishing

2013-09-13 Thread Nicolas Goaziou
Hello,

pw p...@riseup.net writes:

 (require 'org-publish)

You shouldn't require org-publish, which belongs to the old framework.
I think you can skip this part altogether. If it fails, try requiring
ox-publish instead.


Regards,

-- 
Nicolas Goaziou



Re: [O] removing Figure x from a caption

2013-09-13 Thread Nicolas Goaziou
Hello,

Matt Price mopto...@gmail.com writes:

 I'm not finding an org-export-filter-caption-function, and captions
 aren't listed as a valid element type in section 12.13 of the manual.
 I can just use CSS to hide the figure-number span that org generates,
 but that seems a little clumsy (also interferes a bit with my pristine
 install of deck.js... ).

Caption is attached to an image, which is a link in Org. So correct
filter is `org-export-filter-link-functions'.


Regards,

-- 
Nicolas Goaziou



Re: [O] How to create new export modes derived from html

2013-09-13 Thread Nicolas Goaziou
Hello,

Pascal Quesseveur pques...@gmail.com writes:

 In the past I have created 2 modes in Muse to produce help files from
 JavaHelp and CSH. Those modes derived throm html. I want to adapt them
 to org-mode (version 7.9). I think they could be implemented as a hook
 to html export. What do you think is the best way to create new
 exports in that case?

We rewrote export framework in Org 8.0. I suggest to use it instead.
IIUC, what you want to create is called a derived back-end. There is
a section about it in the manual. Also, ox-md (Markdown back-end) in
core and both ox-s5 and ox-deck in contrib directory are all derived
from html back-end. You may want to look at them.

Do not hesitate to ask on this ML if you need help.


Regards,

-- 
Nicolas Goaziou



Re: [O] How to create new export modes derived from html

2013-09-13 Thread Pascal Quesseveur
NG == Nicolas Goaziou n.goaz...@gmail.com a écrit :

  NG We rewrote export framework in Org 8.0. I suggest to use it
  NG instead.

Thank you for your answer. Yes I have read about the new exports but
my initial goal was to use the version included in latest emacs
release distribution and I think it is version 7.9. The javahelp and
CHM files are mainly html files created by splitting main HTML. Those
files are then processed by external tools. I thought I could create
the required files without requiring too much of org export machinery.
 
  NG IIUC, what you want to create is called a derived back-end.

Exactly.

  NG There is a section about it in the manual.

This section doesn't seem to exist in my version. I think it is in
version 8.

  NG Also, ox-md (Markdown back-end) in core and both ox-s5 and
  NG ox-deck in contrib directory are all derived from html
  NG back-end. You may want to look at them.

From what you said I think I have to consider switching to version 8.


-- 
Pascal Quesseveur
pques...@gmail.com




Re: [O] table as argument to code block : type of the elements

2013-09-13 Thread Eric Schulte
Nick Dokos ndo...@gmail.com writes:

 franc...@avalenn.eu writes:

 This code does not work because of automatic conversion from string to
 number in org-babel-read-table.

 #+TBLNAME: table_test
 | name  |  id |
 |---+-|
 | name1 | 034 |
 | name2 | 135 |
 | name3 | 1B5 |

 #+NAME: code_test
 #+BEGIN_SRC emacs-lisp :var table=table_test
(setq myv )
(dolist (line table myv)
  (unless (eq line 'hline)
(setq myv (concat myv ; (mapconcat 'identity line ,)
myv

 #+END_SRC

 I would like to have this result :

 #+RESULTS: code_test
 : ;name,id;name1,034;name2,135;name3,1B5

 Is there any possibility to deactivate this conversion as with
 inhibit-lisp-eval for lisp forms ? Or better is there any way to chose
 conversion parameters on a column to column basis ?


 Not that I know of. But you can redefine org-babel-read-table to omit
 the conversion:

 --8---cut here---start-8---
 (defun org-babel-read-table ()
(org-table-to-lisp))
 --8---cut here---end---8---

 and redefine it back afterwards:

 --8---cut here---start-8---
 (defun org-babel-read-table ()
   Read the table at `point' into emacs-lisp.
   (mapcar (lambda (row)
 (if (and (symbolp row) (equal row 'hline)) row
   (mapcar (lambda (el) (org-babel-read el 'inhibit-lisp-eval)) 
 row)))
   (org-table-to-lisp)))
 --8---cut here---end---8---

 Disgusting, no?

Disgusting and fantastic.  How about taking it one step further...

This code block defines the == form used to read table references
without conversion.  Eval this first.
#+begin_src emacs-lisp :results silent
  (defmacro with-simple-tables (ref)
`(flet ((org-babel-read-table () (org-table-to-lisp)))
   (org-babel-ref-resolve ,(symbol-name ref
#+end_src

* Original Example
#+TBLNAME: table_test
| name  |  id |
|---+-|
| name1 | 034 |
| name2 | 135 |
| name3 | 1B5 |

#+NAME: code_test_orig
#+BEGIN_SRC emacs-lisp :var table=table_test
  (format %S table)
#+END_SRC

#+RESULTS: code_test_orig
: ((name id) hline (name1 34) (name2 135) (name3 1B5))

and now without conversion

#+NAME: code_test_simplified
#+BEGIN_SRC emacs-lisp :var table=(with-simple-tables table_test)
  (format %S table)
#+END_SRC

#+RESULTS: code_test_simplified
: ((name id) hline (name1 034) (name2 135) (name3 1B5))

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D


Re: [O] [Babel] Getting Info On Empty Source Block Fails

2013-09-13 Thread Eric Schulte
aditya siram aditya.si...@gmail.com writes:

 Hi all,
 `org-babel-get-src-block-info` on an empty block fails.

 Given:
 #+BEGIN_SRC c
 #+END_SRC
 #+BEGIN_SRC c
 non-empty
 #+END_SRC

 Running `org-babel-get-src-block-info` with point at the beginning of the
 first line gives:
 (c #+END_SRC

 #+BEGIN_SRC c
 non-empty ((:colname-names) (:rowname-names) (:result-params replace)
 (:result-type . value) (:comments . ) (:shebang . ) (:cache . no)
 (:padline . ) (:noweb . no) (:tangle . no) (:exports . code)
 (:results . replace) ...)  nil 0 8)

 The problem is somewhere in `org-babel-src-block-regex` but I didn't want
 to mess with it because it touches all parts of org-babel and I'm not sure
 what else would break.

 Any advice on how to fix this is appreciated.
 -deech

This works for me.  With the point on the first # in

 #+BEGIN_SRC c
 #+END_SRC


I get

,[C-c C-v I]
| Lang: c
| Header Arguments:
|   :cache  no
|   :exportscode
|   :hlines no
|   :noweb  yes
|   :padnewline yes
|   :resultsreplace
|   :sessionnone
|   :tangle no
| 
| [back]
`

and

,[M-: (org-babel-get-src-block-info)]
| (c  ((:colname-names) (:rowname-names) (:result-params replace)
|  (:result-type . value) (:comments . ) (:shebang . )
|  (:cache . no) (:padline . ) (:noweb . yes) (:tangle . no)
|  (:exports . code) (:results . replace) ...)  nil 0 882)
`

Cheers,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] Alfred workflow for org-capture

2013-09-13 Thread Damon Haley
In addition to Alfred/Applescript,  the Quickkeys application allows once to
directly access emacs keybindings (without emacsclient) and then let emacs
call call apple script to retrieve useful context for org-capture.

My solution is completely stolen from John Wiegley,  but it works great.

After calling org-smart-capture with quickkeys,  quickkeys calls the
appropriate org-insert functions
from here:

https://github.com/jwiegley/dot-emacs/blob/master/dot-org.el#L534

Quickkeys just needs to know the frontmost application when capture was
called,  which is easy to configure, and then it types the relevant org-insert 
keybinding.

John, has also written a function called smart-capture that goes directly to
the capture template of one's choice:

https://github.com/jwiegley/dot-emacs/blob/master/lisp/org-smart-capture.el

Quickkeys is also worth its price for automating tons of actions with or
without Apple Script.

Damon

 Haider Rizvi hari...@gmail.com writes:

 Robert P. Goldman rpgold...@sift.info writes:
 Does anyone have a workflow for the Alfred Mac app launcher that will
 interact with org-capture?

 If Alfred can trigger an Applescript, I use the following with Quicksilver:

 Applescript: 

 property eclient : /Applications/Emacs.app/Contents/MacOS/bin/emacsclient
 -n -e  do shell script eclient  '(make-orgcapture-frame)'

 elisp in init.el or ...: 

 (defun make-orgcapture-frame ()  
   Create a new frame and run org-capture.  
   (interactive)  
   (make-frame '((name . remember) (width . 80) (height . 16)
 (top . 400) (left . 300)
 (font . 
 -apple-Monaco-medium-normal-normal-*-13-*-*-*-m-0-iso10646-1)
 ))
   (select-frame-by-name remember)  
   (org-capture))

 Regards, 
-- 
app: https://alpha.app.net/haleyscomet | 
net: https://identi.ca/vinylisl | 
git: https://github.com/dhaley | 
irc: dkh on #drupal-colorado/irc/freenode.net




Re: [O] How to set C-o back to open-line?

2013-09-13 Thread Carsten Dominik
Hi Christopher,

you can now do

(setq org-special-ctrl-o nil)

to get what you want.

Regards

- Carsten

On 18.5.2013, at 00:05, Christopher Allan Webber cweb...@dustycloud.org wrote:

 Carsten Dominik writes:
 
 On 17.5.2013, at 00:38, Christopher Allan Webber cweb...@dustycloud.org 
 wrote:
 
 I really hate org-open-line... I can see why people might want it, but
 it's messed up my workflow.  I'd like to set C-o back.
 
 However, I have no idea what org-defkey is doing, but I expected this to
 work:
 
 (define-key org-mode-map (kbd C-o) 'open-line)
 
 This one will work if you do it in org-mode-hook.
 
 Ahah... okay, great, thanks :)
 
 We could also introduce a variable to turn off the special behavior,
 just like we do for C-a, C-e, and C-k.  This seems to me a better
 option than to introduce additional context dependencies or use
 prefix arguments to influence the behavior.
 
 - Carsten
 
 I think that would be nice.  We have options for everything else, why
 not this? ;)
 
 Thanks for the help, all!



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] error when publishing

2013-09-13 Thread pw

Le 13/09/2013 17:26, Nicolas Goaziou a écrit :

You shouldn't require org-publish, which belongs to the old framework.
I think you can skip this part altogether. If it fails, try requiring
ox-publish instead.

Thanks for your answer.

If I remove require 'org-publish) I have another error :

org-publish-file: Symbol's function definition is void: 
org-publish-org-to-html


Adding (require 'ox-publish) doesn't change anything.

pw



Re: [O] error when publishing

2013-09-13 Thread pw
I'm found myself the solution to my question which consiste in replacing 
org-publish-org-to-html by org-html-publish-to-html into my .emacs.


It's a shame that a lot of very good tutorials like Sebastian Rose's 
publishing one are a little bit outdated and, so, make people getting wrong.


pw



Re: [O] error when publishing

2013-09-13 Thread Nick Dokos
pw p...@riseup.net writes:

 Le 13/09/2013 17:26, Nicolas Goaziou a écrit :
 You shouldn't require org-publish, which belongs to the old framework.
 I think you can skip this part altogether. If it fails, try requiring
 ox-publish instead.
 Thanks for your answer.

 If I remove require 'org-publish) I have another error :

 org-publish-file: Symbol's function definition is void:
 org-publish-org-to-html

 Adding (require 'ox-publish) doesn't change anything.


That's because org-publish-org-to-html went away in org 8.x. See this
file for a list of incompatibilities:

   http://orgmode.org/worg/org-8.0.html

Nick




Re: [O] Outline cycling does not preserve point's position

2013-09-13 Thread Nicolas Goaziou
Hello,

Carsten Dominik carsten.domi...@gmail.com writes:

 When the functions are done, please go ahead and commit them and bind
 them to C-up/down.

Done.


Regards,

-- 
Nicolas Goaziou



Re: [O] Remove Org and Tbl from menubar for derived mode

2013-09-13 Thread Christian Wittern

On 2013-09-13 22:09, Thorsten Jolitz wrote:

9 matches for easy-menu in buffer: org.el
|5312:(easy-menu-remove outline-mode-menu-heading)
|5313:(easy-menu-remove outline-mode-menu-show)
|5314:(easy-menu-remove outline-mode-menu-hide))

Yeah, I have seen that.  The problem is the way easy-menu-remove is defined:

easy-menu-remove is an alias for `ignore' in `easymenu.el'.

And the docstring explains:
quote
Remove MENU from the current menu bar.
Contrary to XEmacs, this is a nop on Emacs since menus are automatically
(de)activated when the corresponding keymap is (de)activated.
/quote

In addition to that, it seems that this is not removing the top-level menu, 
but some of the sub-menu entries (... if I understand this correctly...).


And, as Carsten reminded me, what I do *not* want to do is de-activate 
org-mode's keymap:-)


So still wondering...

Christian

--
Christian Wittern, Kyoto




[O] Contributing Without Patches ...

2013-09-13 Thread aditya siram
Hi all
I've made a couple of changes to the latest source tree but I can't seem to
create patches because of some merges that happened subsequently. Is there
some way for me to issue a pull-request?

-deech


Re: [O] Contributing Without Patches ...

2013-09-13 Thread Suvayu Ali
Hello Aditya,

On Fri, Sep 13, 2013 at 06:42:13PM -0500, aditya siram wrote:
 Hi all
 I've made a couple of changes to the latest source tree but I can't seem to
 create patches because of some merges that happened subsequently. Is there
 some way for me to issue a pull-request?

What problems are you having?  A little more details would help us help
you.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Remove Org and Tbl from menubar for derived mode

2013-09-13 Thread Suvayu Ali
Hi,

On Fri, Sep 13, 2013 at 02:44:31PM +0200, Carsten Dominik wrote:
 On Sep 13, 2013, at 2:28 PM, Christian Wittern cwitt...@gmail.com wrote:
 
  I am developing a mode derived from org for special editing and
  browsing purposes.  I will add my own menu to the menubar and would
  like to remove the menus added by org, Org and Tbl, in order not
  to confuse my users, who will be Emacs newbies in most cases.  I
  tried several things like
  
  (define-key org-mode-map [menu-bar Org] nil)
  or
  (define-key global-map [menu-bar Org] nil)
  and some other combinations of this line of thought, but nothing
  succeeded in removing the stuff.
  
  I wonder if anybody here has any advice?
 
 Interesting question, and I do not know the answer.  Only that you
 certainly should not change the org-mode-map, because such changes
 would have effects in all Org mode buffers.

I have never defined menus, but a quick look tells me you use
define-key.  If that is correct, then can't you just redefine the Org
and Tbl menu to nil?  I believe if you do that with regular key
sequences, any existing bindings get removed.

Just a thought.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Remove Org and Tbl from menubar for derived mode

2013-09-13 Thread Suvayu Ali
 On Sep 13, 2013, at 2:28 PM, Christian Wittern cwitt...@gmail.com wrote:
  
  (define-key org-mode-map [menu-bar Org] nil)

Oops, Christian already tried that!  I guess it's time for me to go to
bed :-p.

-- 
Suvayu

Open source is the future. It sets us free.



[O] Jumping from source block to Org block ...

2013-09-13 Thread aditya siram
Attached is a patch that fixes a bug with jumping from source block back to
the Org file. The problem is that the current detangling behavior does not
take the :padlline flag into account. This stopped.

Hopefully this is helpful to others ...
-deech


src_block_jump_fix.patch
Description: Binary data


[O] [Babel] Parsing source block bug ...

2013-09-13 Thread aditya siram
Hi all,
This patch fixes a bug where the regexp for parsing source blocks is too
greedy on the body and so fails in the presence of empty code blocks. For
instance given the following:

#+begin_src c
#+end_src

#+begin_src c
hello world
#+end_src

, doing (org-babel-get-src-block-info) the first #+begin_src will include
everything up to the second #+end_src as part of the body.
-deech


src_block_regexp_fix.patch
Description: Binary data


Re: [O] Remove Org and Tbl from menubar for derived mode

2013-09-13 Thread Nick Dokos
Christian Wittern cwitt...@gmail.com writes:

 Hi there,

 I am developing a mode derived from org for special editing and
 browsing purposes.  I will add my own menu to the menubar and would
 like to remove the menus added by org, Org and Tbl, in order not
 to confuse my users, who will be Emacs newbies in most cases.
 I tried several things like

 (define-key org-mode-map [menu-bar Org] nil)
 or
 (define-key global-map [menu-bar Org] nil)
 and some other combinations of this line of thought, but nothing
 succeeded in removing the stuff.

 I wonder if anybody here has any advice?

 All the best and thanks in advance,


The elisp manual says (sec. 22.17.5, The Menu Bar):

,
|A local keymap can cancel a menu bar item made by the global keymap
| by rebinding the same fake function key with `undefined' as the
| binding.  For example, this is how Dired suppresses the `Edit' menu bar
| item:
| 
|  (define-key dired-mode-map [menu-bar edit] 'undefined)
`

-- 
Nick




Re: [O] Outline cycling does not preserve point's position

2013-09-13 Thread Carsten Dominik
Hello Nicolas,

thank you!

- Carsten

On 14.9.2013, at 00:29, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Hello,
 
 Carsten Dominik carsten.domi...@gmail.com writes:
 
 When the functions are done, please go ahead and commit them and bind
 them to C-up/down.
 
 Done.
 
 
 Regards,
 
 -- 
 Nicolas Goaziou



signature.asc
Description: Message signed with OpenPGP using GPGMail