continuing about orgalist org-element interaction
I guess in a way the other thread (Sub: orgalist send bug) is done and orgalist in the new version is usable enough for me that I can live with the warning. But I was troubled with the possibility of lots of load path shadows so I spent some time cleaning up. [In any case since emacs had got upgraded recently, things like use-package are now in emacs so they had to be removed. So it's good I did that] But I felt like still poking around seeing if I could see what's the issue. I figured its these 5 lines at the start of org-element-at-point (unless (derived-mode-p 'org-mode) (display-warning '(org-element org-element-parser) (format-message "`org-element-at-point' cannot be used in non-Org buffer %S (%s)" (current-buffer) major-mode))) Now the current buffer (in my case) is text-mode, obviously not org mode so why that check?? Commenting out those lines the error message has gone. (And of course its still working) [I also checked that the corresponding send from ORGTBL does NOT invoke org-element-at-point] Now obviously I dont understand enough about the innards of org to make any suggestion to remove as Ive currently tried. But still there is the question (really for Nicolas) What is the meaning of ensuring that its org mode and warning otherwise when orgalist (like orgtbl) are meant specifically for non org buffers? Thanks Rusi
Re: [BUG] orgalist send bug
Playing around a little more only more confusing Earlier I thought: - Normal emacs startup gives warning on send - make repro startup makes it an error But now I find that even the make repro also gives warnings or errors unpredictably. [Normal startup was never giving errors; only warnings and until 1.14 it was deleting the source, now not deleting]
Build issues
Its possible that the other bug I reported on orgalist and mixed org is related to some build issues So heres a report $ make up1 Some selected lines of output 1. I guess harmless Loading /extra/pdsw/org-mode/mk/org-fixup.el (source)... WARNING: No org-loaddefs.el file could be found from where org.el is loaded. You need to run "make" or "make autoloads" from Org lisp directory Neither repeatedly running mae up1 or running make autoloads makes the warning go away 2. absent ob-vala Cannot open load file: No such file or directory, ob-vala make[1]: *** [mk/targets.mk:102: test-dirty] Error 255 make[1]: Leaving directory '/extra/pdsw/org-mode' make: *** [mk/targets.mk:112: up1] Error 2 3. make helpall documents make vanilla But not make repro [a docbug]
Re: [BUG] orgalist send bug
On Tue, Jun 18, 2024 at 2:51 PM Nicolas Goaziou wrote: > > Hello, > > Rustom Mody writes: > > > I can confirm that with orgalist 1.15 the delete behavior has been > > corrected -- Thanks! > > The warning: > > ⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org > > buffer # (text-mode) > > I think I fixed it in release freshly submitted release 1.16. The elpa broken link and 1.14 1.15 mixup is gone But the problem remains If I start emacs normally then this warning ⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer # (text-mode) The following error on make repro package-initialize package-install orgalist Open file M-x orgalist-mode M-x orgalist-send-list Debugger entered--Lisp error: (wrong-number-of-arguments org-persist-load 5) (org-persist-load (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (current-buffer) 'match-hash :read-related t) (progn (org-persist-load (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (current-buffer) 'match-hash :read-related t)) (if (and org-element-cache-persistent org-element-use-cache) (progn (org-persist-load (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (current-buffer) 'match-hash :read-related t))) (let ((delay-mode-hooks t)) (outline-mode) (setq major-mode 'org-mode) (setq mode-name "Org") (progn (if (get 'outline-mode 'mode-class) (put 'org-mode 'mode-class (get 'outline-mode 'mode-class))) (if (keymap-parent org-mode-map) nil (set-keymap-parent org-mode-map (current-local-map))) (let ((parent (char-table-parent org-mode-syntax-table))) (if (and parent (not (eq parent (standard-syntax-table nil (set-char-table-parent org-mode-syntax-table (syntax-table (if (or (abbrev-table-get org-mode-abbrev-table :parents) (eq org-mode-abbrev-table local-abbrev-table)) nil (abbrev-table-put org-mode-abbrev-table :parents (list local-abbrev-table (use-local-map org-mode-map) (set-syntax-table org-mode-syntax-table) (setq local-abbrev-table org-mode-abbrev-table) (set (make-local-variable 'org-mode-loading) t) (set (make-local-variable 'tab-width) 8) (org-load-modules-maybe) (if org-agenda-file-menu-enabled (progn (org-install-agenda-files-menu))) (set (make-local-variable 'outline-regexp) org-outline-regexp) (set (make-local-variable 'outline-level) 'org-outline-level) (org-element-cache-reset) (if (and org-element-cache-persistent org-element-use-cache) (progn (org-persist-load (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (current-buffer) 'match-hash :read-related t))) (org-set-regexps-and-options) (add-to-invisibility-spec '(org-link)) (org-fold-initialize (or (and (stringp org-ellipsis) (not (equal "" org-ellipsis)) org-ellipsis) "...")) (make-local-variable 'org-link-descriptive) (if (eq org-fold-core-style 'overlays) (progn (add-to-invisibility-spec '(org-hide-block . t (if (and (stringp org-ellipsis) (not (equal "" org-ellipsis))) (progn (if org-display-table nil (setq org-display-table (make-display-table))) (set-display-table-slot org-display-table 4 (vconcat (mapcar #'(lambda ... ...) org-ellipsis))) (setq buffer-display-table org-display-table))) (org-set-font-lock-defaults) (if (and org-tag-faces (not org-tags-special-faces-re)) (progn (org-set-tag-faces 'org-tag-faces org-tag-faces))) (set (make-local-variable 'calc-embedded-open-mode) "# ") (set-syntax-table (make-syntax-table org-mode-syntax-table)) (set (make-local-variable 'font-lock-unfontify-region-function) 'org-unfontify-region) (set (make-local-variable 'org-table-may-need-update) t) (add-hook 'before-change-functions 'org-before-change-function nil 'local) (add-hook 'kill-buffer-hook 'org-check-running-clock nil 'local) (org-fold--advice-edit-commands) (org-macro-initialize-templates) (org-update-radio-target-regexp) (set (make-local-variable 'indent-line-function) 'org-indent-line) (set (make-local-variable 'indent-region-function) 'org-indent-region) (org-setup-filling) (org-setup-comments-handling) (set (make-local-variable 'beginning-of-defun-function) 'org-backward-element) (set (make-local-variable 'end-of-defun-function) #'(lambda nil (if (not (org-at-heading-p)) (org-forward-element) (org-forward-element) (forward-char -1 (set (make-local-variable 'next-error-function) 'org-occur-next-match) (set (make-local-variable 'add-log-current-defun-function) #'org-add-log-current-headline) (if org-enforce-todo-dependencies (add-hook 'org-blocker-hook 'org-block-todo-from-children-or-siblings-or-parent) (remove-hook 'org-blocker-hook 'org-block-todo-from-children-or-siblings-or-parent)) (if org-enforce-todo-checkbox-dependencies (add-hook 'org-blocker-hook 'org-block-todo-from-checkboxes) (remove-hook 'org-blocker-hook 'org-block-todo-from-checkboxes)) (set (make-local-variable 'align-mode-rules-list) '((org-
Re: [BUG] orgalist send bug
On Tue, Jun 18, 2024 at 1:09 PM Ihor Radchenko wrote: > > Rustom Mody writes: > > >> 1. make repro > >> 2. (push "/path/to/orgalist/folder/on/elpa/dir" load-path) > >> > >> > > Doing that alone does not find orgalist-mode > > If I add: > > 3. load-file "/path/to/orgalist/folder/on/elpa/dir/orgalist-autoloads.el" > > > > then orgalist minor mode starts > > > > But on M-x orgalist-send-list I get > > > > Debugger entered--Lisp error: (error "Not at a list item") > > error("Not at a list item") > > Hmm. Let's try to isolate things even further. > > May you > > 1. make repro > 2. download orgalist source code separately All I can find is https://elpa.gnu.org/packages/orgalist.html That has a link https://elpa.gnu.org/packages/orgalist-1.14.tar which is broken Also it has versions 1.14 and 1.15 confused Latest orgalist-1.14.tar But below the badge GNU ELPA orgalist 1.15 When I changed the 14 in the link to 15 I could download a tar file It seems to contain the same file that elpa gets I load it by hand Get the same error: Debugger entered--Lisp error: (error "Not at a list item") error("Not at a list item") (if (orgalist--at-item-p) nil (error "Not at a list item")) (catch 'exit (if (orgalist--at-item-p) nil (error "Not at a list item")) (save-excursion (let ((case-fold-search t)) (re-search-backward "^[ \11]*#\\+ORGLST:" nil t) (if (looking-at "[ \11]*#\\+ORGLST:[ \11]+SEND[ \11]+\\(\\S-+\\)[ \11]+\\([^ \11\n]...") nil (if maybe (throw 'exit nil) (error "Don't know how to transform this list") (let* ((name (regexp-quote (match-string 1))) (transform (intern (match-string 2))) (bottom-point (save-excursion (re-search-forward "\\(end{comment}\\|@end ignore\\|-->\\)" nil t) (match-beginning 0))) (top-point (progn (re-search-backward "#\\+ORGLST" nil t) (re-search-forward (org-item-beginning-re) bottom-point t) (match-beginning 0))) (plain-list (save-excursion (goto-char top-point) (funcall 'org-list-to-lisp (if (fboundp transform) nil (error "No such transformation function %s" transform)) (let ((txt (funcall transform plain-list))) (save-excursion (goto-char (point-min)) (let ((receiver-count 0) (begin-re (format "BEGIN +RECEIVE +ORGLST +%s\\([ \11]\\|$\\)" name)) (end-re (format "END +RECEIVE +ORGLST +%s\\([ \11]\\|$\\)" name))) (while (re-search-forward begin-re nil t) (setq receiver-count (1+ receiver-count)) (let (...) (if ... nil ...) (beginning-of-line) (delete-region beg ...) (insert txt "\n"))) (cond ((> receiver-count 1) (message "List converted and installed at receiver locations")) ((= receiver-count 1) (message "List converted and installed at receiver location")) (t (user-error "No valid receiver location found" orgalist-send-list() funcall-interactively(orgalist-send-list) command-execute(orgalist-send-list record) execute-extended-command(nil "orgalist-send-list" "orgalist-se") funcall-interactively(execute-extended-command nil "orgalist-send-list" "orgalist-se") command-execute(execute-extended-command)
Re: [BUG] orgalist send bug
Note I tried removing the elpa packages requiring org but there are many Including org-contrib
Re: [BUG] orgalist send bug
On Tue, Jun 18, 2024 at 11:59 AM Ihor Radchenko wrote: > Rustom Mody writes: > > > There is no mixed org > > > > List-load-path-shadows shows a git org 9.8pre and an elpa org 9.6 > > I cant remove the elpa because there are other elpa packages that have > > (require 'org) > > > > Any thoughts/suggestions? > > There _is_ mixed Org. In this particular case, likely org 9.6 from ELPA > Yes -- that was a typo when I said there is no mixed org > is shadowing the 9.8pre that make repro sets up. When you run > (package-activate-all), you shadow the 9.8pre with ELPA version. > > Instead of doing (package-activate-all) try > > 1. make repro > 2. (push "/path/to/orgalist/folder/on/elpa/dir" load-path) > > Doing that alone does not find orgalist-mode If I add: 3. load-file "/path/to/orgalist/folder/on/elpa/dir/orgalist-autoloads.el" then orgalist minor mode starts But on M-x orgalist-send-list I get Debugger entered--Lisp error: (error "Not at a list item") error("Not at a list item") orgalist-send-list() funcall-interactively(orgalist-send-list) command-execute(orgalist-send-list record) execute-extended-command(nil "orgalist-send-list" nil) funcall-interactively(execute-extended-command nil "orgalist-send-list" nil) command-execute(execute-extended-command)
Re: [BUG] orgalist send bug
On Mon, Jun 17, 2024 at 11:37 PM Nicolas Goaziou wrote: > > Fixed. Thank you. > > Nicolas: I can confirm that with orgalist 1.15 the delete behavior has been corrected -- Thanks! The warning: ⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer # (text-mode) remains however. [A 1 line warning buffer] Ihor: The (require 'org-element) at that point (after make repro and package-initialize) a 165 line warning buffer starting ⛔ Warning (emacs): Org version mismatch. ... There is no mixed org List-load-path-shadows shows a git org 9.8pre and an elpa org 9.6 I cant remove the elpa because there are other elpa packages that have (require 'org) Any thoughts/suggestions?
Re: [BUG] orgalist send bug
Oops after sending the last mail, when I closed the debug window I see this warning window below ⛔ Warning (emacs): Org version mismatch. This warning usually appears when a built-in Org version is loaded prior to the more recent Org version. Version mismatch is commonly encountered in the following situations: 1. Emacs is loaded using literate Org config and more recent Org version is loaded inside the file loaded by ‘org-babel-load-file’. ‘org-babel-load-file’ triggers the built-in Org version clashing the newer Org version attempt to be loaded later. It is recommended to move the Org loading code before the ‘org-babel-load-file’ call. 2. New Org version is loaded manually by setting ‘load-path’, but some other package depending on Org is loaded before the ‘load-path’ is configured. This "other package" is triggering built-in Org version, again causing the version mismatch. It is recommended to set ‘load-path’ as early in the config as possible. 3. New Org version is loaded using straight.el package manager and other package depending on Org is loaded before straight triggers loading of the newer Org version. It is recommended to put (straight-use-package 'org) early in the config. Ideally, right after the straight.el bootstrap. Moving ‘use-package’ :straight declaration may not be sufficient if the corresponding ‘use-package’ statement is deferring the loading. 4. A new Org version is synchronized with Emacs git repository and stale .elc files are still left from the previous build. It is recommended to remove .elc files from lisp/org directory and re-compile. ⛔ Warning (emacs): Org version mismatch. This warning usually appears when a built-in Org version is loaded prior to the more recent Org version. Version mismatch is commonly encountered in the following situations: 1. Emacs is loaded using literate Org config and more recent Org version is loaded inside the file loaded by ‘org-babel-load-file’. ‘org-babel-load-file’ triggers the built-in Org version clashing the newer Org version attempt to be loaded later. It is recommended to move the Org loading code before the ‘org-babel-load-file’ call. 2. New Org version is loaded manually by setting ‘load-path’, but some other package depending on Org is loaded before the ‘load-path’ is configured. This "other package" is triggering built-in Org version, again causing the version mismatch. It is recommended to set ‘load-path’ as early in the config as possible. 3. New Org version is loaded using straight.el package manager and other package depending on Org is loaded before straight triggers loading of the newer Org version. It is recommended to put (straight-use-package 'org) early in the config. Ideally, right after the straight.el bootstrap. Moving ‘use-package’ :straight declaration may not be sufficient if the corresponding ‘use-package’ statement is deferring the loading. 4. A new Org version is synchronized with Emacs git repository and stale .elc files are still left from the previous build. It is recommended to remove .elc files from lisp/org directory and re-compile. ⛔ Warning (emacs): Org version mismatch. This warning usually appears when a built-in Org version is loaded prior to the more recent Org version. Version mismatch is commonly encountered in the following situations: 1. Emacs is loaded using literate Org config and more recent Org version is loaded inside the file loaded by ‘org-babel-load-file’. ‘org-babel-load-file’ triggers the built-in Org version clashing the newer Org version attempt to be loaded later. It is recommended to move the Org loading code before the ‘org-babel-load-file’ call. 2. New Org version is loaded manually by setting ‘load-path’, but some other package depending on Org is loaded before the ‘load-path’ is configured. This "other package" is triggering built-in Org version, again causing the version mismatch. It is recommended to set ‘load-path’ as early in the config as possible. 3. New Org version is loaded using straight.el package manager and other package depending on Org is loaded before straight triggers loading of the newer Org version. It is recommended to put (straight-use-package 'org) early in the config. Ideally, right after the straight.el bootstrap. Moving ‘use-package’ :straight declaration may not be sufficient if the corresponding ‘use-package’ statement is deferring the loading. 4. A new Org version is synchronized with Emacs git repository and stale .elc files are still left from the previous build. It is recommended to remove .elc files from lisp/org directory and re-compile. ⛔ Warning (emacs): Org version mismatch. This warning usually appears when a built-in Org version is loaded prior to the more recent Org version. Version mismatch is commonly
Re: [BUG] orgalist send bug
On Sun, Jun 16, 2024 at 5:42 PM Ihor Radchenko wrote: > > Please follow https://orgmode.org/manual/Feedback.html#Feedback > > 1. make repro 2. package-initialize (to get org-alist) 3. load file shown above 4. M-x orgalist-send-list Backtrace Debugger entered--Lisp error: (void-variable org-element-cache-version) (list 'version org-element-cache-version) (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (org-persist-load (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (current-buffer) 'match-hash :read-related t) (progn (org-persist-load (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (current-buffer) 'match-hash :read-related t)) (if (and org-element-cache-persistent org-element-use-cache) (progn (org-persist-load (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (current-buffer) 'match-hash :read-related t))) (let ((delay-mode-hooks t)) (outline-mode) (setq major-mode 'org-mode) (setq mode-name "Org") (progn (if (get 'outline-mode 'mode-class) (put 'org-mode 'mode-class (get 'outline-mode 'mode-class))) (if (keymap-parent org-mode-map) nil (set-keymap-parent org-mode-map (current-local-map))) (let ((parent (char-table-parent org-mode-syntax-table))) (if (and parent (not (eq parent (standard-syntax-table nil (set-char-table-parent org-mode-syntax-table (syntax-table (if (or (abbrev-table-get org-mode-abbrev-table :parents) (eq org-mode-abbrev-table local-abbrev-table)) nil (abbrev-table-put org-mode-abbrev-table :parents (list local-abbrev-table (use-local-map org-mode-map) (set-syntax-table org-mode-syntax-table) (setq local-abbrev-table org-mode-abbrev-table) (set (make-local-variable 'org-mode-loading) t) (set (make-local-variable 'tab-width) 8) (org-load-modules-maybe) (if org-agenda-file-menu-enabled (progn (org-install-agenda-files-menu))) (set (make-local-variable 'outline-regexp) org-outline-regexp) (set (make-local-variable 'outline-level) 'org-outline-level) (org-element-cache-reset) (if (and org-element-cache-persistent org-element-use-cache) (progn (org-persist-load (list '(elisp org-element--cache) (list 'version org-element-cache-version)) (current-buffer) 'match-hash :read-related t))) (org-set-regexps-and-options) (add-to-invisibility-spec '(org-link)) (org-fold-initialize (or (and (stringp org-ellipsis) (not (equal "" org-ellipsis)) org-ellipsis) "...")) (make-local-variable 'org-link-descriptive) (if (eq org-fold-core-style 'overlays) (progn (add-to-invisibility-spec '(org-hide-block . t (if (and (stringp org-ellipsis) (not (equal "" org-ellipsis))) (progn (if org-display-table nil (setq org-display-table (make-display-table))) (set-display-table-slot org-display-table 4 (vconcat (mapcar #'(lambda ... ...) org-ellipsis))) (setq buffer-display-table org-display-table))) (org-set-font-lock-defaults) (if (and org-tag-faces (not org-tags-special-faces-re)) (progn (org-set-tag-faces 'org-tag-faces org-tag-faces))) (set (make-local-variable 'calc-embedded-open-mode) "# ") (set-syntax-table (make-syntax-table org-mode-syntax-table)) (set (make-local-variable 'font-lock-unfontify-region-function) 'org-unfontify-region) (set (make-local-variable 'org-table-may-need-update) t) (add-hook 'before-change-functions 'org-before-change-function nil 'local) (add-hook 'kill-buffer-hook 'org-check-running-clock nil 'local) (org-fold--advice-edit-commands) (org-macro-initialize-templates) (org-update-radio-target-regexp) (set (make-local-variable 'indent-line-function) 'org-indent-line) (set (make-local-variable 'indent-region-function) 'org-indent-region) (org-setup-filling) (org-setup-comments-handling) (set (make-local-variable 'beginning-of-defun-function) 'org-backward-element) (set (make-local-variable 'end-of-defun-function) #'(lambda nil (if (not (org-at-heading-p)) (org-forward-element) (org-forward-element) (forward-char -1 (set (make-local-variable 'next-error-function) 'org-occur-next-match) (set (make-local-variable 'add-log-current-defun-function) #'org-add-log-current-headline) (if org-enforce-todo-dependencies (add-hook 'org-blocker-hook 'org-block-todo-from-children-or-siblings-or-parent) (remove-hook 'org-blocker-hook 'org-block-todo-from-children-or-siblings-or-parent)) (if org-enforce-todo-checkbox-dependencies (add-hook 'org-blocker-hook 'org-block-todo-from-checkboxes) (remove-hook 'org-blocker-hook 'org-block-todo-from-checkboxes)) (set (make-local-variable 'align-mode-rules-list) '((org-in-buffer-settings (regexp . "^[ \11]*#\\+[A-Z_]+:\\(\\s-*\\)\\S-+") (modes quote (org-mode) (set (make-local-variable 'pcomplete-command-completion-function) #'org-pcomplete-initial) (set (make-local-variable 'pcomplete-command-name-function) #'org-command-at-point) (set (make-local-variable 'pcomplete-default-completion-function) #'ignore) (set (make-local-variable 'pcomplete-parse-arguments-function) #'org-parse-arguments) (set
Re: [BUG] orgalist send bug
Some immediate data org-version: 9.8pre emacs-version: 29.1 orgalist version 1.14 On Sun, Jun 16, 2024 at 8:01 AM Rustom Mody wrote: > > > On Sat, Jun 15, 2024 at 6:55 PM Ihor Radchenko > wrote: > >> CCing Nicolas. >> >> Rustom Mody writes: >> >> > This is regarding the separate package orgalist by Nicolas Goaziou. >> > https://elpa.gnu.org/packages/orgalist.html >> > >> > I installed orgalist with package install. >> > Open the file orgalist.txt which contains the example from orgalist >> shown below >> > M-x orgalist-mode >> > M-x orgalist-send-list >> > >> > I get a warning >> > Warning (org-element): ‘org-element-at-point’ cannot be used in >> > non-Org buffer # (text-mode) >> >> I cannot reproduce using the latest Org mode. >> >> > Maybe relevant to "cant reproduce" > > I tried to run it with make vanilla -- got the error of mismatching org > versions > Tried to remove the elc files as suggested in that error message -- the > error became more involved. > > DIdn't think it very relevant to the bug bugging me ... but... > Can supply more details if required >
Re: [BUG] orgalist send bug
On Sat, Jun 15, 2024 at 6:55 PM Ihor Radchenko wrote: > CCing Nicolas. > > Rustom Mody writes: > > > This is regarding the separate package orgalist by Nicolas Goaziou. > > https://elpa.gnu.org/packages/orgalist.html > > > > I installed orgalist with package install. > > Open the file orgalist.txt which contains the example from orgalist > shown below > > M-x orgalist-mode > > M-x orgalist-send-list > > > > I get a warning > > Warning (org-element): ‘org-element-at-point’ cannot be used in > > non-Org buffer # (text-mode) > > I cannot reproduce using the latest Org mode. > > Maybe relevant to "cant reproduce" I tried to run it with make vanilla -- got the error of mismatching org versions Tried to remove the elc files as suggested in that error message -- the error became more involved. DIdn't think it very relevant to the bug bugging me ... but... Can supply more details if required
[BUG] orgalist send bug
This is regarding the separate package orgalist by Nicolas Goaziou. https://elpa.gnu.org/packages/orgalist.html I installed orgalist with package install. Open the file orgalist.txt which contains the example from orgalist shown below M-x orgalist-mode M-x orgalist-send-list I get a warning Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer # (text-mode) Also: The receiving site gets the latex version but the list disappears from the sending site --orgalist.txt -- % BEGIN RECEIVE ORGLST to-buy % END RECEIVE ORGLST to-buy \begin{comment} #+ORGLST: SEND to-buy org-list-to-latex - a new house - a new computer + a new keyboard + a new mouse - a new life \end{comment}
[BUG] orgtbl hangs emacs [9.8-pre (release_9.7.2-13-gc426f4 @ ..../org-mode/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. 1. Make a python file as below 2. Start orgtbl 3. Try C-c C-c inside the table Emacs hangs -- that is I get a turning wheel until I give a C-g Note: The #+ORGTBL line NEEDS TO BE THE VERY FIRST LINE! NickD on the emacs-SE guesses it is a hanging in the function org-tbl-gather-send-defs in org-tbl.el because of (forward-line -1) in the function which has no effect when on line 1 See my question: https://emacs.stackexchange.com/q/81455/5223 His chat https://chat.stackexchange.com/transcript/message/65777321#65777321 Note I ran this with: make vanilla from the git-repo of org So I am not enclosing the variables python file #+ORGTBL: SEND marks orgtbl-to-generic :lfmt " \"%s\": [%s,%s]" :llfmt " \"%s\": [%s,%s]" | abe | 1 | 2 | | beth | 9 | 1 | """ stud_db = { # BEGIN RECEIVE ORGTBL marks "abe": [1,2] "beth": [9,1] # END RECEIVE ORGTBL marks } -end file - Emacs : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-09-02, modified by Debian Package: Org mode version 9.8-pre (release_9.7.2-13-gc426f4 @ /home/rusi/pdsw/org-mode/lisp/)
Using a custom environment for a src language
I have my own Python environment called PYT. #+BEGIN_PYT contents #+END_PYT generates \begin{PYT} org transcoded contents \end{PYT} But I dont want org transcoded contents but verbatim contents. Is there some way to tell org? 1. Translate the headlines as its doing 2. Leave the contents alone I did try #+BEGIN_SRC Python :environment PYT
Re: Using a latex auxdir
> What do you see in *Org PDF LaTeX Output* buffer? > > After changing some latex settings this has gone, I am not sure how Anyhow tnx Ihor! But I'd still like to ask: What is the correct way of having *even the tex file* in the auxdir?
Re: Using a latex auxdir
On Tue, May 14, 2024 at 8:54 AM Rustom Mody wrote: > But this confuses org and I dont get C-c C-e l p generating from the old > org file. > I thought the mv which moves the generated tex file into the auxdir is > confusing org. > But removing it does not help. > > Sorry I mistyped. I meant But this confuses org and I get C-c C-e l p generating from the old org file. ( ie I dont see the latest changes to the org file reflected in the pdf after generation)
Using a latex auxdir
HI folks! Long time!! I wanted to keep all my latex generated files inside auxdir. So I changed org-latex-pdf-process thus: (setq org-latex-pdf-process '("latexmk -f -pdf -%latex -interaction=nonstopmode -auxdir=%oauxdir %f" "mv %F %oauxdir" )) But this confuses org and I dont get C-c C-e l p generating from the old org file. I thought the mv which moves the generated tex file into the auxdir is confusing org. But removing it does not help. Any suggestions?
tag based translation
Hi folks Long time!!! Hope you folks are doing well in these bizarre times Can someone help me to write a filter (or some such) so that headings like -- *** Recursion before Iteration :L: Lorem ipsum etc get transformed to -- *** Dummy :ignore: #+begin_law Recursion before Iteration #+end_law Lorem Ipsum etc -- 1. Assume suitable environment defs in latex using newtheorem for 2. Assume: :L: -> begin_law :F: -> begin_fact :A: -> begin_action IOW I want to preserve the document structure of the headline but want the headline to use equation style typesetting on the latex side. Thanks Rusi PS I used to have a subscription but cant seem to find how to activate it So pls keep me cced
[O] org-tempo and org-structure-template-alist changes
Recent changes to org (not sure when), seem to have changed the type of org-structure-template-alist This broke org-reveal : https://github.com/yjwen/org-reveal I suggested (without too much knowledge) the attached patch to the reveal folks (Issue: https://github.com/yjwen/org-reveal/issues/315#issuecomment-355868192 ) Now someone has asked that that patch be made into a pull-request It would be good if someone here can look at the patch in the light of these recent changes and see if the patch looks ok --- ox-reveal.el2017-12-24 16:59:00.993293157 +0530 +++ ox-reveal-new.el2017-12-24 17:54:22.293899742 +0530 @@ -359,7 +359,7 @@ :group 'org-export-reveal :type 'string) -(defcustom org-reveal-note-key-char "n" +(defcustom org-reveal-note-key-char ?n "If not nil, org-reveal-note-key-char's value is registered as the key character to Org-mode's structure completion for Reveal.js notes. When `<' followed by the key character are @@ -1228,7 +1228,7 @@ ;; Register auto-completion for speaker notes. (when org-reveal-note-key-char (add-to-list 'org-structure-template-alist - (list org-reveal-note-key-char "#+BEGIN_NOTES\n\?\n#+END_NOTES"))) + (cons org-reveal-note-key-char "notes"))) (provide 'ox-reveal)
Re: [O] New git url
On Fri, Jan 5, 2018 at 1:33 PM, Rustom Mody <rustompm...@gmail.com> wrote: > Ive changed .git/config thusly: > > > $ diff config .git/config > 7c7 > < url = git://orgmode.org/org-mode.git > --- > > url = https://code.orgmode.org/bzg/org-mode.git > > Dunno why thats garbling It is < url = gitCOLONSLASHSLASHorgmode.org/org-mode.git --- > url = httpsCOLONSLASHSLASHcode.orgmode.org/bzg/org-mode.git <https://code.orgmode.org/bzg/org-mode.git> Replace the COLONSLASHSLASH by the 3 chars '://'
[O] New git url
Ive changed .git/config thusly: $ diff config .git/config 7c7 < url = git://orgmode.org/org-mode.git --- > url = https://code.orgmode.org/bzg/org-mode.git As best as I can see its working! Questions 1. Is this right? 2. This change should probably go up on the main web-page somewhere since the mailing list hides mail-addresses. So we can make out that something needs change but not exactly what!
[O] org-install?
There are a number of documentation pages, eg http://orgmode.org/worg/org-tutorials/org4beginners.html http://orgmode.org/worg/org-faq.html that recommend to use (require 'org-install) However org-install itself says: ;; The file org-install is obsolete. ;; ;; It is provided here so that (require 'org-install) does not ;; trigger an error for users with obsolete Emacs configuration. ;; You can safely remove (require 'org-install) from your config." And contains nothing else!! So what exactly is the case? What is the setup procedure recommended for git-installed org?
Re: [O] Turn off html entities in md export
On Fri, Jun 26, 2015 at 1:24 PM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Hello, Rustom Mody rustompm...@gmail.com writes: Bitbucket does not allow html entities in markdown See https://bitbucket.org/rustom/vit-projects/wiki/emacs and search for # So how to turn off html entities in md export? It depends on where these entities are coming from. Simple basic thing ... becomes … -- becomes – etc Anyway, vanilla Markdown supports HTML so anything ox-md cannot translate into Markdown syntax (e.g., tables) is exported as pure HTML. For systems (bitbucket is just a common example) that simply does not work because of security or whatever reasons See https://bitbucket.org/site/master/issue/6930/support-some-or-all-html-in-markdown-bb for BB users clamoring but BB not likely to listen And if thats not available any tips on how to hook say a sed-filter to ox-md export? See filters in (info (org)Advanced configuration). Thanks Will try to check that out
Re: [O] Turn off html entities in md export
On Fri, Jun 26, 2015 at 1:24 PM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Hello, Rustom Mody rustompm...@gmail.com writes: Bitbucket does not allow html entities in markdown See https://bitbucket.org/rustom/vit-projects/wiki/emacs and search for # So how to turn off html entities in md export? It depends on where these entities are coming from. Anyway, vanilla Markdown supports HTML so anything ox-md cannot translate into Markdown syntax (e.g., tables) is exported as pure HTML. As https://bitbucket.org/tutorials/markdowndemo/overview#markdown-header-tab shows bitbucket md tables are very similar to org tables (and html table is disallowed) How to say (to ox-md) Leave tables as they are ?
Re: [O] Turn off html entities in md export
On Fri, Jun 26, 2015 at 2:13 PM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Rustom Mody rustompm...@gmail.com writes: Simple basic thing ... becomes … -- becomes – etc In this particular case, see `org-export-with-special-strings'. Thanks Nicolas Thats a help
[O] Turn off html entities in md export
Bitbucket does not allow html entities in markdown See https://bitbucket.org/rustom/vit-projects/wiki/emacs and search for # So how to turn off html entities in md export? And if thats not available any tips on how to hook say a sed-filter to ox-md export?
[O] bitbucket wikis in org
Hi Bitbucket does not (yet) support org syntax for docs/README¹... in particular wiki. Of course one can write the wiki in org and export to markdown. However I suspect that this will knock out bitbucket's own git backend system when for example all ids change in the md generated from org. Does anyone have a workflow and directory organization for this? Rusi ¹ org lovers may kindly increase the pester-factor out here https://bitbucket.org/site/master/issue/6569/support-org-mode-for-readme-files-bb-7757
[O] Escaping again!
I have some pseudo-haskell in slides I am preparing with org and ox-reveal - \(+\):: Int → Int → Int - \(-\):: Int → Int →Int - \(\leq\):: Int → Int → Bool - \(=\):: Int → Int → Bool Those '::' are haskell for has type However putting a space before the '::' makes it into a definition list! Ive also tried making the \( \) enclose the whole line -- no use! So how to escape the :: and tell org: Please dont make this a definition list?
Re: [O] Escaping again!
Hi Bastien On Fri, May 30, 2014 at 7:30 PM, Bastien b...@gnu.org wrote: Hi Rustom, Rustom Mody rustompm...@gmail.com writes: - \(+\):: Int → Int → Int - \(-\):: Int → Int →Int - \(\leq\):: Int → Int → Bool - \(=\):: Int → Int → Bool 1. \(+\) :: Int → Int → Int 2. \(-\) :: Int → Int →Int 3. \(\leq\) :: Int → Int → Bool 4. \(=\) :: Int → Int → Bool would do -- but this is not entirely satisfactory. For now description lists accept both - and +. I'm all for allowing only - so that we could use + \(+\) :: Int → Int → Int + \(-\) :: Int → Int →Int + \(\leq\) :: Int → Int → Bool + \(=\) :: Int → Int → Bool in your example. What do you and others think? If you are asking me about a proposed change, I thank you for the consideration :-) Please dont take the following too seriously -- I am just spoilt by the fact that I am an old programmer. Here is a command I ran on the org sources and its output: $ grep -r '' . ./contrib/lisp/ox-groff.el: \\(\\)?[ \t]*\n .br\n output))) ./lisp/ox-latex.el:\\(\\)?[ \t]*\n \n output))) ./lisp/ox-latex.el: \\(\\)?[ \t]*\n \n contents))) ./lisp/ox-odt.el:\\(\\)?[ \t]*\n text:line-break/ output t))) ./lisp/ox-man.el: (setq output (replace-regexp-in-string \\(\\)?[ \t]*\n .br\n ./lisp/ox-html.el: \\(\\)?[ \t]*\n ./lisp/ox-html.el: \\(\\)?[ \t]*\n ./lisp/ox-texinfo.el:\\(\\)?[ \t]*\n @*\n output))) ./lisp/ox-texinfo.el: \\(\\)?[ \t]*\n \n contents))) ./lisp/org.el:(looking-at \\($\\|[^]\\ So sometimes we need that much ESCAPE-ing. I realise that the general support for escaping in org is much harder than in a programming language like lisp because there are so many different contexts and different entities to escape. However I would also like to humbly submit that if one doesn't have systematic general escaping, there will always be legitimate uses that will not be addressable. Anyways… if you are doing this just for me (!) very kind of you! For now I am getting along using '꞉' (Unicode 0xA789). Regards, Rusi -- http://blog.languager.org
Re: [O] Escaping again!
David Loyall wrote: [...] if one doesn't have systematic general escaping, there will always be legitimate uses that will not be addressable. +1 As a lowly user, I have often wished for a hypothetical function called org-escapify-region. (And of course the reverse function.) Just another instance that I had to deal with today. When using reveal and ox-reveal one needs to set #+REVEAL_ROOT: path/to/reveal.js I wanted to 'comment out' that line. After trying ':' and single-quote neither of which worked, I finally got it by making it into: #+REVEAL_ROOT_XX: ...
[O] Playwriitng with org?
Earlier I used to use troff and wrote play/drama-like pieces using that eg http://www.the-magus.in/Publications/ewd.pdf Later we switched to latex and using play.sty. Here is an example: http://www.the-magus.in/Publications/DotingOnTheDot.pdf I would now like to stay in org as much as possible and use latex as the backend — using maybe play.sty but there seem to be alternatives like dramatist.sty. Is this possible/easy/worthwhile? Thanks Rusi
Re: [O] exporting α/β to latex/pdf
Suvayu said: The easiest solution is to use a modern TeX engine like XeTeX or LuaTeX along with a font with the required glyphs. I personally use XeTeX with Linux libertine fonts. You can find my setup here: https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L176 Hi Suvayu I am interested in switching over to xetex. I find however that things dont work very easily and googleing around I find that some fixes are needed. eg http://ledgersmb.org/faq/xelatex Do you also need to do these? Or is there something more generic/uptodate? Thanks Rusi
Re: [O] Request for worg page -- escaping questions
On Fri, Apr 18, 2014 at 5:30 PM, Bastien b...@gnu.org wrote: Rustom Mody rustompm...@gmail.com writes: Trouble is you guys are the hares that make us (me at least) into tortoises -- you add significant functionality faster than I can keep with the 'what' (leave aside how and details). Well, remember that Worg is here to *stay* -- so let's start with basic stuff, not bleeding-edge features. There is a lot of basic stuff we still need to document... and we also need to clean-up stuff... but agreed that's pretty boring :/ Still I'll try my hand. What I would like is a graphic -- an automata-diagram made perhaps by dot. Can that easily/conveniently go up onto worg? Of course! Thanks in advance, Thanks to Alan's dot, Ive come up with something (attached). Leave aside complete, its not even really work-in-progress :-) Just a sense of the direction I was asking for. Would such a doc be appropriate for worg? Regards, Rusi orgdfa.org Description: Binary data
[O] source block coloring inconsistency
Ive struggling with source code blocks for a few days. After not managing inline source in some cases I tried to switch to display blocks. Here again after trying for a couple of days I thought I was on an org bug. Finally I find its not a bug. However the hinting given by the coloring of code-blocks could perhaps be improved??? Heres the example file (heavily cut down) --- #+TITLE: Unicode in Python #+OPTIONS: toc:nil * Introduction Python has been making long strides in embracing unicode. However it is arguably only half-way yet -- python programs can /support/ unicode well however python program- /source/ is still completely ASCII. Well… Actually with python 3 (not 2) this is already possible #+BEGIN_SRC python α, β, γ = 1,2,3 (α, β, γ) (1, 2, 3) #+END_SRC * Legend ** Math Space Advantage -- MSA Below I will point such cases out with a 'MSA'. In some cases its technically required to have spaces, in others its just more aesthetic to have them. #+BEGIN_SRC python x in lst #+END_SRC python cannot be written as #+BEGIN_SRC python xinlst #+END_SRC python --- Some blocks export (to html) correct; some dont. Finally traced it to the end line: #+END_SRC python which should be #+END_SRC However emacs shows the end line in red as though it recognized it. Could the fontlock highlighter and the exporter be consistent with respect to syntax? IOW for a block ending as follows: #+BEGIN_SRC python If it is wrong it should not be colored as a block If it is right then export should work on it as a block Thanks Rusi org version: 8.2.5e emacs version 24.3.1
[O] Bug? (was Request for worg page -- escaping questions)
On Thu, Apr 17, 2014 at 9:42 PM, Bastien b...@gnu.org wrote: Hi Rustom, 3. How to enter a '|' into tables IIRC this is a FAQ: http://orgmode.org/worg/org-faq.html Trying to dig a bit into this -- some table issues -- I seem to have stumbled onto a bigger issue: org seems to be crashing emacs. Ive checked it about 4 times. I cant exactly give the exact offending file because once it goes into 100% cpu mode theres nothing I can do but to kill emacs from a shell. 1 Started org with: make vanilla in org directory 2 version is 8.2.5e 3. Now I edit something.org (to get into org mode): 4 Now type as follows * Intro |a|b|c^ 5. (point is at ^)Hit C-c C-c emacs hangs (ie gets unresponsive, cpu 100% needs to be killed from outside)
Re: [O] Bug? (was Request for worg page -- escaping questions)
On Thu, Apr 17, 2014 at 11:31 PM, Bastien b...@gnu.org wrote: Rustom Mody rustompm...@gmail.com writes: Ive checked it about 4 times. I cant exactly give the exact offending file because once it goes into 100% cpu mode theres nothing I can do but to kill emacs from a shell. Probably an Emacs issue, M-x report-emacs-bug and provide the recipe. Sure I can do that. It looks like some runaway regexp falling off the end of file to me: It does not happen with builtin org (7.9) Happens with what I pulled yesterday 8.2.5e Happens equally with emacs23 and 24 Does not happen if the table is followed by anything So if you still think it classifies as an emacs bug I can file it Please let me know Rusi -- http://www.the-magus.in http://blog.languager.org
Re: [O] Bug? (was Request for worg page -- escaping questions)
On Fri, Apr 18, 2014 at 1:09 AM, Nicolas Goaziou n.goaz...@gmail.comwrote: Hello, Rustom Mody rustompm...@gmail.com writes: Trying to dig a bit into this -- some table issues -- I seem to have stumbled onto a bigger issue: org seems to be crashing emacs. Ive checked it about 4 times. I cant exactly give the exact offending file because once it goes into 100% cpu mode theres nothing I can do but to kill emacs from a shell. 1 Started org with: make vanilla in org directory 2 version is 8.2.5e 3. Now I edit something.org (to get into org mode): 4 Now type as follows * Intro |a|b|c^ 5. (point is at ^)Hit C-c C-c emacs hangs (ie gets unresponsive, cpu 100% needs to be killed from outside) It was an infloop in `org-element-context', which should be fixed. Thank you for reporting this. Regards, -- Nicolas Goaziou Thanks Nicolas -- works now! I came upon this trying to poke into another issue: Table containing code containing a '|' It was earlier giving some elisp errors -- dont remember on export or on C-c C-c. Now that is not happening which is good! However there is still a minor issue: font-locking shows something like ~x | y~ inside a table as code but the other table commands like C-c C-c and export to html treats the '|' as a table marker. I of course checked Bastien's pointer to the FAQ for '|' inside table. As of now neither vert nor \vert{} work.
Re: [O] Request for worg page -- escaping questions
On Thu, Apr 17, 2014 at 9:42 PM, Bastien b...@gnu.org wrote: Hi Rustom, Rustom Mody rustompm...@gmail.com writes: Just expressing a similar need of org-moders! Hopefully you get enough to start a tutorial on Worg :) Heh! Ok thats the least I can do. Trouble is you guys are the hares that make us (me at least) into tortoises -- you add significant functionality faster than I can keep with the 'what' (leave aside how and details). Still I'll try my hand. What I would like is a graphic -- an automata-diagram made perhaps by dot. Can that easily/conveniently go up onto worg? -- http://www.the-magus.in http://blog.languager.org
Re: [O] How to change org-export-html-style
Ok Thanks Nick I had to change org-export-html-style to org-html-head and now its working How the 7.xx variable was working is still somewhat a mystery though.
[O] Strings inside code blocks
I want to put a string-literal inside an inline code-block Neither ~Hello World~ nor =Hello World= seem to work If it cant be done then I need an html specific solution; I'd prefer a generic one though. Thanks Rusi
Re: [O] Strings inside code blocks
Thorsten Jolitz wrote: This ,-- | * 1st Level | src_emacs-lisp{Hello World} `-- renders this... does not seem to work for me. Some requirements I need python code inline inside tables.
[O] How to change org-export-html-style
My html styles are in a file my-org.css in ~/orghacks I need (for various reasons) to inline these styles I have this code in my init to change the html style - (defun rusi/load-css() Returns string from css file (hardwired) suitable for inline css (interactive) (setq org-export-html-style (with-temp-buffer (insert \nstyle type=\text/css\\n) (insert-file-contents (expand-file-name my-org.css ~/orghacks)) (goto-char (point-max)) (insert \n/style\n) (buffer-string (rusi/load-css) Now if I edit and save the my-org.css file and then call M-: (rusi/load-css) it does not work. Restarting emacs makes it work. Ive checked that org-export-html-style is actually changed. However org-mode seems to be keeping some internal copy after first use. org-reload is not helping here
Re: [O] How to change org-export-html-style
On Tue, Apr 15, 2014 at 5:00 PM, Rustom Mody rustompm...@gmail.com wrote: My html styles are in a file my-org.css in ~/orghacks I need (for various reasons) to inline these styles I should have mentioned the org version: 8.2.5e Emacs version: 24.3.1
Re: [O] How to change org-export-html-style
On Tue, Apr 15, 2014 at 10:39 PM, Rick Frankel r...@rickster.com wrote: On 2014-04-15 07:30, Rustom Mody wrote: I need (for various reasons) to inline these styles I have this code in my init to change the html style - (defun rusi/load-css() Returns string from css file (hardwired) suitable for inline css (interactive) (setq org-export-html-style (with-temp-buffer (insert nstyle type=text/cssn) (insert-file-contents (expand-file-name my-org.css ~/orghacks)) (goto-char (point-max)) (insert n/stylen) (buffer-string (rusi/load-css) Now if I edit and save the my-org.css file and then call M-: (rusi/load-css) it does not work. Restarting emacs makes it work. Ive checked that org-export-html-style is actually changed. However org-mode seems to be keeping some internal copy after first use. org-reload is not helping here Can you explain not working? There's not enough info here to see what problem you are having. rick Lets say my-org.css has this one line: code { color: green; } ie put inline code blocks in green when exporting to html I change it to code { color: blue; } 1 save the file 2. Run rusi/load-css 3. Check that org-export-html-file's value has changed from green to blue However exports from org to html continue to export code-blocks as green Restart emacs and export (some org file that has code blocks) Now they are blue
Re: [O] how to enter ==
On Wed, Apr 2, 2014 at 3:11 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote: On Tuesday, 1 Apr 2014 at 02:52, Rustom Mody wrote: If I enter code inline that has an == that is taken as an escape for code So how to enter '==' literally How about ~==~? In that case the full ~==~ appears on export :-(
Re: [O] how to enter ==
On Wed, Apr 2, 2014 at 6:39 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote: On Wednesday, 2 Apr 2014 at 12:08, Rustom Mody wrote: On Wed, Apr 2, 2014 at 3:11 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote: On Tuesday, 1 Apr 2014 at 02:52, Rustom Mody wrote: If I enter code inline that has an == that is taken as an escape for code So how to enter '==' literally How about ~==~? In that case the full ~==~ appears on export :-( ummm, it doesn't for me but I guess you have the == within a larger code segment? Maybe post an example? What version of org are you using? Heres a file -- #+TITLE: Python for Unicode #+OPTIONS: toc:nil * Collections However there is a catch: =⦃1,2,3⦄ ~==~ ⦃1,2,3,1,2⦄= \\ Remember that in python =set([1,2,3,1,2]) ~==~ set([1,2,3])= \\ -- And now do C-c C-e h o Do not the tilde's remain? org-version: 8.2.5e emacs started with -Q (except for putting this in the path) -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.5h-660-gef207f -- http://www.the-magus.in http://blog.languager.org
[O] Request for worg page -- escaping questions
Over time in using org Ive come up with some issues. Some have been solved. Some I was shown workarounds. Some remain unsolved. Many of these issues can be clubbed together under what computer folk call 'escaping'. Can we have a worg page for such as the following? 1. How to put a '=' into code 2. How to start a line with a '*' -- (a) for headers (b) for ordinary lines? 3. How to enter a '|' into tables 4. Newlines -- \\ behaves inconsistently in latex and html [Same as above because its about escaping newlines] 5. How to make normal (ie not radio) text like this some-text 6. How to make normal text that looks like [fn::somestuff] Note all these may not have solutions, eg a C programmer cannot get a '*/' into a comment however he may try. However he can get a '\' into a string or a quote mark itself with '\\' and '\'. For getting a '%' into a printf format however, '\%' is not the way but '%%' Such things are documented (and taught to) C programmers. Just expressing a similar need of org-moders! Regards, Rusi
[O] how to enter ==
If I enter code inline that has an == that is taken as an escape for code So how to enter '==' literally
Re: [O] how to enter ==
On Tue, Apr 1, 2014 at 7:34 AM, briangpowell . briangpowel...@gmail.com wrote: * One thing that may work: = ^H= ** In emacs that would be: = Cqh= ** In vi that would be = Cvh= *** i.e. you enter a Cntrl-h--the literal control character ^H--which is literally: BackSpace --this may not work in this case; but, it works in a lot of strange cases. This doesn't work * Could also make a variable: export EQUALS==; etc. I dont understand -- are you recommending an org-macro?
Re: [O] how to enter ==
On Tue, Apr 1, 2014 at 8:01 AM, Rustom Mody rustompm...@gmail.com wrote: On Tue, Apr 1, 2014 at 7:34 AM, briangpowell . briangpowel...@gmail.com wrote: * One thing that may work: = ^H= ** In emacs that would be: = Cqh= ** In vi that would be = Cvh= *** i.e. you enter a Cntrl-h--the literal control character ^H--which is literally: BackSpace --this may not work in this case; but, it works in a lot of strange cases. This doesn't work * Could also make a variable: export EQUALS==; etc. I dont understand -- are you recommending an org-macro? For the time being I am getting along with == in place of == ie two side-by-side FULL WIDTH EQUALS SIGN Not very nice looking though...
Re: [O] org-html5presentation
On Tue, Mar 25, 2014 at 1:55 PM, Bastien b...@gnu.org wrote: Rustom Mody rustompm...@gmail.com writes: Bastien: Ive written to Takumi Kinjo Thanks! -- Bastien Well I should mention that the link mentions Carsten as the author and Takumi (good deal lower) for 'modifications'. I let common sense (I have a modest supply) prevail over technicality so did not mention it earlier Takumi wrote back saying he will try to look into it over the weekend I wrote back suggesting that he may ask here for help on using the new export infra-structure. But I wonder whether it is necessary or whether org-reveal is good enough?? Rusi -- http://www.the-magus.in http://blog.languager.org
Re: [O] org-html5presentation
Marcin wrote: Just my 2 cents: I've just tried org-reveal and it works like a charm. Thanks Marcin this looks promising Rick wrote: There are also s5 (ox-s5) and deck.js (ox-deck) exporters in contrib ;). s5 is what I started with. But it looks a bit bit-rotten [we are in 2014 and its generating xhtml] deck I have to check out. Since Marcin has provided direct experience with reveal, I'll start with that for the moment Thanks both Bastien: Ive written to Takumi Kinjo Rusi
[O] org-html5presentation
At this http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html it is said that org-html5presentation works However the code linked claims to need org 7.5 Does it work? Any easy way of making it work? Rusi
Re: [O] org-html5presentation
On Sun, Mar 23, 2014 at 8:33 PM, Bastien b...@gnu.org wrote: Hi Rustom, Rustom Mody rustompm...@gmail.com writes: However the code linked claims to need org 7.5 Does it work? Did you try? Any easy way of making it work? See previous question :) I did this much: (require 'org-html5presentation) M-x org-export-as-html5presentation I get (from *Messages*) org-export-html5presentation-convert-special-strings: Symbol's value as variable is void: org-export-html-special-string-regexps I can poke around more However given the 7.5 requirement I thought I'd ask first Rusi -- http://www.the-magus.in http://blog.languager.org
Re: [O] org-html5presentation
On Sun, Mar 23, 2014 at 8:40 PM, Rustom Mody rustompm...@gmail.com wrote: On Sun, Mar 23, 2014 at 8:33 PM, Bastien b...@gnu.org wrote: Hi Rustom, Rustom Mody rustompm...@gmail.com writes: However the code linked claims to need org 7.5 Does it work? Did you try? Any easy way of making it work? See previous question :) I did this much: (require 'org-html5presentation) M-x org-export-as-html5presentation I get (from *Messages*) org-export-html5presentation-convert-special-strings: Symbol's value as variable is void: org-export-html-special-string-regexps I can poke around more However given the 7.5 requirement I thought I'd ask first Just checked with org 7.something (dunno for sure since org-version does not work -- I had kept around an old directory in case of upgrade hiccups) and the above works (with emacs -Q) That is it exports though there is a small problem with the display -- margins are cut off
[O] Bug: Wrong type argument: Integer or marker-p, nil
For the below file, if I place the cursor in the right column and give C-c C-c I get the above error org 8.2.5e emacs 24.3.1 --- * What about $\Leftrightarrow$ ? As we know the truth-table for 'iff' also written as $\Leftrightarrow$ is as follows #+ATTR_LATEX: :align |c|c|c| | $P$ | $Q$ | $P \Rightarrow Q$ |$Q \Rightarrow P$ | -
Re: [O] Stop clock on closing emacs
Igor wrote Hi, is there any hook to stop automatically a running clock when closing emacs? I can't find anything neither in the manual nor in internet... In (info (org)Clocking Work Time) is given this: (setq org-clock-persist 'history) (org-clock-persistence-insinuate) They dont work??
[O] vertical space
Im having an issue with inconsistent vertical space If I do latex export \\es at eol produce blank lines However with html export they appear in output but not consistently org version 8.2.5e emacs version 24.3.1 Below a cut-down version from a file I see it happening #+TITLE: Equational Reasoning in Logic #+AUTHOR: Rusi #+OPTIONS: toc:nil * Object and Meta language Look at the following proof #+ATTR_LATEX: :mode math :environment flalign P \wedge (Q \vee P)\\ \wedge distributes over \vee \\ = (P \wedge Q) \vee (P \wedge Q) \\ Idempotence of \vee \\ = P \wedge Q \\ \\ \\ Observe that: - Each proof step has an expression - Each step also carries an implicit statement, that the given expression is $True$ . So, in the first step, we have an implicit statement: P \wedge (Q \vee P) = True -
Re: [O] vertical space
Nick wrote: Why exactly the last one is parsed as a literal string and not as a line break, I don't know. Nicolas will probably explain all. The only thing I can say is that if there is something other than whitespace on the line before the \\, it gets parsed as a line break; if there is only whitespace (or nothing), it gets parsed as a string. That's probably a rough description and not quite right in all particulars, but I hope it's close enough. So the question remains: How to get generic, consistent vertical space?
[O] making static mathjax work
Ive been trying to make the staticmathjax (in contrib) work It appears I have a number of xulrunners -- output with -v: Mozilla XULRunner 17.0.10 - 20131030234958 Mozilla XULRunner 24.2.0 - 20131215094009 Mozilla XULRunner 1.9b3pre - 2007122108 The last seems to run without doing anything The other two give version mismatch issues Does anyone have a current recipe to make it work? Perhaps not relevant since the static mathjax stuff is independent of emacs However just in case :-) emacs 24.3.1 and 23.4.1 org 8.2.5e On Debian testing Thanks Rusi
[O] using custom ids
After Nicholas recently directed my attention to custom_ids Ive been using them. Now I find this: In a file say foo.org, I have an anchor point and a link point. If I write the anchor as * Head ppe I can write the link as [[ppe][Description]] However if I write the anchor as * Head :PROPERTIES: :CUSTOM_ID: ppe :END: then the above link does not produce an html link at all Instead Ive to write [[file.html#ppe][Description]] Is this expected behavior? Am I missing something? Thanks Rusi
Re: [O] using custom ids
On Tue, Jan 21, 2014 at 10:37 PM, Rustom Mody rustompm...@gmail.com wrote: After Nicholas recently directed my attention to custom_ids Ive been using them. Now I find this: In a file say foo.org, I have an anchor point and a link point. If I write the anchor as * Head ppe I can write the link as [[ppe][Description]] However if I write the anchor as * Head :PROPERTIES: :CUSTOM_ID: ppe :END: then the above link does not produce an html link at all Instead Ive to write [[file.html#ppe][Description]] Ok So I need to write [[#ppe][Description]] Sorry for the noise
[O] minimizing mixed installs
After my recent encounters with mixed installs, I poked around a bit and found this line (around line 80) in org.el (load org-loaddefs.el t t t) It seems to me (with very scant knowledge of course :D) - the noerror (first 't' ) makes this fail silently - to load another org-loaddefs in the path if it exists Ive replaced this with these 3 lines: (setq vv (concat (file-name-directory load-file-name) org-loaddefs.el)) (message (format vv is %s vv)) (load vv nil t t) This ensures that - only a sibling org-loaddefs of org.el will be loaded - if this file -- org-loaddefs -- not found then fail noisily [The setq and the vv are of course a hack to see whats going on] On my setup I could check these 4 cases 1 emacs23 2 emacs24 a with org-loaddefs works b without org-loaddefs gives explicit errors
Re: [O] odt exporter on mixed org setup
Thanks On Sun, Jan 19, 2014 at 12:23 AM, Jambunathan K wrote: The following message is a courtesy copy of an article that has been posted to gmane.emacs.orgmode as well. Rustom Mody rustompm...@gmail.com writes: Currently I have a setq on org-mode-hook I don't run make install, I just do make. Here is what I have in .emacs. DO NOT do an explicit (require 'ox-backend). Instead customize `org-export-backends' and the ODT exporter there. Here is the sequence I have in my .emacs. (add-to-list 'load-path ~/src/org-mode/lisp/) (require 'org-loaddefs) Ok That require did it (I think!) ie on my machine works for emacs 23 and 24 (add-to-list 'load-path ~/src/org-mode/contrib/lisp/) (setq org-odt-data-dir ~/src/org-mode/etc/) (custom-set-variables '(org-export-backends (quote (ascii html icalendar latex odt org))) I dont have a custom; just a setq. Hope thats ok?? (setq org-export-backends '(ascii html odt)) [I would like to avoid custom if I can; wont make a fuss if I cant :-) ] Thanks Rusi
Re: [O] odt exporter on mixed org setup
On Sun, Jan 19, 2014 at 8:57 AM, Rustom Mody rustompm...@gmail.com wrote: Thanks On Sun, Jan 19, 2014 at 12:23 AM, Jambunathan K wrote: The following message is a courtesy copy of an article that has been posted to gmane.emacs.orgmode as well. Rustom Mody rustompm...@gmail.com writes: Currently I have a setq on org-mode-hook I don't run make install, I just do make. Here is what I have in .emacs. DO NOT do an explicit (require 'ox-backend). Instead customize `org-export-backends' and the ODT exporter there. Here is the sequence I have in my .emacs. (add-to-list 'load-path ~/src/org-mode/lisp/) (require 'org-loaddefs) Ok That require did it (I think!) ie on my machine works for emacs 23 and 24 On second thoughts, Ive replaced that require with a load-file with explicit path since - I prefer an explicit error to unexpected weirdness - that file tends to get removed by build processes - there are multiple org-loaddefs.el files and I DONT want the others Now I can verify that - after a make clean starting emacs gives me errors on startup - after a make compile that error goes away
Re: [O] odt exporter on mixed org setup
On Thu, Jan 16, 2014 at 8:22 PM, Jambunathan K wrote: Rustom Mody writes: org-odt-data-dir is coming in bound to /usr/share/emacs/etc/org (which is non-existent) Open a bug against the packager. Dunno what you mean... I am using org fresh-cooked off git! And anyway your setq to org-odt-data-dir has settled the issue as far as I can see. The only question I have (not so much an org question as emacs/elisp) is where to put that setq and whether defvar would be better than setq. Currently I have a setq on org-mode-hook
Re: [O] tooltips
On Wed, Jan 15, 2014 at 10:26 PM, Bastien b...@gnu.org wrote: Christian Moe m...@christianmoe.com writes: Let me know if this doesn't work or isn't clear. It works very well! I made a micro screencast for demoing it: http://bzg.fr/u/org-footnotes-jquery.ogv Thanks for packaging this. -- Bastien Thanks Christian for that. Just one small thing -- Can we remove the number? [I tried to look at the js but could not figure out the details and also the debugging model]
Re: [O] tooltips
On Thu, Jan 16, 2014 at 3:44 AM, Christian Moe wrote: Rustom Mody writes: Thanks Christian for that. Just one small thing -- Can we remove the number? Sure, try this new version of fntooltip.js: Super! Thanks Christian!
[O] odt exporter on mixed org setup
Just helped a friend to install and upgrade to latest org. Method summary: $ git clone $ make update combined with setup of load-paths Ended with: ox-odt cannot find factory style files I remember that I too had this problem http://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00341.html and it had recently disappeared. Checked that it comes back it I use emacs23; goes away if I use emacs24 Checked that the messages when it works in emacs24 are like thus: Debug (ox-odt): Searching for OpenDocument styles files... Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times] Debug (ox-odt): Trying ~/pdsw/etc/styles/... Debug (ox-odt): Trying ~/pdsw/org-mode/lisp/etc/styles/... Debug (ox-odt): Trying /usr/share/emacs/24.3/etc/org/... Debug (ox-odt): Using styles under /usr/share/emacs/24.3/etc/org/ Debug (ox-odt): Searching for OpenDocument schema files... Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times] Debug (ox-odt): No OpenDocument schema files installed So evidently my 'working' odt export is working because its using the builtin emacs odt exporter and not the latest one Looking at org-odt-* stuff I see almost a dozen files and directories and file lists and what not. All attempts so far at doing (setq org-odt-styles-dir ~/pdsw/org-mode/etc/styles) in various places, hooks etc have not changed the fact that it gets the builtin one
Re: [O] tooltips
On Tue, Jan 14, 2014 at 11:16 PM, Christian Moe m...@christianmoe.com wrote: Bastien writes: Instead of changing the current HTML, I'd rather go and find a solution where some javascript can display the tooltip. E.g.: --- $(document).ready(fntooltips); function fntooltips() { $(.footnum).each( function () { $([href='# + this.id + ']) .attr(title, this.parentNode.parentNode.textContent); } ) } - Tested with JQuery 1.9.1 and a recent Org. Yours, Christian May I have the setup? ie where do I put that JS, the invocation/import or whatever of JQuery etc [I really dont know any JS!]
[O] tooltips
I was wondering if org-mode html generation has some automatic way of generating tooltips. Something along the lines that instead of generating a footnote, a footnote should generate a tooltip. The html would be something like this: !DOCTYPE html html body div title=Hi! Now you see me!hover me/div /body
Re: [O] make doc failing
On Mon, Dec 30, 2013 at 3:36 PM, Vladimir Lomov wrote: In short texi2dvi works texi2pdf fails Try to add -q option to TEXI2PDF, I resolved that issue when texinfo 5.0 (actually I don't remember when, though could dig git log of my repo) apperead in my distro (Archlinux). P.S. If you are interesed how I do this, see this file (package build script), https://github.com/vp1981/pkgbuild/blob/master/emacs-org-mode/PKGBUILD especially line with TEXI2PDF. No -q does not help Likewise Achim: The error should go away if you remove the comments. Let me know if that works for you, I'll check in a fix in a few days. The perl warning goes if those those LC_ALL/LANG lines are commented out However the pdf generation still fails However texi2dvi works (maybe with some strange artifacts in the pdf -- not checked details) and then dvipdf. Also removing the --expand seems to make it work without errors
Re: [O] make doc failing
My current conclusion on this is that there seems to be some issues with texi2pdf version 5 The explicit command texi2pdf -V --tidy --batch --expand org.texi generated this first page [Note there is some garbage at top] texi2pdf --batch --expand org.texi ends with /usr/bin/texi2dvi: pdfetex exited with bad status, quitting. pg1.pdf Description: Adobe PDF document
Re: [O] make doc failing
Nick wrote: I tried last night and again tonight after pulling: I get no errors with `make doc'. And I continue to get the errors with no doc (pdf) built. I can attach the build messages (800 lines) For now some snippets of what I see git pull Already up-to-date. ... texi2pdf --batch --clean --expand org.texi perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = C are supported and installed on your system. ... Cannot open load file: ob-sh - Note that locale returns as follows: LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_ALL=en_US.UTF-8
Re: [O] make doc failing
Nick wrote: texi2pdf --batch --clean --expand org.texi perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = C are supported and installed on your system. Where does perl come into the picture? Both texi2pdf and the program it calls, texi2dvi, are shell scripts. The only references to perl I find are in the run_hevea() function of texi2dvi and in the target making the orgcard in the doc Makefile. But that should not cause the PDF manual problems texinfo has been ported to perl: http://savannah.gnu.org/forum/forum.php?forum_id=7507 I find makeinfo and texi2html at least are perl $ makeinfo --version makeinfo (GNU texinfo) 5.2 Is yours the same? Cannot open load file: ob-sh ob-sh does not exist any more. Check your local.mk and delete it if it's there - I had the same problem because I had added it to BTEST_OB_LANGUAGES. Nothing in local.mk but I find a testing/lisp/test-ob-sh.el Is my git remote misdirected by any chance? $ git remote -v show origingit://repo.or.cz/org-mode.git (fetch) origingit://repo.or.cz/org-mode.git (push)
Re: [O] make doc failing
Nick wrote: Rusi wrote: $ makeinfo --version makeinfo (GNU texinfo) 5.2 Is yours the same? No, mine is 4.13 - apparently before the perl switcheroo. And doc/Makefile has: %.pdf:LC_ALL=C# work around a bug in texi2dvi %.pdf:LANG=C# work around a bug in texi2dvi %.pdf:%.texi org-version.inc $(TEXI2PDF) $ Commenting out the LC/LANG lines makes the perl warning go away Generation is still a problem Works from command line texi2dvi Fails with make doc In short texi2dvi works texi2pdf fails
[O] links and anchors
Context is html export I have a file of quotes like the following -- * Declarative vs Imperative Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity \\ General G.S.Patton (1941) - which I link from another file Now if 1. I put the anchor declarative inside the body then the header vanishes on following the link 2. If I write it as * Declarative and Imperative declarative it works well but the header looks ugly at least in org though not on export 3. Looking at the generated html I see the autogenerated sec-9 for that para can be used. But then Ive to keep synced with what is auto-generated. What do people use for this situation? -- http://www.the-magus.in http://blog.languager.org
Re: [O] links and anchors
On Fri, Dec 27, 2013 at 4:59 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Rustom Mody rustompm...@gmail.com writes: Context is html export I have a file of quotes like the following -- * Declarative vs Imperative Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity \\ General G.S.Patton (1941) - which I link from another file Now if 1. I put the anchor declarative inside the body then the header vanishes on following the link 2. If I write it as * Declarative and Imperative declarative it works well but the header looks ugly at least in org though not on export 3. Looking at the generated html I see the autogenerated sec-9 for that para can be used. But then Ive to keep synced with what is auto-generated. What do people use for this situation? Did you try custom-id? See section 4.2 in manual. Regards, -- Nicolas Goaziou Thanks Nicholas -- just the thing! [And about time I started learning about properties :D ]
[O] html5 generation minor bug
When the html-doctype is set to html5 the generator still generates name attributes in links which is not correct html5 http://dev.w3.org/html5/markup/a.html#a-constraints
Re: [O] html5 generation minor bug
On Fri, Dec 27, 2013 at 10:53 PM, Bastien b...@gnu.org wrote: Hi Rustom, Rustom Mody rustompm...@gmail.com writes: When the html-doctype is set to html5 the generator still generates name attributes in links which is not correct html5 http://dev.w3.org/html5/markup/a.html#a-constraints Can you give an example of what it does and what it should do? Heres an org-file: -- #+TITLE: Quotes and References #+OPTIONS: toc:nil * Soul :PROPERTIES: :CUSTOM_ID: soul :END: Nobel prize winner Wislawa Szymborska's poem on [[http://www.poemhunter.com/poem/a-few-words-on-the-soul/][the soul]] is a poet's way of showing how dualistic our habitual thinking is -- This is as far as I can see the offending line produced by html generation -- h2 id=soula id=sec-1 name=sec-1/aspan class=section-number-21/span Soul/h2 -- You can check for yourself Generate the html yourself and use the validator here http://validator.w3.org/check Note 1. there are warnings, not errors Note 2. Ive just cut out one sample from a file of mine. I could cut down further emacs version 24.3.1 org-version 8.2.4 emacs started with -Q org put into path then execute (setq org-html-doctype html5) [On another note choosing xhtml doctype in 2013 seems a strange default given that xhtml is one of those standards that 'never happened' http://news.cnet.com/8301-17939_109-10281477-2.html Of course I need to add the disclaimer that I know too little to distinguish hype from fact in web matters] Regards Rusi -- http://www.the-magus.in http://blog.languager.org
[O] make doc failing
After latest pull make doc is failing to make org.pdf Lots of stuff ending with --- Output written on org.pdf (259 pages, 976592 bytes). Transcript written on org.log. /usr/bin/texi2dvi: pdftex exited with bad status, quitting. make[1]: *** [org.pdf] Error 1 make[1]: Leaving directory `/src/pdsw/org-mode/doc' make: *** [pdf] Error 2 But I cant seem to find org.log And there is no org.pdf in doc
Re: [O] make doc failing
On Sat, Dec 28, 2013 at 9:06 AM, Rustom Mody rustompm...@gmail.com wrote: After latest pull make doc is failing to make org.pdf Lots of stuff ending with --- Output written on org.pdf (259 pages, 976592 bytes). Transcript written on org.log. /usr/bin/texi2dvi: pdftex exited with bad status, quitting. make[1]: *** [org.pdf] Error 1 make[1]: Leaving directory `/src/pdsw/org-mode/doc' make: *** [pdf] Error 2 But I cant seem to find org.log And there is no org.pdf in doc Further: Went into doc directory and did $ texi2dvi org.texi no (visible) error followed by $ dvipdf org.dvi Seems to be working -- http://www.the-magus.in http://blog.languager.org
[O] escaping org commands
How does one escape something in a text that is an org-command eg I wanted to write Something It vanished from the export because its a link-target!
Re: [O] escaping org commands
On Fri, Dec 20, 2013 at 9:37 PM, Bastien b...@gnu.org wrote: Hello, Rustom Mody rustompm...@gmail.com writes: How does one escape something in a text that is an org-command eg I wanted to write Something It vanished from the export because its a link-target! You can customize `org-activate-links' so that radio links are not activated -- not tested, but my assumption is that the exporter should handle this fine. There is also `org-export-filter-radio-target-functions'. HTH, Thanks Bastien that will work in this case However I am also looking for something more generic: When there is something in my document which normally looks like an org command, is there any generic way of saying This particular command-like thing is not a command eg in C a backslash in strings (and in some cases a %) is an escape character Is there no such general (set of) concepts for org? Rusi -- http://www.the-magus.in http://blog.languager.org
Re: [O] Org Tutorials need more structure
Some years ago I had sent a mail on this subject (Feb 6 2009). I fished it out and was editing it (below) and then see that Eric Abrahamsen has said most what I wanted to say. Anyways Ive kept the subject list below and want to add only this much: People come to org for different reasons/needs/inclinations. It is definitely worthwhile clubbing these diverse/contrasting ways into a few (5-10?) foci/approaches My subject list * Publishing ** Web ** Latex ** Doc * Brainstorming * Managing My Data own private hyperlink system * Time/project mgmt *** Agenda *** Time tracking *** GTD *** Journalling * Tables and spreadsheets * Programming (Babel) ** Literate programming ** Reproducible research ** Meta Programming
Re: [O] epresent issue
On Fri, Sep 27, 2013 at 3:13 PM, Eric Schulte schulte.e...@gmail.comwrote: Rustom Mody rustompm...@gmail.com writes: On Fri, Sep 27, 2013 at 7:20 AM, Rustom Mody rustompm...@gmail.com wrote: Hi I am trying to use epresent for presentation. Start epresent with M-x epresent-run I seem to need to press one more q to get out of epresenting and then that q gets into the file. I can't reproduce this problem with a recent version of epresent and Org-mode. For example with the following minimal Emacs invocation (without any configuration, run from the epresent directory). emacs -Q --eval (progn (add-to-list 'load-path \~/src/org-mode/lisp\) (require 'org)) -l epresent.el present.org I tried this (with my-path adjustments); and a just-downloaded epresent from above link; still the same behavior In more detail: 0. Run command emacs -Q --eval (progn (add-to-list 'load-path \~/pdsw/org-mode/lisp\) (require 'org)) -l ~/.emacs.d/downloads/epresent.el lastLect.org and then in emacs: 1. Start with epresent-run The buffer changes form half-way -- ie a. it becomes full-screen, b the menu line vanishes but c. the mode line is present d. the fonts are still small 2. After than whatever key I press (including q) it becomes like a presentation -- ie no mode-line and large fonts 3. One more q and it quits with the q appearing where point was last
[O] Fwd: epresent issue
On Fri, Sep 27, 2013 at 9:58 PM, Rustom Mody rustompm...@gmail.com wrote: On Fri, Sep 27, 2013 at 3:13 PM, Eric Schulte schulte.e...@gmail.comwrote: Rustom Mody rustompm...@gmail.com writes: On Fri, Sep 27, 2013 at 7:20 AM, Rustom Mody rustompm...@gmail.com wrote: Hi I am trying to use epresent for presentation. Start epresent with M-x epresent-run I seem to need to press one more q to get out of epresenting and then that q gets into the file. I can't reproduce this problem with a recent version of epresent and Org-mode. For example with the following minimal Emacs invocation (without any configuration, run from the epresent directory). emacs -Q --eval (progn (add-to-list 'load-path \~/src/org-mode/lisp\) (require 'org)) -l epresent.el present.org I tried this (with my-path adjustments); and a just-downloaded epresent from above link; still the same behavior In more detail: 0. Run command emacs -Q --eval (progn (add-to-list 'load-path \~/pdsw/org-mode/lisp\) (require 'org)) -l ~/.emacs.d/downloads/epresent.el lastLect.org and then in emacs: 1. Start with epresent-run The buffer changes form half-way -- ie a. it becomes full-screen, b the menu line vanishes but c. the mode line is present d. the fonts are still small 2. After than whatever key I press (including q) it becomes like a presentation -- ie no mode-line and large fonts 3. One more q and it quits with the q appearing where point was last Also just checked with this trivial 4-line file in case there was something in my org file. Still the same -- * H1 ** H11 ** H12 * H2 --- I just wonder if its to do with 1. emacs version 23.4.1 2. I am using xfce not the more common gnome/kde etc Thinking of the second because there is a kind of lag in the full-screening of the window -- something which seems related to the window manager?? -- http://www.the-magus.in http://blog.languager.org
[O] epresent issue
Hi I am trying to use epresent for presentation. Start epresent with M-x epresent-run I seem to need to press one more q to get out of epresenting and then that q gets into the file. Thanks Rusi
Re: [O] epresent issue
On Fri, Sep 27, 2013 at 7:20 AM, Rustom Mody rustompm...@gmail.com wrote: Hi I am trying to use epresent for presentation. Start epresent with M-x epresent-run I seem to need to press one more q to get out of epresenting and then that q gets into the file. Thanks Rusi Sorry for the half-complete line: Start epresent with M-x epresent-run Was meaning to write a scenario but then decided that the one line was enough :-) Did not include usual version stuff (I assumed that I am doing something wrong) so here it is Org-mode version 8.2 (release_8.2-34-g33aded Emacs 23.4.1 epresent downloaded yesterday Rusi -- http://www.the-magus.in http://blog.languager.org
Re: [O] Some orgtbl doc issues
Ive posted this on the python list https://mail.python.org/pipermail/python-list/2013-September/655021.html
Re: [O] Some orgtbl doc issues
Well clearly the radio tables section reads better now. Further comments inline. Before that some general comments. The Python list thread starting here http://mail.python.org/pipermail/python-list/2013-July/653164.html As you will see some python programmers (including emacsers!) seem to have a need for something like this and dont seem to know about org. And by extension one may assume other languages than python also. In short this seems to be a general need. So what is written below should be taken less from my own pov -- I am hardly an org power-user but still a user -- than from the pov of a general emacser -- a programmer who uses emacs and knows next to nothing about org On Fri, Aug 30, 2013 at 10:16 PM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Rustom, thanks for this. On 16.8.2013, at 16:30, Rustom Mody rustompm...@gmail.com wrote: Ive recently been poking around in orgtbl mode and encountered some issues. Not sure how much is my own lack of understanding and how much there are some little doc issues. 1 Option names dont match = - Its orgtbl-radio-table-templates in emacs - Its orgtbl-radio-tables in doc Appendix A.6.2 Fixed, thanks. 2 Receiving string == - Seems to be RECEIVE ORGTBL It is BEGIN RECEIVE ORGTBL followed by a table name. As the example in the manual shows. Does this have to be more explicit? - String seems to be hardwired. Which may be ok if its by design. Yes, hardwired by design. Not a problem in itself. It becomes a problem in connection with the dfault value of org-radio-table-templates which contains many instances of BEGIN RECEIVE ORGTBL %n and thereby suggests that that is changeable - Not clear what is the relation of this string and orgtbl-radio-templates The templates insert a BEGIN RECEIVE/END RECEIVE table template with *proper commenting* around it in different programming modes. I improved this in the docs. - I find 1 space is fixed between RECEIVE and ORGTBL. Multiple allowed between ORGTBL and table-name OK, I have removed this restriction. - Its not clear from the doc whether its RECEIVE ORGTBL or /* RECEIVE ORGTBL That depends on the programming mode. The documentation says that the lines must be comments in the current mode, I would think that this is clear enough. Some languages (eg Python) have no multiline comment but have a multiline string which is also ok to use - Subtle interaction between # in org and host mode comment char -- # in python, shell etc -- could do with some elaboration Can you propose something for the documentation? 3 hook system = - What are the hooks for orgtbl? - How do the org hooks relate to the orgtbl hooks? - Note: orgtbl is for those who are not otherwise using orgmode What to you mean? Mode hooks, or hooks for specific functionality of the table? If table commands run hooks, the corresponding orgtbl commands will do so as well, because they simply call the table functions in an environment where the proper keys bindings are not accessible. As I said at start of this mail, we are looking at orgtbl for otherwise non-org users. For that audience I was exploring whether vanilla org would work OTB ie without any of my org-settings also not the latest but one bundled with emacs Since at that point I really could not understand orgtbl-radio-table-templates and thought it had to be set I asked. As it appears now, it works without any customization so the point is moot. Nevertheless the general question is: If a non-org user of orgtbl needs to set up minor-mode specific customization where is it to be done? orgtbl-mode is a standard minor mode and has `orgtbl-mode-hook', similar to all other minor modes. See the documentation of define-minor-mode. Do you feel the manual should say so? It does not document many other hooks in org either, because there are too many. 4 Long header line == I could not figure out how to split a long :#+ORGTBL: SEND... line It cannot be split. There are programming related organizations for which something like 80-char lines is really not negotiable! So I hope this can be considered as a feature request of course a very minor one Regards - Carsten Speaking generally, maybe someone should respond to that python list thread. It can be me however someone more org-knowledgeable may be more appropriate :-) Thanks and regards Rusi -- http://blog.languager.org
[O] Some orgtbl doc issues
Ive recently been poking around in orgtbl mode and encountered some issues. Not sure how much is my own lack of understanding and how much there are some little doc issues. 1 Option names dont match = - Its orgtbl-radio-table-templates in emacs - Its orgtbl-radio-tables in doc Appendix A.6.2 2 Receiving string == - Seems to be RECEIVE ORGTBL - String seems to be hardwired. Which may be ok if its by design. - Not clear what is the relation of this string and orgtbl-radio-templates - I find 1 space is fixed between RECEIVE and ORGTBL. Multiple allowed between ORGTBL and table-name - Its not clear from the doc whether its RECEIVE ORGTBL or /* RECEIVE ORGTBL - Subtle interaction between # in org and host mode comment char -- # in python, shell etc -- could do with some elaboration 3 hook system = - What are the hooks for orgtbl? - How do the org hooks relate to the orgtbl hooks? - Note: orgtbl is for those who are not otherwise using orgmode 4 Long header line == I could not figure out how to split a long :#+ORGTBL: SEND... line Regards Rusi
[O] orgmode tables for programmers (was table export to same buffer)
On Mon, Aug 12, 2013 at 11:50 PM, William Henney when...@gmail.com wrote: The template is not strictly necessary - you can just add the required lines by hand to your C source file. I think that orgtbl-to-generic should be able to do what you want out of the box. Maybe the attached example (orgtbl-test.c) might help you. The idea is that you edit the org table at the top, then C-u C-u C-c C-c will update all the formulae in the table and install the results in your C source code at the bottom. This is not quite what you originally asked for, since you have two copies of the data in the file and you have to remember to only edit the version in the org table. But it is pretty close. Cheers Will Thanks Will. Ive converted your code to python (attached). I find it works in org 8 but not in 6.33 -- the default for emacs on debian. Is it easy to make it work for earlier org also?? Reason: This question was asked on the python list: thread starting http://mail.python.org/pipermail/python-list/2013-July/653164.html And so it would be good to have an example that works mostly out of the box orgtbl.py Description: Binary data
Re: [O] orgmode tables for programmers (was table export to same buffer)
On Wed, Aug 14, 2013 at 12:54 PM, Rustom Mody rustompm...@gmail.com wrote: I find it works in org 8 but not in 6.33 -- the default for emacs on debian. Is it easy to make it work for earlier org also?? Ok Ive managed to hack up something: The attached works in org 6.33 and 8.0.7 Just one small help needed: How to split the very long line #+ORGTBL SEND mytable... into multiple lines?? Regards Rusi orgtbl6.33.py Description: Binary data
Re: [O] Bug: Revert orgtbl-create-or-convert-from-region [6.33x]
I was writing up what I could make out of having program-files with inline tables. The example is done for python. It is exactly what the OP wants but close enough so giving it here. This file shows two approaches for making python data structures from orgtbl with both sender and receiver in same file. The first table is made with single line comments The second table is made using python's triple-quote feature The third is the recipient for both/either of the above To try out orgtbl minor mode needs to be active after python mode is active. Also it does not quite work for org 6.33 --- For the first use M-x orgtbl-toggle-comment followed by C-c C-c (inside the table) to send to recipient, followed by another M-x orgtbl-toggle-comment For the second only C-c C-c in the sender table is sufficient cut here # #+ORGTBL: SEND marks orgtbl-to-generic :sep , # | abe | 1 | 2 | 3 | 4 | 10 | # | beth | 3 | 1 | 5 | 7 | 16 | # | cathy | 5 | 6 | 7 | 5 | 23 | # #+TBLFM: $6=$2+$3+$4+$5 orig_table = #+ORGTBL: SEND marks orgtbl-to-generic :lfmt \%s\: [%s,%s,%s,%s,%s], :llfmt \%s\: [%s,%s,%s,%s,%s] | abe | 1 | 2 | 3 | 4 | 10 | | beth | 9 | 1 | 5 | 9 | 24 | | cathy | 5 | 6 | 7 | 5 | 23 | #+TBLFM: $6=$2+$3+$4+$5 stud_db = { # BEGIN RECEIVE ORGTBL marks abe,1,2,3,4,10 beth,3,1,5,7,16 cathy,5,6,7,5,23 # END RECEIVE ORGTBL marks } --- cut here - -- http://www.the-magus.in http://blog.languager.org
Re: [O] Bug: Revert orgtbl-create-or-convert-from-region [6.33x]
On Tue, Aug 6, 2013 at 10:58 AM, Rustom Mody rustompm...@gmail.com wrote: I was writing up what I could make out of having program-files with inline tables. The example is done for python. It is exactly what the OP wants but close enough That was intended to be NOT exactly what the OP wants...
Re: [O] table export to same buffer
On Sun, Aug 4, 2013 at 5:04 AM, William Henney when...@gmail.com wrote: On Fri, Aug 2, 2013 at 11:52 PM, Rustom Mody rustompm...@gmail.comwrote: Sebastien Vauban wrote On Fri, Aug 2, 2013 at 10:53 PM, Rustom Mody rustompm...@gmail.comwrote: Is it possible to export an orgmode table not to a new file but overwriting the org table in the same buffer? Context is editing source code which contains a largeish table of (say) constants. Editing is done with orgtbl minor mode. When done it should become back the table in the natural format of the programming language [For simplicity lets just say csv will do] Using an Org Babel code block (which you have to write, of course) taking as input your table, and outputting your constants in the wished format should do what you're looking for, right? I dont think so. The context is writing C with C mode (or haskell with haskell-mode python with python-mode etc) ie the user is not using orgmode. That is why I mentioned orgtbl, ie org table editing facilities are needed but the major mode is something else. What about a radio table using orgtbl-to-generic? See Appendix 6 of the Org manual Will This looks like a useful approach The variable names dont seem to match: Appendix 6.2 talks of orgtbl-radio-tables However org (8.0.7) seems to have orgtbl-radio-table-templates Assuming they are the same, anywhere I can read about the documentation of the template format? Specifically I find that the name of the receiving function (orgtbl-to-latex) seems to have a significance. The same in the template seems to have none
[O] table export to same buffer
Is it possible to export an orgmode table not to a new file but overwriting the org table in the same buffer? Context is editing source code which contains a largeish table of (say) constants. Editing is done with orgtbl minor mode. When done it should become back the table in the natural format of the programming language [For simplicity lets just say csv will do]
Re: [O] table export to same buffer
Sebastien Vauban wrote On Fri, Aug 2, 2013 at 10:53 PM, Rustom Mody rustompm...@gmail.comwrote: Is it possible to export an orgmode table not to a new file but overwriting the org table in the same buffer? Context is editing source code which contains a largeish table of (say) constants. Editing is done with orgtbl minor mode. When done it should become back the table in the natural format of the programming language [For simplicity lets just say csv will do] Using an Org Babel code block (which you have to write, of course) taking as input your table, and outputting your constants in the wished format should do what you're looking for, right? I dont think so. The context is writing C with C mode (or haskell with haskell-mode python with python-mode etc) ie the user is not using orgmode. That is why I mentioned orgtbl, ie org table editing facilities are needed but the major mode is something else. However here some pre and postprocessing is also probably required. Something like an automation of the following: 1. Editing a large struct spec in C -- major mode is C-mode 2. Select the region (may even be a rectangle) 3. Paste into an org-mode buffer 4. Run C-c | on region 5. Edit table as required 6. org-table-export in desired format to a file F 7. Visit F 8. Copy/Cut F (if necessary as rectangle) 9. Go back to original C-mode buffer and paste