Re: [O] #+NAME: in a property drawer
Sorry for the noise, this was resolved in the proper thread relating to this The solution it so to use ':noweb-ref NAME' as an argument in the drawer best Z
Re: [O] mirror text in same/other org buffer
Ok found the answer "hidden" away in a org manual page.. :) The solution it so to use ':noweb-ref NAME' as an argument in the drawer sorry for the noise Z On Fri, Nov 24, 2017 at 8:20 AM, Xebar Saram wrote: > Hi again, i posted a separate issue on multiple code blocks in babel > creating 1 config but then realized this actually is very appropriate for > this thread...apologize for that. > > @Kaushal, the method you suggested works really well for 1 code block=1 > config file. but what happens when my config file is made out of 1 few > babel code blocks that i tangle together into 1 config file. for example: > > * tmux conf > :PROPERTIES: > :header-args: :noweb yes :tangle /zeltak@132.72.155.204:~/.tmux.conf > :END: > > * Mouse > :PROPERTIES: > :ID: ba8ce7aa-2b3b-43be-816d-ea2ab515a999 > :END: > #+BEGIN_SRC conf > #--> mouse > setw -g mouse on > set-option -g status-keys vi > #+END_SRC > > * Theme and look > :PROPERTIES: > :ID: 85257f51-1306-4caf-a055-a6df3afac1a5 > :END: > #+BEGIN_SRC conf > #--> THEME AND LOOK > #default theme picker > source /home/zeltak/.tmux/neonB > #source /home/zeltak/.tmux/solarized-dark > #+END_SRC > > how do i add a name (#+NAME) argument that covers all the sub headers that > will make '.tmux.conf'. > and then using noweb how does one reffer to that name <> that > will cover all the tiny blocks that create the tmux.conf? > > best! > > Z > > > On Thu, Nov 23, 2017 at 8:16 AM, Xebar Saram wrote: > >> thx! >> >> that works well for me :D >> >> best and happy holidays :) >> >> Z >> >> On Wed, Nov 22, 2017 at 1:40 PM, Kaushal Modi >> wrote: >> >>> On Wed, Nov 22, 2017, 4:55 AM Xebar Saram wrote: >>> Hi alll >>> >>> Hello >>> >>> Im looking for a way to to mirror/auto populate a section of text in another location in the same org buffer and/or other org file. for example, i manage my config files in org mode for multiple machines. i want to have a section like this #+BEGIN_SRC conf :mkdirp yes :tangle ~/machine A CODE #+END_SRC where the same content of CODE is mirroed/auto generated in another code block for machine B #+BEGIN_SRC conf :mkdirp yes :tangle ~/machine B CODE #+END_SRC is this in anyway possible? >>> >>> You cannot have real-time mirroring of content in the Org file itself. >>> >>> But you can implement that DRY model by using Noweb references (See the >>> "Noweb reference syntax" node in the Org manual). >>> >>> You can put the CODE in a separate src block with :noweb-ref set to foo, >>> and then wherever in other code blocks you want to mirror that, you simply >>> put <>. >>> >>> As I said you won't see the mirroring happen live in the Org buffer. But >>> you will see the mirroring done in the exported files. >>> >>> PS: For non-code mirroring (in exported files), there's also do: >>> >>> #+INCLUDE: "./can-be-same-file.org::#CUSTOM_ID" :only-contents t >>> >>> (See the "Include files" node in the Org manual for more.) >>> >>> -- >>> >>> Kaushal Modi >>> >> >> >
Re: [O] mirror text in same/other org buffer
Hi again, i posted a separate issue on multiple code blocks in babel creating 1 config but then realized this actually is very appropriate for this thread...apologize for that. @Kaushal, the method you suggested works really well for 1 code block=1 config file. but what happens when my config file is made out of 1 few babel code blocks that i tangle together into 1 config file. for example: * tmux conf :PROPERTIES: :header-args: :noweb yes :tangle /zeltak@132.72.155.204:~/.tmux.conf :END: * Mouse :PROPERTIES: :ID: ba8ce7aa-2b3b-43be-816d-ea2ab515a999 :END: #+BEGIN_SRC conf #--> mouse setw -g mouse on set-option -g status-keys vi #+END_SRC * Theme and look :PROPERTIES: :ID: 85257f51-1306-4caf-a055-a6df3afac1a5 :END: #+BEGIN_SRC conf #--> THEME AND LOOK #default theme picker source /home/zeltak/.tmux/neonB #source /home/zeltak/.tmux/solarized-dark #+END_SRC how do i add a name (#+NAME) argument that covers all the sub headers that will make '.tmux.conf'. and then using noweb how does one reffer to that name <> that will cover all the tiny blocks that create the tmux.conf? best! Z On Thu, Nov 23, 2017 at 8:16 AM, Xebar Saram wrote: > thx! > > that works well for me :D > > best and happy holidays :) > > Z > > On Wed, Nov 22, 2017 at 1:40 PM, Kaushal Modi > wrote: > >> On Wed, Nov 22, 2017, 4:55 AM Xebar Saram wrote: >> >>> Hi alll >>> >> >> Hello >> >> Im looking for a way to to mirror/auto populate a section of text in >>> another location in the same org buffer and/or other org file. >>> >>> for example, i manage my config files in org mode for multiple machines. >>> i want to have a section like this >>> >>> #+BEGIN_SRC conf :mkdirp yes :tangle ~/machine A >>> CODE >>> #+END_SRC >>> where the same content of CODE is mirroed/auto generated in another code >>> block for machine B >>> >>> #+BEGIN_SRC conf :mkdirp yes :tangle ~/machine B >>> CODE >>> #+END_SRC >>> >>> is this in anyway possible? >>> >> >> You cannot have real-time mirroring of content in the Org file itself. >> >> But you can implement that DRY model by using Noweb references (See the >> "Noweb reference syntax" node in the Org manual). >> >> You can put the CODE in a separate src block with :noweb-ref set to foo, >> and then wherever in other code blocks you want to mirror that, you simply >> put <>. >> >> As I said you won't see the mirroring happen live in the Org buffer. But >> you will see the mirroring done in the exported files. >> >> PS: For non-code mirroring (in exported files), there's also do: >> >> #+INCLUDE: "./can-be-same-file.org::#CUSTOM_ID" :only-contents t >> >> (See the "Include files" node in the Org manual for more.) >> >> -- >> >> Kaushal Modi >> > >
[O] #+NAME: in a property drawer
Hi all and happy holidays! I want to be able to add a #+NAME to a property drawer that would name a code block thats split between sub org headers. Im at loss on how this is done? this is a current example of a tmux conf thats split with different org sub headers: * tmux conf :PROPERTIES: :header-args: :noweb yes :tangle /zeltak@132.72.155.204:~/.tmux.conf :END: * Mouse :PROPERTIES: :ID: ba8ce7aa-2b3b-43be-816d-ea2ab515a999 :END: #+BEGIN_SRC conf #--> mouse setw -g mouse on set-option -g status-keys vi #+END_SRC * Theme and look :PROPERTIES: :ID: 85257f51-1306-4caf-a055-a6df3afac1a5 :END: #+BEGIN_SRC conf #--> THEME AND LOOK #default theme picker source /home/zeltak/.tmux/neonB #source /home/zeltak/.tmux/solarized-dark #+END_SRC I want to add a name (#+NAME) for all the sub headers that will make '.tmux.conf'. anyone know how thats done?
[O] Bug: Estimate effort ranges do not work [9.1.3 (9.1.3-elpa @ /home/francisv/.emacs.d/elpa/org-20171116/)]
#+COLUMNS: %Item %Effort{est+} * Estimated effort :PROPERTIES: :Effort: 1:00-2:00 :END: estplus.backtrace Description: Binary data 1. What exactly did you do? I try to use the low-high estimates with the column attribute {est+} as documented in http://orgmode.org/manual/Column-attributes.html. For that, I tried to assign low and high effort values as in http://thread.gmane.org/gmane.emacs.orgmode/93505/focus=93514. The formats I tried: :Effort: +4.0-12.0 :Effort: 4.0-12.0 :Effort: 4-12 :Effort: 4:00-12:00 :Effort: 4:00-1.5d :Effort_Low: 4:00 :Effort_High: 1.5d 2. What did you expect to happen? In the attached estplus.org, when I do `M-x org-columns', I expected to see the column view with the value for {est+}. 3. What happened instead? In the attached estplus.org, when I do `M-x org-columns', I get the error 'Invalid duration format'. I attach the backtrace as well. Automatically generated with `org-submit-bug-report' Emacs : GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-11-06 Package: Org mode version 9.1.3 (9.1.3-elpa @ /home/francisv/.emacs.d/elpa/org-20171116/) current state: == (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-mode-hook '((closure (org-inlinetask-min-level buffer-face-mode-face org-struct-menu org-last-state org-id-track-globally org-clock-start-time texmathp-why remember-data-file org-agenda-tags-todo-honor-ignore-options iswitchb-temp-buflist calc-embedded-open-mode calc-embedded-open-formula calc-embedded-close-formula align-mode-rules-list org-export-registered-backends ffap-url-regexp t) nil (add-hook (quote change-major-mode-hook) (quote org-show-block-all) (quote append) (quote local))) (closure (*this* org-babel-confirm-evaluate-answer-no t) nil (add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local))) #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function '(closure (org-id-locations org-agenda-search-view-always-boolean org-agenda-overriding-header t) (entry) (cdr (assq :title entry))) org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("id" :follow org-id-open) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path ("https" :follow (lambda (path) (browse-url (concat "https:" path ("mailto" :follow (lambda (path) (browse-url (concat "mailto:"; path ("news" :follow (lambda (path) (browse-url (concat "ne
Re: [O] [PATCH] ox.el: Define subtitle macro
On 2017-11-21, Nicolas Goaziou wrote: > For the record, I implemented a "keyword" macro (master branch). Excellent, that works for me. Many thanks Jens