Re: [O] Invalid-read-syntax
On 2016-04-20 07:59, Colin Baxter writes: > On Tue, Apr 19 2016, Nicolas Goaziou wrote: > >> Hello, >> >> Colin Baxter writes: >> >>> With the latest org-mode release_8.3.4-739-g7894129, I'm getting an lisp >>> error >>> (invalid-read-syntax "#"). This ocurs with emacs-25.1.50.1 and >>> emacs-24.5.1. >> >> Could you provide an ECM? What command triggered that? >> >> Regards, > > I'm afraid I don't know what ECM means. If you can give me some more > information, I'll have a go at providing it. It's a TLA (three letters acronym) for MWE (minimal working example) in French: Exemple Complet Minimal. HTH, Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO₂ (2016-03, Mauna Loa Obs.): 404.83 signature.asc Description: PGP signature
Re: [O] Show presence of zero width spaces using overlay
Hello Nicolas >> In plain-text parts of org documents (i.e. that would be exported as >> the content of attributes in html, or to plain text paragraphs in >> Markdown, etc.), there shall be a way to treat strings in the same way >> as the surrounding plain text, which would otherwise be handled by >> org-mode in a special way. > > I don't understand. I don't really know how to express it better, so I will just give an example: "This ==is really verbatim== stuff." should be parsed and treated exactly like "This is really verbatim stuff." Right now, it is treated in the same way as ~code fragments~. In practice other delimiters than "==" would probably be chosen. It would be an element in org-emphasis-alist, that in fact prevents any emphasis at all. In effect, it would allow to really escape parts of paragraphs or link descriptions, or wherever these kinds of empahsis characters are valid. This is only an example of what I want to be able to do, no specification, sorry. regards timor
Re: [O] Bug: Problem with LaTeX export, footnotes in table headers, and longtabu [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/berhol/.emacs.d/elpa/org-20160404/)]
Nicolas Goaziou writes: Hello, > Hello, > > bh...@despammed.com (Berthold Höllmann) writes: > >> hypperref works again half way, if i define the first occurrence of the >> footnote using a bare "\footnotemark", and use "\footnotemark[> number>]" in subsequent uses. > > Isn't it the case already? > I also thought so, after looking into the code, but the result I get seemed to proves otherwise. I simplified my example: , | #+LATEX_HEADER: \usepackage{tabu} | #+TITLE: Multi page table test | | #+ATTR_LATEX: :environment longtabu | | *Typ[fn:1]* | | |-| | | 1[fn:1] | | |-| | | * Footnotes | | [fn:1] | Blind[fn:1] text ` and the important part of the generated LaTeX file is: , | \begin{longtabu}{l} | \textbf{Typ\footnotemark}\\ | \hline | \endfirsthead | \multicolumn{1}{l}{Continued from previous page} \\ | \hline | | \textbf{Typ\footnotemark} \\ | | \hline | \endhead | \hline\multicolumn{1}{r}{Continued on next page} \\ | \endfoot | \endlastfoot | \hline | 1\footnotemark[1]{}\\ | \hline | \end{longtabu} | \footnotetext[1]{Blind\footnotemark[1]{} text} ` Even so there seem to be two different routines for writing the column header for the first and the subsequent pages (in the first one the \\ follows directly to the '}', whereas the second time a space is added), it seems, the string is generated only once, because the "[1]" is missing on the second "\footnotemark", but added to the third one. > > > Regards, signature.asc Description: PGP signature
Re: [O] how to suppress extra newline between paragraphs in export?
Nicolas Goaziou writes: [...] >>(paragraph >> (:begin 1 :end 5 :contents-begin 1 :contents-end 4 :post-blank 1 >> :post-affiliated 1 :parent #1) > > ^^^ > > blank line > > [...] > >> So there's an extra newline before =fo= that no transpose functions are >> responsible for, as far as I can see. Is it possible to get at this >> somehow? > > You can set the :post-blank value to 0 using a parse tree filter. See > for example `org-md-separate-elements'. Perfect. That seems to be exactly what I'm after. Stig
Re: [O] Bug: org-bibtex-read strips too many braces (8.3.4-39-ge0acd8-elpaplus)
Hello Nicolas, 2016-04-19 21:28 GMT+02:00 Nicolas Goaziou : > So, do you think that returning {Unnecessary Braces in Title.} instead > of the above would be fine? Yes. Looking at the BibTeX Files I am dealing with, the use of inner braces is usually justified (except for the example I gave, but it is not org-mode's job to correct poor BibTeX, I think). Therefore they should be kept intact when reading the field. > If that's the case, we could indeed remove the duplicate '(123 . 125). Very nice. regards, timor
Re: [O] org-mime-htmlize with latex math, no png
>>> "Uwe" == Uwe Brauer writes: > Hi > Is there a similar possibility for org-mime-HTML? To answer my own question, looking into org-mime.el the answer is *no* sorry for the noise. Uwe Brauer
[O] org-mime-htmlize with latex math, no png
Hi I am very happy with org-mime-htmlize which allows me to send latex equations as png. However I just changed the setting of org-html-with-latex from png to mathjax, since when I export from org to html it is sometimes difficult to use that generated HTML (and the relevant pngs) in other HTML documents. So that is where mathjax seems more appropriate. Is there a similar possibility for org-mime-htmlize? thanks Uwe Brauer
Re: [O] tables, comment in one line, export to html
>>> "Eric" == Eric S Fraga writes: > On Tuesday, 19 Apr 2016 at 17:01, Fraga, Eric wrote: >> How about inline html: @@html:@@ > Sorry, I mistyped the HTML comment enclosure... this should be > @@html:@@ Cool, thanks very much I tried out | name | result | @@html:@@ | Smith | 10 | @@html:@@ Which does almost all I want, it inserts an empty third column, but I presume this cannot be changed? Anyhow this solution is sufficient for me, but if you know how to get rid of that third column, I would be even more grateful! Thanks again Uwe
Re: [O] orgmode & pdf-tools
. . . A N D openSUSE! Links of the form [[./foo.pdf::3]] still are being opened on p. 1 instead of page 3. For description of my issue, see my report from April 3rd below. Me, being a user, I can't solve this. I'm on openSuse, current Tumbleweed. I managed to install PDF-Tools properly, after I found out that you need to install Cask before loading down the package via Melpa. Those lines below from my .emacs work in other installations, as the maintainer of org-pdfview.el wrote. (https://github.com/markus1189/org-pdfview/issues/10) I build a short .emacs, only the necessary links and packages, to orgmode and PDF-Tools. No success. IS SOMEBODY READING THIS WHO USES openSUSE ? I tried but failed to find an error with edebug, but this seems way beyond my skills. Am Sonntag, 3. April 2016, 12:19:33 CEST schrieb AW: > Hi! > > Linux, Orgmode 8.3.4, org-file with many links. Recently I discovered pdf- > tools, which can display PDFs inside Emacs, just like docview, but much > faster. > > I'd like to > > 1. open via a given link from inside the org-file using C-c C-o > > 2. the PDF with pdf-tools > > 3. on a given page. > > Result: PDF is being opened, but always on p. 1 instead of e.g. page 5! > > .emacs: > > (eval-after-load 'org '(require 'org-pdfview)) > (delete '("\\.pdf\\'" . default) org-file-apps) > (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open)) > (add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview- > open)) > > link in org-file: > > [[./localfile.pdf::5]] > > > Same setup works under windows with other viewer. So probably there is an > error in those lines above. Any hints? -- Thank you! > > Regards, > > Alexander
Re: [O] ox-odt.el
Hello, Colin Baxter writes: > The line > > (expand-file-name "../../etc/styles/" org-odt-lib-dir) ; git > > in the defconst org-odt-styles-dir-list at line 181 of ox-odt.el points to > "git/org-mode/lisp/etc/styles/". Should it not point to > "git/org-mode/etc/styles/"? This would be achieved by changing the line to > > (expand-file-name "../etc/styles/" org-odt-lib-dir) ; git Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Bug: org-bibtex-read strips too many braces (8.3.4-39-ge0acd8-elpaplus)
Hello, timor writes: > When using org-bibtex-read-buffer, I noticed that the following title > field in a bibtex entry: > > ... > {{MASTER}: {A} {Multicore} {Cache} {Energy}-{Saving} > {Technique} {Using} {Dynamic} {Cache} > {Reconfiguration}} > ... > > is read in as > > "MASTER}: {A} {Multicore} {Cache} {Energy}-{Saving} > {Technique} {Using} {Dynamic} {Cache} > {Reconfiguration" > > I believe this is due to the duplicate '(123 . 125) element in org-bibtex-read > (org-bibtex.el:634), and was supposed to clean up fields that were > formatted like this: > > {{Unnecessary Braces in Title.}} > > I do think, however, that the correct behavior would be to only strip > the outer pair of braces. So, do you think that returning {Unnecessary Braces in Title.} instead of the above would be fine? If that's the case, we could indeed remove the duplicate '(123 . 125). Regards, -- Nicolas Goaziou
Re: [O] Bug: Problem with LaTeX export, footnotes in table headers, and longtabu [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/berhol/.emacs.d/elpa/org-20160404/)]
Hello, bh...@despammed.com (Berthold Höllmann) writes: > hypperref works again half way, if i define the first occurrence of the > footnote using a bare "\footnotemark", and use "\footnotemark[ number>]" in subsequent uses. Isn't it the case already? (cond ;; Use \footnotemark if the footnote has already been defined. ((not (org-export-footnote-first-reference-p footnote-reference info)) (format "\\footnotemark[%s]{}" (org-export-get-footnote-number footnote-reference info))) ;; Use \footnotemark if reference is within another footnote ;; reference, footnote definition or table cell. ((org-element-lineage footnote-reference '(footnote-reference footnote-definition table-cell)) "\\footnotemark") ...) Regards, -- Nicolas Goaziou
Re: [O] Invalid-read-syntax
Hello, Colin Baxter writes: > With the latest org-mode release_8.3.4-739-g7894129, I'm getting an lisp error > (invalid-read-syntax "#"). This ocurs with emacs-25.1.50.1 and > emacs-24.5.1. Could you provide an ECM? What command triggered that? Regards, -- Nicolas Goaziou
Re: [O] Show presence of zero width spaces using overlay
timor writes: > Maybe it is viable to start defining and implementing some obvious > cases, which can later be generalized into a rule, so that code has > not to be rewritten on every level at once. I'd rather define some specifications right from the beginning, i.e., what, where and, ultimately, how. > In plain-text parts of org documents (i.e. that would be exported as > the content of attributes in html, or to plain text paragraphs in > Markdown, etc.), there shall be a way to treat strings in the same way > as the surrounding plain text, which would otherwise be handled by > org-mode in a special way. I don't understand. Regards,
Re: [O] BUG: Wrong indentation inside src block
Hello, fm4d writes: > Well, the behaviour is IMO different because something happend in the > commit > http://repo.or.cz/org-mode.git/commit/a311a856514e9245074b02c89d51a9f339784d1c > that broke it. The indent-tabs-mode is off. Actually, that commit changes nothing. Could you double check your bisecting? Regards, -- Nicolas Goaziou
Re: [O] [BUG] Void variable org-clock-current-task
Hello, Kyle Meyer writes: > As a result, org-clock-current-task is undefined if org-clock.el is not > yet loaded, leading to org-agenda-mark-clocking-task signaling a > void-variable error when org-agenda is called. > > Debugger entered--Lisp error: (void-variable org-clock-current-task) > (if org-clock-current-task > (progn (save-restriction ...))) > org-agenda-mark-clocking-task() > ... > call-interactively(org-agenda nil nil) > command-execute(org-agenda) Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [O] How to execute org babel src block line by line?
Hi Xor3, Maybe you should take a look at eev - more specifically, at eepitch, which is one of its modules... there's a demo here, starting at 0:16, http://angg.twu.net/eev-videos/video4-eepitch.mp4 http://www.youtube.com/watch?v=Lj_zKC5BR64 and there's a tutorial here: http://angg.twu.net/eev-intros/find-eev-quick-intro.html I am not sure if it is already as compatible with Org as it should - I use Org all the time, but just a few basic features... if you want to try it and stumble on any problems please let me know and I will fix everything ASAP - I am in the middle of my holidays. =) Cheers! Eduardo Ochs eduardoo...@gmail.com http://angg.twu.net/ P.S.: I am trying isend-mode now. On Mon, Apr 18, 2016 at 5:44 AM, Xor3 wrote: > Hi community, >I want to execute org babel src block one line a time. >Here is what I have tried. >I use `isend' to send things to REPL buffer. When "C-" is pressed > at first time, a REPL buffer which is decided by `lang' params is startd. > Then everything send to that buffer. An additional param `:dir' is configured > to decide the starting `default-directry' of the REPL command. > > = > (eval-after-load "org" > '(progn > ;; ;; (org-defkey org-mode-map (kbd "C-") 'org-isend-send) > (define-key org-mode-map (kbd "C-") 'org-isend-send) > > (defun org-isend-send() > (interactive) > (let* ((oldbuf (current-buffer)) > (info (org-babel-get-src-block-info)) > (lang (nth 0 info)) > (body (nth 1 info)) > (params (nth 2 info)) > (session (cdr (assoc :session params))) > (dir (cdr (assoc :dir params))) > (isend--command-buffer (concat "*" session "*")) > (working-directory > (or (and dir (file-name-as-directory dir)) > default-directory))) > (when (not (get-buffer isend--command-buffer)) > (cond >((string-equal lang "python") (save-current-buffer >(let ((default-directory > working-directory)) > (call-interactively > 'run-python) > (with-current-buffer > "*Python*" >(rename-buffer > isend--command-buffer) >((string-equal lang "sh") (save-current-buffer >(let ((default-directory > working-directory)) > (if (string-equal session > "eshell") > (eshell) >(progn > (shell) > (with-current-buffer > "*shell*" >(rename-buffer > isend--command-buffer))) >(t (error "session?"))) > (require 'isend) > (require 'isend-mode) > (when (not isend-mode) > (isend-mode 1) > (make-local-variable 'isend-mode-map) > (define-key isend-mode-map (kbd "C-") nil) > (local-set-key (kbd "C-") 'org-isend-send)) > (cond >((string-equal lang "python") (isend-ipython-setup)) >(t (isend-shell-setup))) > ) > ;; (display-buffer isend--command-buffer) > (isend-display-buffer) > (call-interactively 'isend-send) > ;; (with-current-buffer isend--command-buffer > ;; (goto-char (point-max)) > ;; (comint-send-input) > ;; (funcall (key-binding (kbd "RET"))) > ;; ) > > > > I want to execute my shells/python/ruby scirpts this way by writing out > them first, then `C-' doing the rest. > > Does anyone know a better or more native `org' way to do this? > Thank you for your help.
Re: [O] tables, comment in one line, export to html
On Tuesday, 19 Apr 2016 at 17:01, Fraga, Eric wrote: > How about inline html: @@html:@@ Sorry, I mistyped the HTML comment enclosure... this should be @@html:@@ -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-739-g789412
Re: [O] BUG: Wrong indentation inside src block
Well, the behaviour is IMO different because something happend in the commit http://repo.or.cz/org-mode.git/commit/a311a856514e9245074b02c89d51a9f339784d1c that broke it. The indent-tabs-mode is off. Eric S Fraga writes: > On Saturday, 16 Apr 2016 at 15:42, fm4d wrote: >> I made two short videos showing what exactly I mean. >> >> http://fm4d.net/indent1.ogv - with master >> http://fm4d.net/indent2.ogv - with 8.3.3 > > I don't understand why the behaviour is different with different > versions of org but, just in case, what is the setting of > indent-tabs-mode? I find that things work best with this set to > nil. The actual use of tabs is a holdover from typewriter days... -- ~~~ fm4d ~~~
[O] How to execute org babel src block line by line?
Hi community, I want to execute org babel src block one line a time. Here is what I have tried. I use `isend' to send things to REPL buffer. When "C-" is pressed at first time, a REPL buffer which is decided by `lang' params is startd. Then everything send to that buffer. An additional param `:dir' is configured to decide the starting `default-directry' of the REPL command. = (eval-after-load "org" '(progn ;; ;; (org-defkey org-mode-map (kbd "C-") 'org-isend-send) (define-key org-mode-map (kbd "C-") 'org-isend-send) (defun org-isend-send() (interactive) (let* ((oldbuf (current-buffer)) (info (org-babel-get-src-block-info)) (lang (nth 0 info)) (body (nth 1 info)) (params (nth 2 info)) (session (cdr (assoc :session params))) (dir (cdr (assoc :dir params))) (isend--command-buffer (concat "*" session "*")) (working-directory (or (and dir (file-name-as-directory dir)) default-directory))) (when (not (get-buffer isend--command-buffer)) (cond ((string-equal lang "python") (save-current-buffer (let ((default-directory working-directory)) (call-interactively 'run-python) (with-current-buffer "*Python*" (rename-buffer isend--command-buffer) ((string-equal lang "sh") (save-current-buffer (let ((default-directory working-directory)) (if (string-equal session "eshell") (eshell) (progn (shell) (with-current-buffer "*shell*" (rename-buffer isend--command-buffer))) (t (error "session?"))) (require 'isend) (require 'isend-mode) (when (not isend-mode) (isend-mode 1) (make-local-variable 'isend-mode-map) (define-key isend-mode-map (kbd "C-") nil) (local-set-key (kbd "C-") 'org-isend-send)) (cond ((string-equal lang "python") (isend-ipython-setup)) (t (isend-shell-setup))) ) ;; (display-buffer isend--command-buffer) (isend-display-buffer) (call-interactively 'isend-send) ;; (with-current-buffer isend--command-buffer ;; (goto-char (point-max)) ;; (comint-send-input) ;; (funcall (key-binding (kbd "RET"))) ;; ) I want to execute my shells/python/ruby scirpts this way by writing out them first, then `C-' doing the rest. Does anyone know a better or more native `org' way to do this? Thank you for your help.
[O] [BUG] Void variable org-clock-current-task
Hi Nicolas, 4743d43 (Properly handle ‘org-tag-persistent-alist’, 2016-04-17) removed the initial value for org-clock-current-task: - (defvar org-clock-current-task nil) + (defvar org-clock-current-task) As a result, org-clock-current-task is undefined if org-clock.el is not yet loaded, leading to org-agenda-mark-clocking-task signaling a void-variable error when org-agenda is called. Debugger entered--Lisp error: (void-variable org-clock-current-task) (if org-clock-current-task (progn (save-restriction ...))) org-agenda-mark-clocking-task() ... call-interactively(org-agenda nil nil) command-execute(org-agenda) -- Kyle
Re: [O] tables, comment in one line, export to html
On Tuesday, 19 Apr 2016 at 11:08, Uwe Brauer wrote: > Hello > > I would like to have a table entry in which the last colum contains > comments which I don't want to export to html. > > Like this > > | Joe Smith | 7 | 25 | 5 | | 37 | | #+begin_comment from group B B > #+end_comment | How about inline html: @@html:@@ ? (untested) -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa
Re: [O] tables, comment in one line, export to html
>>> "Michael" == Michael Welle writes: > Hello, > Uwe Brauer writes: >> Hello >> >> I would like to have a table entry in which the last colum contains >> comments which I don't want to export to html. >> >> Like this >> >> | Joe Smith | 7 | 25 | 5 | | 37 | | #+begin_comment from group B B >> #+end_comment | >> >> But this does not work. So how can I achieve it? > one way to achieve that would be: > * Table example > ** Exported table > #+BEGIN_HTML > > #+END_HTML > #+BEGIN_HTML > > #+END_HTML > ** Internal table :noexport: > #+ORGTBL: SEND table_name orgtbl-to-html :skipcols (3) > | 3 | 3 | void | > | 4 | 4 | foo | > | 5 | 5 | bar | Thanks but this is supposed to work in a org mode buffer? Does not work for me. Also I wanted to export the whole file not just a part of it in the file. It seems that you are in a HTML buffer and use orgtbl radio tables? That I do in latex files but not in HTML files, they are just for me too ugly to edit them directly.
Re: [O] tables, comment in one line, export to html
> Hello, > Uwe Brauer writes: > one way to achieve that would be: > * Table example > ** Exported table > #+BEGIN_HTML > > #+END_HTML > #+BEGIN_HTML > > #+END_HTML > ** Internal table :noexport: > #+ORGTBL: SEND table_name orgtbl-to-html :skipcols (3) > | 3 | 3 | void | > | 4 | 4 | foo | > | 5 | 5 | bar | > Sort of, at least. I hope there are better ways. Correction to my reply: it works, but it generates html code which I have then to insert into a HTML file. I prefer directly to import the whole org file. Can that be achieved?
Re: [O] Show presence of zero width spaces using overlay
Hello Nicolas, 2016-04-19 12:16 GMT+02:00 Nicolas Goaziou : > Actually, this is not really a specification of the problem, which is > quite tricky. The list of characters is but one part of it. Another part > is where escaping should be allowed. Note that allowing to escape > everywhere would be terrible, if only performance-wise. The last part is > about handling it at the parser level (there's also the fontification, > which doesn't use the parser ATM). Good points. I don't understand enough org mode internals to judge how much effort is needed on which level for things like this. Maybe it is viable to start defining and implementing some obvious cases, which can later be generalized into a rule, so that code has not to be rewritten on every level at once. In light of this, I can think of defining the case that bugged me the most like this: In plain-text parts of org documents (i.e. that would be exported as the content of attributes in html, or to plain text paragraphs in Markdown, etc.), there shall be a way to treat strings in the same way as the surrounding plain text, which would otherwise be handled by org-mode in a special way. Does that help? regards, timor
[O] tables, comment in one line, export to html
Hello I would like to have a table entry in which the last colum contains comments which I don't want to export to html. Like this | Joe Smith | 7 | 25 | 5 || 37 | | #+begin_comment from group B B #+end_comment | But this does not work. So how can I achieve it? thanks Uwe Brauer
Re: [O] Show presence of zero width spaces using overlay
Hello, timor writes: > Specification-wise, I cannot think of anything other than > > "Use to prevent any special characters from formatting text." > > I guess one would have to define the list of characters which can be escaped. > I also don't know if backslash is the correct way to go. Actually, this is not really a specification of the problem, which is quite tricky. The list of characters is but one part of it. Another part is where escaping should be allowed. Note that allowing to escape everywhere would be terrible, if only performance-wise. The last part is about handling it at the parser level (there's also the fontification, which doesn't use the parser ATM). > Another thing I think is important is that is > semi-obvious to non-org-mode people. That's why I think using > org-entities is not a valid workaround for my original problem. That's all we have at the moment. Regards, -- Nicolas Goaziou
[O] Bug: org-bibtex-read strips too many braces (8.3.4-39-ge0acd8-elpaplus)
When using org-bibtex-read-buffer, I noticed that the following title field in a bibtex entry: ... {{MASTER}: {A} {Multicore} {Cache} {Energy}-{Saving} {Technique} {Using} {Dynamic} {Cache} {Reconfiguration}} ... is read in as "MASTER}: {A} {Multicore} {Cache} {Energy}-{Saving} {Technique} {Using} {Dynamic} {Cache} {Reconfiguration" I believe this is due to the duplicate '(123 . 125) element in org-bibtex-read (org-bibtex.el:634), and was supposed to clean up fields that were formatted like this: {{Unnecessary Braces in Title.}} I do think, however, that the correct behavior would be to only strip the outer pair of braces. regards, timor Emacs : GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Package: Org-mode version 8.3.4 (8.3.4-39-ge0acd8-elpaplus @ /AppData/Roaming/.emacs.d/elpa/org-plus-contrib-20160418/)
Re: [O] Show presence of zero width spaces using overlay
Hello Nicolas, Sorry for not replying earlier. If my comments don't matter anymore, please ignore. Specification-wise, I cannot think of anything other than "Use to prevent any special characters from formatting text." I guess one would have to define the list of characters which can be escaped. I also don't know if backslash is the correct way to go. Another thing I think is important is that is semi-obvious to non-org-mode people. That's why I think using org-entities is not a valid workaround for my original problem. regards, timor 2015-09-27 11:41 GMT+02:00 Nicolas Goaziou : > Hello, > > timor writes: > >> I am wondering why there is no simple backslash-escaping of org-mode >> syntax? > > I think a backslash escaping is needed. However, I don't think it is > going to be that simple. Do you have some specifications in mind? > > > Regards, > > -- > Nicolas Goaziou
[O] [PATCH] Prevent org-rss-headline dropping lower level headlines
Hi, Currently, the RSS exporter (org-rss-headline) drops lower level headlines (headlines with level > 1), and therefore they do not appear in the exported RSS. This is a bug. For example, if the following file were exported to RSS, "Headline level 2" would not appear in the output. = file begins here = * Headline level 1 foo ** Headline level 2 bar = file end here = Please find attached a patch fixing this. Regards, Arun Isaac. signature.asc Description: PGP signature >From e000940d29b4bf5f63274e82f6a7341021000fd2 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 19 Apr 2016 13:53:50 +0530 Subject: [PATCH] ox-rss: Prevent dropping lower level headlines * contrib/lisp/ox-rss.el (org-rss-headline): Transcode lower level headlines (headlines with level > 1) with org-html-headline. Do not drop them. Previously, lower level headlines were dropped and did not appear in the exported RSS output. --- contrib/lisp/ox-rss.el | 106 - 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el index 39fce30..eba461d 100644 --- a/contrib/lisp/ox-rss.el +++ b/contrib/lisp/ox-rss.el @@ -228,59 +228,59 @@ Return output file name." "Transcode HEADLINE element into RSS format. CONTENTS is the headline contents. INFO is a plist used as a communication channel." - (unless (or (org-element-property :footnote-section-p headline) - ;; Only consider first-level headlines - (> (org-export-get-relative-level headline info) 1)) -(let* ((author (and (plist-get info :with-author) - (let ((auth (plist-get info :author))) - (and auth (org-export-data auth info) - (htmlext (plist-get info :html-extension)) - (hl-number (org-export-get-headline-number headline info)) - (hl-home (file-name-as-directory (plist-get info :html-link-home))) - (hl-pdir (plist-get info :publishing-directory)) - (hl-perm (org-element-property :RSS_PERMALINK headline)) - (anchor (org-export-get-reference headline info)) - (category (org-rss-plain-text - (or (org-element-property :CATEGORY headline) "") info)) - (pubdate0 (org-element-property :PUBDATE headline)) - (pubdate (let ((system-time-locale "C")) - (if pubdate0 - (format-time-string - "%a, %d %b %Y %H:%M:%S %z" - (org-time-string-to-time pubdate0) - (title (or (org-element-property :RSS_TITLE headline) - (replace-regexp-in-string - org-bracket-link-regexp - (lambda (m) (or (match-string 3 m) - (match-string 1 m))) - (org-element-property :raw-value headline - (publink - (or (and hl-perm (concat (or hl-home hl-pdir) hl-perm)) - (concat - (or hl-home hl-pdir) - (file-name-nondirectory - (file-name-sans-extension - (plist-get info :input-file))) "." htmlext "#" anchor))) - (guid (if org-rss-use-entry-url-as-guid - publink - (org-rss-plain-text - (or (org-element-property :ID headline) - (org-element-property :CUSTOM_ID headline) - publink) - info - (if (not pubdate0) "" ;; Skip entries with no PUBDATE prop - (format - (concat - "\n" - "%s\n" - "%s\n" - "%s\n" - "%s\n" - "%s\n" - (org-rss-build-categories headline info) "\n" - "\n" - "\n") - title publink author guid pubdate contents) + (if (> (org-export-get-relative-level headline info) 1) + (org-html-headline headline contents info) +(unless (org-element-property :footnote-section-p headline) + (let* ((author (and (plist-get info :with-author) + (let ((auth (plist-get info :author))) + (and auth (org-export-data auth info) + (htmlext (plist-get info :html-extension)) + (hl-number (org-export-get-headline-number headline info)) + (hl-home (file-name-as-directory (plist-get info :html-link-home))) + (hl-pdir (plist-get info :publishing-directory)) + (hl-perm (org-element-property :RSS_PERMALINK headline)) + (anchor (org-export-get-reference headline info)) + (category (org-rss-plain-text + (or (org-element-property :CATEGORY headline) "") info)) + (pubdate0 (org-element-property :PUBDATE headline)) + (pubdate (let ((system-time-locale "C")) + (if pubdate0 + (format-time-string + "%a, %d %b %Y %H:%M:%S %z" + (org-time-string-to-time pubdate0) + (title (or (org-element-property :RSS_TITLE headline) + (replace-regexp-in-string + org-bracket-link-regexp + (lambda (m) (or (match-string 3 m) + (match-string 1 m))) + (org-element-property :raw-value headline + (publink + (or (and hl-perm (concat (or hl-home hl-pdir) hl-perm)) + (concat + (or hl-home hl-pdir) + (file-name-nondirectory + (file-name-sans-extension + (plist-get info :input-file))) "." htmlext "#" anchor))) + (guid (if org-rss-use-entry-url-as-guid + publink + (org-rss-plain-text +
[O] Invalid-read-syntax
With the latest org-mode release_8.3.4-739-g7894129, I'm getting an lisp error (invalid-read-syntax "#"). This ocurs with emacs-25.1.50.1 and emacs-24.5.1. Backtrace Debugger entered--Lisp error: (invalid-read-syntax "#") read(#) eval-buffer(# nil "/home/redknight/git/org-mode/lisp/ox-html.el" nil t) ; Reading at buffer position 100503 load-with-code-conversion("/home/redknight/git/org-mode/lisp/ox-html.el" "/home/redknight/git/org-mode/lisp/ox-html.el" nil t) require(ox-html) byte-code("\306\307\310!\210\307\311!\210\312\313\314\315!\210\314\316!\210\314\317!\210\314\320!\210\321\322\323\322\207" [org-link-abbrev-alist org-latex-create-formula-image-program org-alphabetical-lists bibtex2html-program org-latex-table-caption-above org-latex-pdf-process (("bib" . "~/texmf/bibtex/bib/colin.bib/all_refs.bib::%s") ("baz" . "~/texmf/bibtex/bib/colin.bib/other/other_refs.bib::%s") ("notes" . "~/colin/org/bibnotes.org::#%s") ("botes" . "~/colin/org/baznotes.org::#%s") ("papers" . "~/public_html/private/refs/%s.*") ("images" . "~/public_html/private/heraldry/db/images/%s.jpg")) message "Message: End loading org-mode applications, images, reftex ..." "Message: Begin loading org-mode export & publishing settings ..." dvipng t require ox-html ox-latex ox-ascii ox-bibtex "/home/redknight/local/bin/bibtex2html -nobibsource -nolinks -noabstract -nokeywords -nodoi" nil ("pdflatex -interaction nonstopmode -shell-escape -output-directory %o %f" "bibtex $(basename %b)" "pdflatex -interaction nonstopmode -shell-escape -output-directory %o %f" "pdflatex -interaction nonstopmode -shell-escape -output-directory %o %f" "bibtex $(basename %b)" "pdflatex -interaction nonstopmode -shell-escape -output-directory %o %f" "pdflatex -interaction nonstopmode -shell-escape -output-directory %o %f")] 2) - snip --- Colin.