[O] Bug: Plus signs in org tables are highlighted incorrectly [9.0.9 (9.0.9-82-gb862c2-elpa @ /Users/ryan/.emacs.d/elpa/org-20170814/)]
The following table is highlighted incorrectly by org-mode: | Col1 | Col2 | |--+--| | +1 | +2 | |--+--| The region of text starting at the plus sign in "+1" and ending with the plus sign in the following divider line is covered with a strikethrough effect. I think any font effects (bold, italic, strikethrough, etc.) should be limited to within a single cell. 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 http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. Emacs : GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2017-04-21 Package: Org mode version 9.0.9 (9.0.9-82-gb862c2-elpa @ /Users/ryan/.emacs.d/elpa/org-20170814/) current state: == (setq org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-adapt-indentation nil org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-shell-link-function 'yes-or-no-p org-support-shift-select t org-todo-keyword-faces '(("DONE" . "darkgreen") ("CANCELLED" . "darkred") ("REJECTED" . "darkred")) org-after-todo-state-change-hook '(org-clock-out-if-current) org-from-is-user-regexp "\\" org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '((lambda nil (org-bullets-mode 1)) #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-bullets-bullet-list '("◉" "✸" "✿") org-todo-keywords '((sequence "TODO" "|" "DONE" "CANCELLED") (sequence "WORKING" "WRITING(r)" "SUBMITTED" "|" "REJECTED(j)" "ACCEPTED" "PUBLISHED") ) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("id" :follow org-id-open) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path ("https" :follow (lambda (path) (browse-url (concat "https:" path ("mailto" :follow (lambda (path) (browse-url (concat "mailto:; path ("message" :follow (lambda (path) (browse-url (concat "message:" path ("news" :follow (lambda (path) (browse-url (concat "news:; path ("shell" :follow org--open-shell-link)) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) )
Re: [O] Formatting issues exporting to a man page
Greetings: Thank you, Nicolas, for your very prompt response. Your enhancements definitely improved things, however the formatting with == still appears to have issues (i.e., there is a “.nf” before the word and the question mark at the end of the sentence is absent). I have the output from `man` on the resultant Test.man file below. I would appreciate any guidance you can provide with fixing this issue. Thank you for your help with this. {{{ Test of org-mode(1) General Commands Manual Test of org-mode(1) Introduction foo Does this work? bar Does this .nf work baz Does this work? Results foo Does this work? bar Does this work? }}} Kind regards, Anthony > On Oct 18, 2017, at 2:59 PM, Nicolas Goaziouwrote: > > Hello, > > Anthony Agelastos writes: > >> Greetings: >> >> I am trying to use org to export to a man page and I noticed that some >> items with formatting do not show up appropriately. I will provide an >> example of the issue below in addition to system information and the >> troubleshooting I’ve done so far. I would appreciate any guidance you >> can provide with fixing this issue. Thank you for your help with this. > > I think I fixed these issues. > > However, Man export back-end has still some rough edges and would need > some love (and documentation). > > Regards, > > -- > Nicolas Goaziou
Re: [O] Unable to retrieve :parameters for src-block [org-element]
On Wed, Oct 18, 2017, 5:20 PM Kaushal Modiwrote: > > Thanks for the instructions, below works perfectly! > As a quick follow up, it's already implemented in ox-hugo: https://ox-hugo.scripter.co/doc/source-blocks/#highlighting Thanks again! :) > -- Kaushal Modi
Re: [O] OT: TUI applications
Tim, While I appreciate the insight, Tk and web apps are outside the scope of what I'm looking for. I've used Tk with Python and Perl and don't care for it. I value the low overhead, speed, and simplicity of terminal applications. I use Mutt for all my email, and the only GUI app I use with any regularity is Firefox. I'm trying to find a fast way to implement similar terminal applications for simple databases that I use casually. Thanks. On Thu, Oct 19, 2017 at 09:05:47AM +1100, Tim Cross wrote: > > There is actually lots of these frameworks and libraries in many > different languages, so it really depends on what you are most > comfortable working in. I have used both Emacs forms and widgets in the > past. For example, I've used forms as an intermediate step between emacs > and a backend store where I have 'batch' commands which retrieve the > data into a file which forms use as input and then after editing the > data using Emacs forms, write the data back to the backend store (making > the forms a sort of 'batch' processor). > > For shell scripts, whiptail, zenity and dialog usually work and if I > need something a little more, I've used Tcl/Tk or perl/Tk. > > However, I am now trying to reduce my level of context switching between > different languages. As I'm doing more and more in the web environment, > I'm now playing with electron (atom shell), which allows me to easily do > a desktop app just using html, CSS and javascript (actually, my > intention is to use Clojurescript). > > I've actually found that even with basic TUI libraries, there is still > too much low level stuff I don't want to worry about. Being able to use > a JS library I'm familiar with and avoid all the web server, browser > differences etc is much faster and simpler, plus the more I use it, the > easier it gets as I build up my own modules etc. > > Tim > > Russell Adams writes: > > > Given the unique user base of Org, I wanted to ask a question. > > > > Has anyone seen any modern development libraries for TUI (console / > > character cell) applications? Ncurses the library is > > not an answer as you have to start from scratch. There are thousands of web > > frameworks, and yet console is infinitely > > simpler than a LAMP stack, but there are no prepackaged libraries for > > working with it (ie: forms, widgets, etc). > > > > I frequently find myself in the position to need a small custom database > > application for this or that (contacts, > > invoicing, recipes!). Python (or similar) + SQLite seems like a no brainer, > > except I don't want webapps or a giant GUI > > program like libreoffice Base. I'd use something that was text forms based > > like an old dBase product. > > > > I've looked at Emacs forms, but they appear to be only for editing CSV data. > > > > Any ideas? > > > > Thanks. > > > > > > -- > > Russell Adamsrlad...@adamsinfoserv.com > > > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > > > Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > > > -- > Tim Cross > -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Re: [O] OT: TUI applications
There is actually lots of these frameworks and libraries in many different languages, so it really depends on what you are most comfortable working in. I have used both Emacs forms and widgets in the past. For example, I've used forms as an intermediate step between emacs and a backend store where I have 'batch' commands which retrieve the data into a file which forms use as input and then after editing the data using Emacs forms, write the data back to the backend store (making the forms a sort of 'batch' processor). For shell scripts, whiptail, zenity and dialog usually work and if I need something a little more, I've used Tcl/Tk or perl/Tk. However, I am now trying to reduce my level of context switching between different languages. As I'm doing more and more in the web environment, I'm now playing with electron (atom shell), which allows me to easily do a desktop app just using html, CSS and javascript (actually, my intention is to use Clojurescript). I've actually found that even with basic TUI libraries, there is still too much low level stuff I don't want to worry about. Being able to use a JS library I'm familiar with and avoid all the web server, browser differences etc is much faster and simpler, plus the more I use it, the easier it gets as I build up my own modules etc. Tim Russell Adams writes: > Given the unique user base of Org, I wanted to ask a question. > > Has anyone seen any modern development libraries for TUI (console / character > cell) applications? Ncurses the library is > not an answer as you have to start from scratch. There are thousands of web > frameworks, and yet console is infinitely > simpler than a LAMP stack, but there are no prepackaged libraries for working > with it (ie: forms, widgets, etc). > > I frequently find myself in the position to need a small custom database > application for this or that (contacts, > invoicing, recipes!). Python (or similar) + SQLite seems like a no brainer, > except I don't want webapps or a giant GUI > program like libreoffice Base. I'd use something that was text forms based > like an old dBase product. > > I've looked at Emacs forms, but they appear to be only for editing CSV data. > > Any ideas? > > Thanks. > > > -- > Russell Adamsrlad...@adamsinfoserv.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 -- Tim Cross
Re: [O] Unable to retrieve :parameters for src-block [org-element]
On Tue, Oct 17, 2017 at 5:39 PM Berry, Charleswrote: > I think this might work: Add `after' advice to `org-babel-exp-code' that > copies the header args you want to retain and prepends a #+header: line > with them to the string returned by org-babel-exp-code. Then your > src-block transcoder can find them. > Thanks, TIL about org-babel-exp-code. Thanks for the instructions, below works perfectly! = (defun org-babel-exp-code--retain (orig-fun args) "Return the original code block formatted for export." (let* ((param-keys-to-be-retained '(:hl_lines :foo)) ;Example of keys whose conses need to be retained (info (car args)) (parameters (nth 2 info)) (ox-hugo-params-str (let ((str "")) (dolist (param parameters) (dolist (retain-key param-keys-to-be-retained) (when (equal retain-key (car param)) (setq str (concat str " " (symbol-name retain-key) " " (cdr param)) (org-string-nw-p (org-trim str ret) (setq ret (apply orig-fun args));Original return value (when ox-hugo-params-str (setq ret (replace-regexp-in-string "\\`#\\+BEGIN_SRC .*" (format "\\& %s" ox-hugo-params-str) ret))) ret)) (advice-add 'org-babel-exp-code :around #'org-babel-exp-code--retain) = Test: = #+BEGIN_SRC emacs-lisp :eval no-export :results output silent :hl_lines 1,3-4 :foo bar (message "foo") #+END_SRC = The messages based on the debug code I pasted earlier in this thread now look like: = [src-block dbg] number-lines: nil [src-block dbg] switches: nil [src-block dbg] parameters: ":foo bar :hl_lines 1,3-4" = -- Kaushal Modi
Re: [O] Formatting issues exporting to a man page
Hello, Anthony Agelastoswrites: > Greetings: > > I am trying to use org to export to a man page and I noticed that some > items with formatting do not show up appropriately. I will provide an > example of the issue below in addition to system information and the > troubleshooting I’ve done so far. I would appreciate any guidance you > can provide with fixing this issue. Thank you for your help with this. I think I fixed these issues. However, Man export back-end has still some rough edges and would need some love (and documentation). Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Use the same TODO keyword as the current heading
Hello, Allen Liwrites: > Here's the new patch with tests I added a commit message and applied it. Thank you. Regards, -- Nicolas Goaziou0x80A93738
[O] Formatting issues exporting to a man page
Greetings: I am trying to use org to export to a man page and I noticed that some items with formatting do not show up appropriately. I will provide an example of the issue below in addition to system information and the troubleshooting I’ve done so far. I would appreciate any guidance you can provide with fixing this issue. Thank you for your help with this. I have a simple org file that has the following within it. {{{ 1 #+TITLE: Test of org-mode 2 #+AUTHOR: Anthony M. Agelastos 3 #+EMAIL: iqgra...@gmail.com 4 #+DATE: 2017-10-17 5 #+LANGUAGE: en 6 #+OPTIONS: ^:nil 7 #+DESCRIPTION: This document is a test of org mode. 8 #+KEYWORDS: org-mode 9 #+KEYWORDS: test 10 #+LATEX_COMPILER: lualatex 11 #+LATEX_CLASS: article 12 #+LATEX_CLASS_OPTIONS: [letterpaper,11pt] 13 #+LATEX_HEADER: \input{preamble} 14 #+STARTUP: overview 15 16 * Introduction 17 ** foo 18 Does this work? 19 ** bar 20 Does this =work=? 21 ** baz 22 Does this ~work~? 23 24 * Results 25 ** foo 26 Does this *work*? 27 ** bar 28 Does this /work/? }}} This generates the following man page where much of the formatting save for “==” and “~~” work. Those 2, however, ultimately fail with different behavior. I should also note that this exports correctly to Info, PDF, ASCII, HTML, and Markdown. {{{ Test of org-mode(1) General Commands Manual Test of org-mode(1) Introduction foo Does this work? bar Does this .nf nil baz Does this (code (:value work :begin 453 :end 459 :post-blank 0 :parent (paragraph (:begin 443 :end 461 :contents-begin 443 :contents-end 461 :post-blank 0 :post-affiliated 443 :parent (section (:begin 443 :end 462 :contents-begin 443 :contents-end 461 :post-blank 1 :post-affiliated 443 :par‐ ent (headline (:raw-value baz :begin 436 :end 461 :pre-blank 0 :contents-begin 443 :contents-end 461 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 436 :title (baz) :parent (headline (:raw-value Introduction :begin 373 :end 462 :pre-blank 0 :contents-begin 388 :contents-end 461 :level 1 :prior‐ ity nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 373 :title (Introduction) :parent (org-data nil (section (:begin 1 :end 373 :contents-begin 1 :contents-end 372 :post-blank 1 :post-affiliated 1 :parent #10) (keyword (:key TITLE :value Test of org-mode :begin 1 :end 27 :post-blank 0 :post-affiliated 1 :par‐ ent #11)) (keyword (:key AUTHOR :value Anthony M. Agelastos :begin 27 :end 58 :post-blank 0 :post- affiliated 27 :parent #11)) (keyword (:key EMAIL :value iqgra...@gmail.com :begin 58 :end 86 :post- blank 0 :post-affiliated 58 :parent #11)) (keyword (:key DATE :value 2017-10-17 :begin 86 :end 105 :post-blank 0 :post-affiliated 86 :parent #11)) (keyword (:key LANGUAGE :value en :begin 105 :end 120 :post-blank 0 :post-affiliated 105 :parent #11)) (keyword (:key OPTIONS :value ^:nil :begin 120 :end 137 :post-blank 0 :post-affiliated 120 :parent #11)) (keyword (:key DESCRIPTION :value This document is a test of org mode. :begin 137 :end 189 :post-blank 0 :post-affiliated 137 :parent #11)) (keyword (:key KEYWORDS :value org-mode :begin 189 :end 210 :post-blank 0 :post-affiliated 189 :par‐ ent #11)) (keyword (:key KEYWORDS :value test :begin 210 :end 227 :post-blank 0 :post-affiliated 210 :parent #11)) (keyword (:key LATEX_COMPILER :value lualatex :begin 227 :end 254 :post-blank 0 :post- affiliated 227 :parent #11)) (keyword (:key LATEX_CLASS :value article :begin 254 :end 277 :post- blank 0 :post-affiliated 254 :parent #11)) (keyword (:key LATEX_CLASS_OPTIONS :value [letterpa‐ per,11pt] :begin 277 :end 319 :post-blank 0 :post-affiliated 277 :parent #11)) (keyword (:key LATEX_HEADER :value input{preamble} :begin 319 :end 352 :post-blank 0 :post-affiliated 319 :parent #11)) (keyword (:key STARTUP :value overview :begin 352 :end 372 :post-blank 0 :post-affiliated 352 :parent #11))) #8 (headline (:raw-value Results :begin 462 :end 522 :pre-blank 0 :contents-begin 472 :contents-end 522 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 462 :title (Results) :parent #10) (headline (:raw-value foo :begin 472 :end 497 :pre-blank 0 :contents-begin 479 :contents-end 497 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-sec‐ tion-p nil :archivedp nil :commentedp nil :post-affiliated 472 :title (foo) :parent #11) (section
Re: [O] OT: TUI applications
On Wed, Oct 18, 2017 at 10:55:26AM -0500, Grant Rettke wrote: > On Wed, Oct 18, 2017 at 8:23 AM, Russell Adams> > https://www.gnu.org/software/emacs/manual/html_mono/widget.html That's cool! I didn't realize that Emacs had some of that built in. I'll read up on that too! -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Re: [O] OT: TUI applications
On Wed, Oct 18, 2017 at 8:23 AM, Russell Adamswrote: > Given the unique user base of Org, I wanted to ask a question. > > Has anyone seen any modern development libraries for TUI (console / > character cell) applications? Ncurses the library is > not an answer as you have to start from scratch. There are thousands of > web frameworks, and yet console is infinitely > simpler than a LAMP stack, but there are no prepackaged libraries for > working with it (ie: forms, widgets, etc). > > I frequently find myself in the position to need a small custom database > application for this or that (contacts, > invoicing, recipes!). Python (or similar) + SQLite seems like a no > brainer, except I don't want webapps or a giant GUI > program like libreoffice Base. I'd use something that was text forms based > like an old dBase product. > > I've looked at Emacs forms, but they appear to be only for editing CSV > data. > > Any ideas? > > > https://www.gnu.org/software/emacs/manual/html_mono/widget.html
Re: [O] function for inserting a block
Carsten Dominikwrites: > Dear all, > > this is great added functionality that I have missed a lot myself. Thanks > for this! Also, I like the key binding. I do too, though I also notice it conflicts with inlinetask insertion. > One improvement I can think of it to read the block type with completion (but > still allow any word to be used). I'd be happy to do that. There would be a tiny bit of redundancy with `org-structure-template-alist', but nothing too terrible. Eric
Re: [O] OT: TUI applications
Allan, On Wed, Oct 18, 2017 at 09:58:31AM -0400, Allan Streib wrote: > > Has anyone seen any modern development libraries for TUI (console / > > character cell) applications? > > There's Console Framework[1] if you like C# and .NET/Mono. Anything Windows oriented is not what I'm looking for. I would say I strongly dislike that platform. ;] > Or maybe npyscreen[2] is more what you're looking for? I did see they recently added forms since I last looked at the project! I may try that out. Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Re: [O] OT: TUI applications
> Has anyone seen any modern development libraries for TUI (console / > character cell) applications? There's Console Framework[1] if you like C# and .NET/Mono. Or maybe npyscreen[2] is more what you're looking for? 1. https://elw00d.github.io/consoleframework/ 2. http://npyscreen.readthedocs.io/introduction.html#purpose Allan
[O] OT: TUI applications
Given the unique user base of Org, I wanted to ask a question. Has anyone seen any modern development libraries for TUI (console / character cell) applications? Ncurses the library is not an answer as you have to start from scratch. There are thousands of web frameworks, and yet console is infinitely simpler than a LAMP stack, but there are no prepackaged libraries for working with it (ie: forms, widgets, etc). I frequently find myself in the position to need a small custom database application for this or that (contacts, invoicing, recipes!). Python (or similar) + SQLite seems like a no brainer, except I don't want webapps or a giant GUI program like libreoffice Base. I'd use something that was text forms based like an old dBase product. I've looked at Emacs forms, but they appear to be only for editing CSV data. Any ideas? Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Re: [O] function for inserting a block
Dear all, this is great added functionality that I have missed a lot myself. Thanks for this! Also, I like the key binding. One improvement I can think of it to read the block type with completion (but still allow any word to be used). Carsten On Wed, Oct 18, 2017 at 12:03 AM, Eric Abrahamsenwrote: > Eric Abrahamsen writes: > > > Nicolas Goaziou writes: > > > >> Eric Abrahamsen writes: > >> > >>> I'm still not quite seeing this. This chunk should take care of it: > >>> > >>> (goto-char e) > >>> (if (bolp) > >>> (progn > >>> (skip-chars-backward " \n\t") > >>> (forward-line)) > >>> (end-of-line) > >>> (insert "\n")) > >>> > >>> If "e" is EOB, we do `end-of-line' and insert a newline, it should be > >>> taken care of. I added a new clause in the test for this case, and it > >>> seems to work fine... Am I missing anything? > >> > >> I don't think so. It looks correct, indeed. > >> > >> However, you sent the wrong patch. Could you send the updated patch > >> again? > > > > Ooof, maybe I need to take a little vacation from the computer. This > > should be the right one. > > Backing away from the keyboard now... > >