Re: [O] How to escape [ and ] characters in org-mode links
It works here on a recent Org. Thank you. I have a little outdated version. It started to work after I used the escaped percent as Kyle Meyer suggested.
Re: [O] How to escape [ and ] characters in org-mode links
Hi, Xiha Unfortunately URL encoding the [ and ] doesn't work for me. Try to reproduce it. Create 2 files: file.txt. Content: $form['text1'] $form['text2'] file.org. Content: [[./file.txt::$form%5B'text2'%5D][text2]] When I click the link, it says No match.
[O] How to escape [ and ] characters in org-mode links
org-mode has the following format for links: [[file-name::text-to-search][link text]] What should I do, if text-to-search contains ']' symbol? Like this: $form['input']
[O] How to show/hide the snippet block in org-babel when the cursor is inside the snippet text
I would like to implement the following. Suppose, we have this org file: #+BABEL: :cache yes :tangle yes :noweb yes #+NAME: top_block#+begin_src perl :tangle test.pl :noweb tangle :shebang #!/usr/bin/perl use strict; use warnings; open(my $fh, , test.txt) or die cannot open file name: $!; output-all close($fh);#+end_src #+NAME: output-all#+begin_src perl while (my $line = $fh) { print $line; }#+end_src I can expand/collapse src blocks only when the cursor is on the top lines: #+NAME: top_block#+begin_src perl ... But when it is inside any text in the scr block, expand/collapse doesn't work. How can I add this functionality as moving the cursor every time is not nice.
[O] Extra empty line at the top of the page when tangling.
Code: #+BABEL: :cache yes :tangle yes :noweb yes #+NAME: top_block #+begin_src perl :tangle test.pl :noweb tangle #!/usr/bin/perl use strict; use warnings; open(my $fh, , test.txt) or die cannot open file name: $!; output-all close($fh); #+end_src #+NAME: output-all #+begin_src perl while (my $line = $fh) { print $line; } #+end_src Outputs a perl file, where the 1-st line is blank. What should I do to remove it?
[O] How to join cells in tables and center content
Suppose, I am writing a database table structure. Is it possible to join the 1-st two cells? And make 'table1' centered? Current view and desired: | table1 | | | table1 | |+---+ |+---+ | id | value |-| id | value | || | || | I understand, that it will require programming. Just give me a hint, where is the function, expanding table cells, and I'll try to implement it.
[Orgmode] how to stop delete key putting a region into kill ring
When I am editing a text in Emacs - not only in org-mode - when I select a region and press Del to remove it, it's being placed into the clipboard and when I want to paste some text instead I have to get rid of it. Does anybody know, how to stop it and make Del simply kill the region without putting it into the clipboard? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] /contrib/lisp/org-collector.el
* org-read-prop ** added a more detailed comment ** changed 2 if stements to 1 cond to make the code more comprehensible. ** added (condition-case nil (read prop) (error prop))) instead of (read prop) so, if any error occurs during the conversion of prop to lisp expression - a string will be returned. ** The scheme of the new function if attached. org-collector.el.diff Description: Binary data org-collector.pdf Description: Adobe PDF document ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re[2]: need detailed instructions for submitting the patch
Carsten, can you kindly add this to http://orgmode.org/worg/org-contribute.php#sec-3 To submit the patch follow the instructions: This command will make a patch between the staging area (in your computer), and the file you modified: git diff -p org-whatever.el org-whatever.el.diff If you already committed your changes to your index (staging area), then you should compare against a particular branch (in this example, origin/master): git diff -p origin/master org-whatever.el org-whatever.el.diff You email the output to the mailing list, adding [PATCH] to the subject, and description of what you fixed or changed. Should I add org-whatever.el.diff to output the diff into a file, cause in Juans message it was missing? It will be helpful to the new developers, I think. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re[2]: [Orgmode] Re[2]: need detailed instructions for submitting the patch
Ivanov, please register at http://repo.or.cz and drop me an email with your username -- then you'll be able to improve this page. My username is usr345 Please reread Bernt's email before doing so, it might help keeping things clear. I was trying to understand, how to create a topic branch from Bernts email, but I couldn't. I understood only one: 1. Put the email into .git/config | [sendemail] | to = emacs-orgmode@gnu.org For example, I have a modified file org-whatever.el. What commands must I run? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re[2]: [Orgmode] Re[2]: need detailed instructions for submitting the patch
Yes, Nick, I was asking about the git commands. Thanks. It seems, that creating a topic branch is more complicated, then simply editing the local master copy, creating a diff file and sending it to the mailing list. I think it should be used only in complicated cases. Dmitry ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] need detailed instructions for submitting the patch
The http://orgmode.org/worg/org-contribute.php#sec-3 says: Git can be used to make patches and send them via email - this is perfectly fine for minor changes. These patches will be automatically registered at John Wiegley's patchwork server Please, tell me, what commands should I run to create a patch, upload it and get any feedback from the senior developers? I think, that these commands should be added to the manual, so everybody would know, how to do it. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re[6]: [Orgmode] programming for org-mode
I modified the scheme and the function. I think, that these 2 if-s just complicate the code for comprehension: we have 3 cases, for each of them we should return the appropriate value. Here is my variant of the function, including the fix, that you suggested: (defun org-read-prop (prop) Convert the string property PROP to a number if appropriate. Otherwise if prop looks like a list (meaning it starts with a '(') then read it as lisp, otherwise return it unmodified as a string. (if (and (stringp prop) (not (equal prop ))) (let ((out (string-to-number prop))) (if (equal out 0) (cond ((or (equal ( (substring prop 0 1)) (equal ' (substring prop 0 1))) (condition-case nil (read prop) (error prop))) ((string-match ^\\(+0\\|-0\\|0\\)$ prop) 0) (t (set-text-properties 0 (length prop) nil prop) prop)) out)) prop)) All the tests work fine with the new version. When I tried (org-read-prop (1 2 3))) - (1 2 3) It gave me (1 2 3), ignoring the last ')'. Seems to be the read function bug. At last I got rid of these nasty little squares on the scheme :) org-collector.pdf Description: Adobe PDF document ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re[4]: [Orgmode] programming for org-mode
Thanks, David. I improved the scheme, added 2 question. Please, take a look. org-collector.pdf Description: Adobe PDF document ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re[4]: [Orgmode] programming for org-mode
Hi, Marcelo. I used Visio. Then saved as Postscript and converted to pdf, using ps2pdf. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re[2]: [Orgmode] programming for org-mode
Hi, Eric. I decided to draw schemes for functions in your module org-collector.el. And started from org-read-prop. Please, check my pdf file - my questions are marked with green. If there are no attachments allowed in the mailing list, you can get it here: http://live-wtr.ru/org/org-collector.pdf Can you explain, which function is called, when the user clicks C-c C-c on the line with #+BEGIN: propview? It's almost impossible to understand the complicated code of other programmer without a scheme. Did you see, how many questions emerged after I schematized just one simple function. org-dblock-write:propview seems to be really hard. org-collector.pdf Description: Adobe PDF document ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] programming for org-mode
Hi, can anyone give me a tutorial for org-mode programming and it's API. I just read Eric Schultes module org-collector.el, but I can't understand the code: how it is organized and how to write the elisp for org-mode. Can anyone help? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] No subscript when exporting
I create a program documentation in org mode. When I export to html names with underscore, the second part is a subscript (like in LaTeX): manufacturer_id - id is a subscript. How can I avoid this? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re[2]: [Orgmode] automatic line wrap
I found the solution: (add-hook 'org-mode-hook (lambda () (toggle-truncate-lines))) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] automatic line wrap
How can I set the org-mode to automatically wrap the long lines, so they would fit the window size, as it is done in the fundamental mode? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re[2]: [Orgmode] Literate programming
What is this tree buffer you speak of? The tree buffer is a library from CEDET project, widely used in ECB. Look at this screenshot, and you'll see tree buffers at the top of the frame: http://ecb.sourceforge.net/screenshots/12.png Are you telling me that I can already use Org to view the outline Leo-style, with the outline structure (folded to the content startup visibility) in one window and an indirect buffer narrowed to the body text of the current headline in a second window? I did it with org-babel. Install it, using this manual: http://orgmode.org/worg/org-contrib/babel/intro.php then you can try treir sample, that I rewrote in Perl: * Prefix Here we have the code, that is output in the beginning of the file #+srcname: hello-world-prefix #+begin_src perl print /---\\\n; #+end_src * Postfix This code will be used at the end of the file. #+srcname: hello-world-postfix #+begin_src perl print \---/; #+end_src * File body This is the main code of the file. #+srcname: hello-world #+begin_src perl :tangle hello.pl hello-world-prefix print | hello world |\n; hello-world-postfix #+end_src -end sample- You can edit the code in an indirect buffer, using C-c '. Tangle it with (org-babel-tangle). That would be wonderful! (If not, I would definitely be interested in creating such a feature, but I have no idea where to start.) The first step will be understanding, how does the CEDET library tree-buffer.el work. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Literate programming
Hi. I have been using a literate programming tool: leo editor. Maybe someone used it. A programmer can create a tree with the description of the program with the minuteness he wants. In each node he has a chunk of code and comments, if needed. Is anybody interested in creating an emacs mode, making it like leo?The tree buffer seems an ideal tool for this project. I promise to help with all my elisp skills. I have posted this message at CEDET mailing list, so if you are interested, please check the thread: http://comments.gmane.org/gmane.emacs.cedet/4423 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode