Re: [O] three bugs/misfeatures in org-reveal (or is org-reveal the wrong way to reveal around point?)
Hi Samuel, Samuel Wales wrote: > I hope a kind soul can comment here. > > For years I have been trying to make it so that you can go > to Org from Magit and have it reveal the way I want. > > [All I want is what for me is a normal visibility state, which means a > visibility state that can be recreated using only arrow keys and TAB.] > > Is org-reveal the wrong tool for this job? Is there another tool that > works better for it? > > The apparent bugs are in the comments below. > > Thanks. > > Samuel > > P.S. I am also hoping for the same effect upon going from the Org > agenda to the Org outline. > > === > > (defadvice magit-visit-item (after org-visibility activate compile) > "Make going to Org from Magit reveal canonically." > (when (eq major-mode 'org-mode) > (alpha-org-reveal-canonically))) > > (defun alpha-org-reveal-canonically () > "Reveal around point canonically. > > Canonical visibility means that the buffer is always in a > visibility state that can be created solely by arrow keys + TAB. > > Thus, merely showing the next header without all of its siblings > is not canonical. Also, showing children without showing the > parent's entry text is not canonical." > (interactive) > > ;; bug 1: when point is in entry text, the first child of that > ;; entry shows, but its siblings (i.e. the other children) do > ;; not show, even though i have org-show-siblings and > ;; org-show-hierarchy-above both set to t. > ;; > ;; the entry text must show because point is in it. and > ;; because it must show, so must all children. how do i get it > ;; to do this? > ;; > ;; bug 2: when point is on the first child headline, its > ;; siblings show, but the entry text of its parent does not > ;; show. how do i get it to show the parent's entry text? > ;; > ;; bug 3: org-reveal takes several seconds to run. is there a > ;; way to speed it up? > > (org-reveal t) > ;; (if ...) > ;; (show-entry) > ) Just a question: did you play with the following settings? --8<---cut here---start->8--- ;; show full hierarchy when revealing a location (setq org-show-hierarchy-above t) ;; don't show following heading when revealing a location (setq org-show-following-heading nil) ;; don't show all sibling headings when revealing a location (setq org-show-siblings nil) ;; show the entry below a headline when revealing a location ;; (setq org-show-entry-below t) (setq org-show-entry-below '((org-goto . t))) --8<---cut here---end--->8--- Do they impact or resolve some of the things you consider as bugs? Best regards, Seb -- Sebastien Vauban
Re: [O] Bug: Messaging when moving in the agenda [7.9.2 (7.9.2-GNU-Emacs-24-3 @ /usr/share/emacs/24.2.50/lisp/org/)]
Hello, > When I move around in the *Org Agenda* with up and down, the current > outline path is displayed in the echo area, which is good. > > However, what is displayed gets also copied in the *Messages* buffer, > which is not helpful, but clutters *Messages* with useless noise. > > So, IMHO `org-display-outline-path' should still display its stuff in > the echo area, but prevent logging in *Messages*. AFAIK, the way to do > this is to bind `message-log-max' to nil. Can we please try to make some progress here? I don't want to suggest a patch because I don't know the org code base well, but binding `message-log-max' to nil at one or two location should totally suffice. Who can help? Regards, Michael.
[O] Bug report: Heading in example considered as true heading
Hi, I realized recently the following behavior, running on org version 8.0.3 got from commit d7e884d86c8560477ca1e69fb8423db6770981ac (git sha). Use the following org sample: ---Beginning * test1 #+BEGIN_EXAMPLE * stuff #+END_EXAMPLE * test2 ---End Then in test, do M- to get test1 down. Even though the example is badly indented, it is part of the test1 heading. The buffer I expect after the command is: ---Beginning * test2 * test1 #+BEGIN_EXAMPLE * stuff #+END_EXAMPLE ---End What I got is ---Beginning * stuff #+BEGIN_EXAMPLE * test1 #+END_EXAMPLE * test2 ---End My 2 cents. -- Konubinix GPG Key: 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A signature.asc Description: PGP signature
[O] org-timeline function missing
Hello, I've been running org-mode for a while, and I've come across an issue that was not present before. If I open an org file, the org-timeline function is not defined. I can only call it once I open an agenda buffer with org-agenda. This issue is reproducible both under vanilla emacs 24.3, and emacs 24.3 + the latest org-mode development version (20130805). Any indications pointing whether this is a bug or a misconfiguration from my side would be much appreciated. Best,
Re: [O] Bug report: Heading in example considered as true heading
Hello, Samuel Loury writes: > I realized recently the following behavior, running on org version 8.0.3 > got from commit d7e884d86c8560477ca1e69fb8423db6770981ac (git sha). > > Use the following org sample: > > ---Beginning > * test1 > #+BEGIN_EXAMPLE > * stuff > #+END_EXAMPLE > * test2 > ---End Headlines have precedence over blocks. Therefore "* stuff" is really a headline in your example. If you want to start a line with a star within an example block, escape it with a comma. See section 11.3 in manual for more information. Regards, -- Nicolas Goaziou
[O] Insert variable into tangled source code
Hello! I use orgmode to write code in a IA language developped by the company I work for. Everything was just nice when I attempted to insert in the source code a value set up in my org buffer. Here is the real situation : #+TBLNAME: tab_x | x | 1 | #+begin_src own_lang :tangle ./tangle_file :var x=x[0,1] TYPE OBJ; CONSTANTE var_x DOMAIN INTEGER DEFAULT $x #+end_src and I would except in tangle_file : TYPE OBJ; CONSTANTE var_x DOMAIN INTEGER DEFAULT 1 But unfortunately, I get TYPE OBJ; CONSTANTE var_x DOMAIN INTEGER DEFAULT $x Any ideas??? Thanks in advance. Roland.
Re: [O] Bug report: Heading in example considered as true heading
Hi, Nicolas Goaziou writes: > Samuel Loury writes: > >> Use the following org sample: >> >> ---Beginning >> * test1 >> #+BEGIN_EXAMPLE >> * stuff >> #+END_EXAMPLE >> * test2 >> ---End > > Headlines have precedence over blocks. Therefore "* stuff" is really > a headline in your example. > > If you want to start a line with a star within an example block, escape > it with a comma. See section 11.3 in manual for more information. Thanks for the answer. Next time I fill a bug report, I will look closer to the manual :-). -- Konubinix GPG Key: 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A signature.asc Description: PGP signature
Re: [O] Insert variable into tangled source code
Roland wrote: > I use orgmode to write code in a IA language developped by the company I > work for. Everything was just nice when I attempted to insert in the source > code a value set up in my org buffer. > > Here is the real situation : > > #+TBLNAME: tab_x > | x | 1 | > #+begin_src own_lang :tangle ./tangle_file :var x=x[0,1] > TYPE OBJ; > > CONSTANTE > var_x DOMAIN INTEGER DEFAULT $x > #+end_src > > and I would except in tangle_file : > TYPE OBJ; > > CONSTANTE > var_x DOMAIN INTEGER DEFAULT 1 > > But unfortunately, I get > TYPE OBJ; > > CONSTANTE > var_x DOMAIN INTEGER DEFAULT $x > > Any ideas??? First, x[0,1] can't be resolved (unlike tab_x[0,1]). For the rest, I'd guess you must add the proper replacemen "method" for `own_lang'. Is this the case? I mean: depending on the Babel language, variables must or must not be prefixed by a $ sign to be replaced in the code block. For example, in Emacs Lisp, you won't prefix vars with $. Maybe have a look at `sh' or `sql' Babel languages for inspiration. Best regards, Seb -- Sebastien Vauban
Re: [O] org-timeline function missing
Gammel Holte writes: > Hello, > > I've been running org-mode for a while, and I've come across an issue > that was not present before. > > If I open an org file, the org-timeline function is not defined. I can > only call it once I open an agenda buffer with org-agenda. > > This issue is reproducible both under vanilla emacs 24.3, and emacs > 24.3 + the latest org-mode development version (20130805). > > Any indications pointing whether this is a bug or a misconfiguration > from my side would be much appreciated. > org-timeline is not autoloaded. You can force it by adding (require 'org-agenda) to your .emacs. Whether it *should* be autoloaded is debatable: org-timeline has weaknesses and although not officially deprecated, should be IMO best avoided. See Carsten's comments in http://thread.gmane.org/gmane.emacs.orgmode/39368/focus=39465 -- Nick
Re: [O] org-timeline function missing
Thanks for the helpful reply. On Tue, Aug 6, 2013 at 4:02 PM, Nick Dokos wrote: > Gammel Holte writes: > >> Hello, >> >> I've been running org-mode for a while, and I've come across an issue >> that was not present before. >> >> If I open an org file, the org-timeline function is not defined. I can >> only call it once I open an agenda buffer with org-agenda. >> >> This issue is reproducible both under vanilla emacs 24.3, and emacs >> 24.3 + the latest org-mode development version (20130805). >> >> Any indications pointing whether this is a bug or a misconfiguration >> from my side would be much appreciated. >> > > org-timeline is not autoloaded. You can force it by adding > > (require 'org-agenda) > > to your .emacs. > > Whether it *should* be autoloaded is debatable: org-timeline has > weaknesses and although not officially deprecated, should be IMO > best avoided. See Carsten's comments in > >http://thread.gmane.org/gmane.emacs.orgmode/39368/focus=39465 > > -- > Nick > >
Re: [O] Insert variable into tangled source code
Sebastien Vauban writes: > > First, x[0,1] can't be resolved (unlike tab_x[0,1]). > > For the rest, I'd guess you must add the proper replacemen "method" for > `own_lang'. Is this the case? > > I mean: depending on the Babel language, variables must or must not be > prefixed by a $ sign to be replaced in the code block. For example, in Emacs > Lisp, you won't prefix vars with $. > > Maybe have a look at `sh' or `sql' Babel languages for inspiration. > > Best regards, > Seb > Thank you very much!!! I've just adapted the SQL expand variable function in ob-sql.el to my language and it works perfectly! Best regards. Roland.
[O] Trouble with Export
[ Ubuntu 12.04.2; org-8.0.7 ] I was working on this file (as well as other more complicated ones): * alpha * beta * b1 * b2 * gamma and I invoked 'org-export'. Entering an `h' produced these errors: Exporting... (New file) org-export-preprocess-string: Wrong number of arguments: #[(&optional sort-only) "ÃÃ!  S  Ã_S ÃÂ* ÃÃ\"Â+ ÃPÃÃÂ56Ã7ÂebÂà Â6Âà 6@86A@98 Z Ã87\"Â:A@Âf TÂ;Ã68;Ât Ã:8<= Ã68b¨ 6A@Ã68|Â6A@bÂÃÃ;\"cÂ<¨ >¨ à Â:Âà Ã68º ÃÃ8!8?8;?<Ã9!¯7B7)-Â<