Re: [O] PATCH: Fix malformed message links produced by org-mac-link.el
On 2014-09-24 20:56, Steve Purcell st...@sanityinc.com writes: On 24 Sep 2014, at 20:01, Alan Schmitt alan.schm...@polytechnique.org wrote: This was the case here: the string returned by the AppleScript had quotes (and it still does). For instance, with the message you mention, the call to org-as-get-selected-mail returns this (doing a debug): Result: \message://2.b2af716655bbac583727@NY-WEB01::split::Private beta invitation for Emacs QA site - Area 51 - Stack Exchange\”” I definitely don’t get quotes in the result of org-as-get-selected-mail. … Not sure how to proceed, then… It seems that the difference is with getting quotes or not. How about changing org-as-get-selected-mail to make sure there is no quote? We could for instance test whether the first and last characters are quotes, and remove them if they are. Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 signature.asc Description: PGP signature
Re: [O] PATCH: org-mac-link.el: Don't fail on machines without Growl installed
On 2014-09-24 20:59, Steve Purcell st...@sanityinc.com writes: On 24 Sep 2014, at 20:13, Alan Schmitt alan.schm...@polytechnique.org wrote: tell application System Events set growlHelpers to the name of every process whose creator type contains GRRR if (count of growlHelpers) 0 then set growlHelperApp to item 1 of growlHelpers else set growlHelperApp to end if end tell I get an empty string as returned value. Is is the same for you? Yes, that part works fine on its own even on my machine. But when the code passed to AppleScript includes 'tell application “GrowlHelperApp”’, then the code will not execute unless the app is present — there’s a precompilation step where, presumably, AppleScript determines that the target application supports the listed commands. I see. I agree this should be removed. Org maintainers: can I apply this patch? Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 signature.asc Description: PGP signature
[O] Editing Org-mode syntax in a web-browser (textarea)?
Hi List, this question is explicitly *not* about popping up an emacsclient instance from firefox or chrome to edit an html textarea in Emacs. And its *not* about emacs-w3m or eww. I'm rather interested if there is something like Ymacs (http://www.ymacs.org/) , | Ymacs is an Emacs-like editor that works in your browser. Currently | (starting with tag v0.4 in the code repository) it works in recent | versions of Firefox (and other Gecko-based browsers), Google Chrome | and Apple Safari. ` that supports Org syntax too? I saw Org-mode mentioned in the context of Codemirror, but its not in its language list (http://codemirror.net/mode/index.html). Both of these browser editors are of course extensible, and since they support markdown, maybe creating an extension for org-mode would not be so hard, but I would like to know if there already exist some useful browser editing tools for Org syntax out there? -- cheers, Thorsten
[O] How to invoke org-export externally from outside Emacs
Dear list, I am using org-mode more and more everyday, congrats to the community for such a great program!! I would like to automate the generation of PDF/HTML/ODT... thorough a command line with a makefile. Something like: file.pdf: file.org generation_command_here Is there a way to externally launch, let's say org-latex-export-to-pdf from outside Emacs?. Maybe through a script. Probably this is more an Emacs-list question than an org-mode one but any suggestion here will be welcome. Cheers and thanks in advance for any suggestion. Miguel -- (O-O) ---oOO-(_)-OOo--- Miguel TELLERIA DE ESTEBAN http://www.mtelleria.com Email: miguel at mtelleria.comMiembro de: http://www.linuca.org Membre du: http://www.bxlug.be ¿Usuario captivo o libre? http://www.whylinuxisbetter.net/index_es.php Free or captive user?http://www.whylinuxisbetter.net - signature.asc Description: PGP signature
Re: [O] How to invoke org-export externally from outside Emacs
On Thu, Sep 25, 2014 at 10:56:26AM +0200, Miguel Telleria de Esteban wrote: Dear list, I am using org-mode more and more everyday, congrats to the community for such a great program!! I would like to automate the generation of PDF/HTML/ODT... thorough a command line with a makefile. Something like: file.pdf: file.org generation_command_here Is there a way to externally launch, let's say org-latex-export-to-pdf from outside Emacs?. Maybe through a script. Probably this is more an Emacs-list question than an org-mode one but any suggestion here will be welcome. Cheers and thanks in advance for any suggestion. Miguel I use a Makefile to export to latex, then I use pdflatex to compile the final version. Org does the same thing if you ask it to go straight to PDF, but this lets me include my revision number. This also launches my pdf viewer (xpdf), and works for every .org file in the directory. Makefile: -- .PHONY: all clean OBJS := $(patsubst %.org, %.pdf, $(wildcard *.org)) CRAP := $(patsubst %.org, %.pdf, $(wildcard *.org)) CRAP += $(patsubst %.org, %.aux, $(wildcard *.org)) CRAP += $(patsubst %.org, %.log, $(wildcard *.org)) CRAP += $(patsubst %.org, %.out, $(wildcard *.org)) CRAP += $(patsubst %.org, %.toc, $(wildcard *.org)) all: $(OBJS) clean: rm -f $(CRAP) %.tex: %.org emacs -batch \ -load ~/.emacs \ --eval '(setq enable-local-variables :all)' \ --visit=$ \ -f org-export-as-latex \ %.pdf: %.tex pdflatex \\def\\Revision {`bzr version-info --custom --template=\{revno}\ $`} \\input{$} pdflatex \\def\\Revision {`bzr version-info --custom --template=\{revno}\ $`} \\input{$} xpdf $@ -- -- 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] How to invoke org-export externally from outside Emacs
Thanks Russel, this is exactly what I was looking for!! Miguel On Thu, 25 Sep 2014 04:01:24 -0500 Russell Adams wrote: On Thu, Sep 25, 2014 at 10:56:26AM +0200, Miguel Telleria de Esteban wrote: Dear list, I am using org-mode more and more everyday, congrats to the community for such a great program!! I would like to automate the generation of PDF/HTML/ODT... thorough a command line with a makefile. Something like: file.pdf: file.org generation_command_here Is there a way to externally launch, let's say org-latex-export-to-pdf from outside Emacs?. Maybe through a script. Probably this is more an Emacs-list question than an org-mode one but any suggestion here will be welcome. Cheers and thanks in advance for any suggestion. Miguel I use a Makefile to export to latex, then I use pdflatex to compile the final version. Org does the same thing if you ask it to go straight to PDF, but this lets me include my revision number. This also launches my pdf viewer (xpdf), and works for every .org file in the directory. Makefile: -- .PHONY: all clean OBJS := $(patsubst %.org, %.pdf, $(wildcard *.org)) CRAP := $(patsubst %.org, %.pdf, $(wildcard *.org)) CRAP += $(patsubst %.org, %.aux, $(wildcard *.org)) CRAP += $(patsubst %.org, %.log, $(wildcard *.org)) CRAP += $(patsubst %.org, %.out, $(wildcard *.org)) CRAP += $(patsubst %.org, %.toc, $(wildcard *.org)) all: $(OBJS) clean: rm -f $(CRAP) %.tex: %.org emacs -batch \ -load ~/.emacs \ --eval '(setq enable-local-variables :all)' \ --visit=$ \ -f org-export-as-latex \ %.pdf: %.tex pdflatex \\def\\Revision {`bzr version-info --custom --template=\{revno}\ $`} \\input{$} pdflatex \\def\\Revision {`bzr version-info --custom --template=\{revno}\ $`} \\input{$} xpdf $@ -- -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 -- (O-O) ---oOO-(_)-OOo--- Miguel TELLERIA DE ESTEBAN http://www.mtelleria.com Email: miguel at mtelleria.comMiembro de: http://www.linuca.org Membre du: http://www.bxlug.be ¿Usuario captivo o libre? http://www.whylinuxisbetter.net/index_es.php Free or captive user?http://www.whylinuxisbetter.net - signature.asc Description: PGP signature
[O] Fwd: Cooperating with oneself using the cloud?
Christoph: I'm more pragmatic. Obfuscated code or not, it works better than any other Linux cloud storage system i've used. So far my solution has allowed me to maintain a reasonably good pan system (and OS) emacs and org configuration. Dropbox also 'versions' the encrypted files, so i can restore them if i need them, which has proven handy. The killer feature for me is that once i set it up, i do not have to fiddle with it. No git pulls, pushes, merges or whatever, dropbox does that for me. If someone has an open *reliable* equivalent solution then I might switch? Will, I have no instructions per-se. I did consider git, using git-annexe or similar tool, but the pre-internet encryption i require does not easily happen out of the box. If you are only syncing between your own git servers though and do not care so much file level encryption git-annexe a remarkable tool. I still cannot get my head around how it works (symlinks galore!) but it seems ideal for personal sync (but not to github). This is the nearest thing i've seen to dropbox. https://git-annex.branchable.com/ Worth mentioning too is flashbake. This will auto commit your changes with notes in the commit messages like what mp3 you were listening to and pages you were browsing at the time of the commit. IIRC you would have to do the pushing and pulling, but if like me, you are always too busy or forgetting to commit and push your org files before you switch systems, this might help. https://github.com/commandline/flashbake/wiki Tim. On 24 September 2014 17:42, Christoph Groth christ...@grothesque.org wrote: Tim O'Callaghan wrote: I collaborate with myself via dropbox and encfs. encfs does the encryption, (via an encrypted fuse filesystem) and dropbox syncs the encrypted files. That might be a perfect solution if the dropbox client wasn’t the obfuscated piece of closed code it is. I actually wonder why they don’t make the client free software. If their service is well-designed, security shouldn’t depend on this. Is there so much valuable code in there? Github is tremendously successful with a free client (and, regrettably, closed server-side software). Christoph
Re: [O] Exporter dispatcher bug?
Brady and Charles and all, Thanks for your suggestions. The following is rather long-winded. Charles Berry wrote: Brady Trainor algebrat at uw.edu writes: Charles Millar millarc at verizon.net writes: Brady Trainor wrote: Charles Millar millarc at verizon.net writes: Today, using C-c C-e, the dispatcher shows only the LaTeX and Publisher options. What is the result C-h v org-export-backends? -- snip -- Its value is (ascii html icalendar latex) -- snip -- Charlie Looks normal! Wild guess, had to try :) I think you want to check (mapcar 'org-export-backend-name org-export--registered-backends) to see what backends are actually available to the export dispatcher. and (mapcar 'org-export-backend-menu org-export--registered-backends) to see what menu options should be there. HTH, Chuck I found (mapcar 'org-export-backend-menu org-export--registered-backends); however (mapcar 'org-export-backend-name org-export--registered-backends) does not exist in my ox.el. On my Linux learning machine (Jessie, same org version) the dispatcher is fine. However there appears to be no (mapcar 'org-export-backend-name org-export--registered-backends) In the meantime, I did my regular org update and still have the same problem. The dispatcher (on my Vista machine) shows the toggled options at the top and bottom. In between the LaTeX and Publish backends with options are shown, but no others. (There has not been a problem with the toggled options) So I did M-x org-export-to-[tab] which gave Possible completions are: org-ascii-export-to-ascii org-beamer-export-to-latex org-beamer-export-to-pdf org-bibtex-export-to-kill-ring org-html-export-to-html org-icalendar-export-to-ics org-latex-export-to-latex org-latex-export-to-pdf org-md-export-to-markdown org-odt-export-to-odt org-org-export-to-org I decided to choose ascii, which reported an export to a txt file (did not check it out). After that the ascii backend had been loaded into the dispatcher as well as the LaTeX and Publish. I did a M-x org-export-to-html, which reported an export to html; the dispatcher now had ascii, html, LaTeX and Publish Org-mode version 8.3beta (release_8.3beta-400-g200eeb @ c:/cygwin/home/Charlie01/.elisp/org-mode/lisp/) GNU Emacs 24.3.1 (i386-mingw-nt6.0.6002) of 2013-03-17 on MARVIN Charlie --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Re: [O] Fwd: Cooperating with oneself using the cloud?
Thanks so much for your reply, Tim. git-annex does seem like a possibility for syncing org-mode files but it appears that there's a lot to consider when setting it up. To be honest, Dropbox works fine *most* of the time for me. But during those times when it doesn't, I find myself waiting for long periods for org files to sync. I'd like to separate the syncing process for these files, which are essential to my daily workflow, and the rest of what I keep in Dropbox. Thanks again, Will On 9/25/14, 7:10 AM, Tim O'Callaghan wrote: Christoph: I'm more pragmatic. Obfuscated code or not, it works better than any other Linux cloud storage system i've used. So far my solution has allowed me to maintain a reasonably good pan system (and OS) emacs and org configuration. Dropbox also 'versions' the encrypted files, so i can restore them if i need them, which has proven handy. The killer feature for me is that once i set it up, i do not have to fiddle with it. No git pulls, pushes, merges or whatever, dropbox does that for me. If someone has an open *reliable* equivalent solution then I might switch? Will, I have no instructions per-se. I did consider git, using git-annexe or similar tool, but the pre-internet encryption i require does not easily happen out of the box. If you are only syncing between your own git servers though and do not care so much file level encryption git-annexe a remarkable tool. I still cannot get my head around how it works (symlinks galore!) but it seems ideal for personal sync (but not to github). This is the nearest thing i've seen to dropbox. https://git-annex.branchable.com/ Worth mentioning too is flashbake. This will auto commit your changes with notes in the commit messages like what mp3 you were listening to and pages you were browsing at the time of the commit. IIRC you would have to do the pushing and pulling, but if like me, you are always too busy or forgetting to commit and push your org files before you switch systems, this might help. https://github.com/commandline/flashbake/wiki Tim. On 24 September 2014 17:42, Christoph Groth christ...@grothesque.org wrote: Tim O'Callaghan wrote: I collaborate with myself via dropbox and encfs. encfs does the encryption, (via an encrypted fuse filesystem) and dropbox syncs the encrypted files. That might be a perfect solution if the dropbox client wasn’t the obfuscated piece of closed code it is. I actually wonder why they don’t make the client free software. If their service is well-designed, security shouldn’t depend on this. Is there so much valuable code in there? Github is tremendously successful with a free client (and, regrettably, closed server-side software). Christoph
Re: [O] Fwd: Cooperating with oneself using the cloud?
Monroe, Will wtmonroe...@gmail.com writes: Thanks so much for your reply, Tim. git-annex does seem like a possibility for syncing org-mode files but it appears that there's a lot to consider when setting it up. This thread prompted me last weekend to try git-annex via its assistant. It was pretty painless to set up hosts where I could run a local web browser. I was also able to easily set up a remote annex on a headless git/SSH server via the web app. I followed this: http://git-annex.branchable.com/assistant/quickstart/ -Brett. pgpuwO89OFSzn.pgp Description: PGP signature
Re: [O] [ANN] Merge export-block type within special-block
I found this was fixed on both maint and master branch :) Thanks for all your works, but would you tell us how did you do it? or give the commit id? (Sorry I did not find it by myself...) Thank you very much. On Sun, Aug 31, 2014 at 8:56 PM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Hello, KDr2 killy.d...@gmail.com writes: This is nice, but it brought a bug, `[N]' in HTML block is recognized as footnote, e.g.: #+BEGIN_HTML ONE[1] script console.log(v1[0]); /script #+END_HTML There are two footnotes in the generated HTML. Would you fix this please? Unfortunately, no, I cannot fix it. The problem is even deeper. Indeed, my approach is fundamentally wrong: it is impossible to postpone choosing between parsed or raw data at export time. This information must be obtained at parsing time. Yet, I think syntax should not depend on the libraries loaded. So the initial problem still needs a solution. Special blocks and export blocks are just too similar. We could make them slightly different. One solution is to mark explicitly blocks meant to insert raw code. E.g., #+BEGIN_SOMETHING :special t ... #+END_SOMETHING vs #+BEGIN_SOMETHING ... #+END_SOMETHING In the first case contents would be parsed and the block treated as a special block (i.e. depending on the back-end) whereas in the second case, contents would be inserted as-is in the buffer, provided target export back-ends accepts data from SOMETHING blocks (IOW SOMETHING = LATEX if ox-latex is used). This is clearly not backward-compatible. But it only modifies syntax for special blocks, which, I guess, are much less used than their cousins, export blocks. The :special t may be shorter, too. Cc'ing Bastien for his opinion. Regards, -- Nicolas Goaziou -- -- KDr2, http://kdr2.com
Re: [O] Exporter dispatcher bug?
On Thu, 25 Sep 2014, Charles Millar wrote: Brady and Charles and all, Thanks for your suggestions. The following is rather long-winded. Charles Berry wrote: Brady Trainor algebrat at uw.edu writes: Charles Millar millarc at verizon.net writes: Brady Trainor wrote: Charles Millar millarc at verizon.net writes: Today, using C-c C-e, the dispatcher shows only the LaTeX and Publisher options. [snip] I think you want to check (mapcar 'org-export-backend-name org-export--registered-backends) to see what backends are actually available to the export dispatcher. On my Linux learning machine (Jessie, same org version) the dispatcher is fine. However there appears to be no (mapcar 'org-export-backend-name org-export--registered-backends) What I meant was: You should eval (mapcar 'org-export-backend-name org-export--registered-backends) to see what backends are available to the dispatcher. If you copy that line into an emacs buffer (like *scratch*), put point after it and type C-x C-e, you will see the backend names listed in the minibuffer and the *Messages* buffer. This list *ought to* correspond to `org-export-backends'. If it does not there is a hiccup or unusual customization in your setup - more digging might be needed. If it does correspond, then use the customize menu to reset `org-export-backends' to your desired value and save the change as you need it. HTH, Chuck
Re: [O] Exporter dispatcher bug?
What I meant was: You should eval (mapcar 'org-export-backend-name org-export--registered-backends) to see what backends are available to the dispatcher. If you copy that line into an emacs buffer (like *scratch*), put point after it and type C-x C-e, you will see the backend names listed in the minibuffer and the *Messages* buffer. Same results as C-c C-e; only LaTeX and Publish are listed. This list *ought to* correspond to `org-export-backends'. If it does not there is a hiccup or unusual customization in your setup - more digging might be needed. I suspect my set up and perhaps more specifically a Cygwin problem. I update org via Cygwin. Just before receiving your most recent reply I commented out everything in my .emacs/init.el file, except for (add-to-list 'load-path c:/cygwin/home/Charlie01/.elisp/org-mode/lisp) (add-to-list 'load-path c:/cygwin/home/Charlie01/.elisp/org-mode/contrib/lisp) Instead of just eval-buffer, i restarted emacs. C-c C-e only listed Publisher, not even LaTeX If it does correspond, then use the customize menu to reset `org-export-backends' to your desired value and save the change as you need it. will give it a try. HTH, Chuck Thanks, Charlie --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Re: [O] column view uses non-existent org-whitespace face
Hi Eric On Tue, Aug 5, 2014 at 4:53 AM, Eric Abrahamsen e...@ericabrahamsen.net wrote: 2. The text for %ITEM has the face org-whitespace applied to the leading stars, which doesn't exist anymore. I assume the intended effect was that the stars take up space, emulating indentation, but not themselves be visible. I guess that would be done by replacing the org-whitespace face with whatever's being used as the column background color but I don't know enough about faces to make that work. I also tried switching 'org-whitespace to 'invisible, but that didn't do anything. This is in org-columns-cleanup-item. [...] The second would be nice to resolve -- it's ugly! Same here. I just tried to hide the leading stars in column view by shifting the beginning of the overlay to the right in `org-columns-new-overlay' with (let ((ov (make-overlay (if org-hide-leading-stars (+ beg (org-current-level) -1) beg) end))) but this trial seems to have several issues and I don't know how to do it right. Michael
Re: [O] meaningfull names for org-src buffers
Hi, Grant Rettke g...@wisdomandwonder.com writes: On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker adriaan.stic...@gmail.com wrote: I was wondering if it's somehow possible to give named org src buffer the name they were give in their #+NAME tag? Now there are just called something like: *Org Src test.org[ R ]* But if you have multiple org-src buffers opened at the same time, its hard to find the correct one back. Excellent idea. I've got so many small source blocks that it is too difficult to make sense of keeping multiple source block edit buffers open and limit them to one at a time eg , | (setq org-src-window-setup 'current-window) ` How have you come upon your workflow of keeping multiple open and what are some of the pros and cons that you've found with it? I'd be interested in this as well. Regards, Andreas
Re: [O] How to invoke org-export externally from outside Emacs
Russell Adams wrote: On Thu, Sep 25, 2014 at 10:56:26AM +0200, Miguel Telleria de Esteban wrote: I am using org-mode more and more everyday, congrats to the community for such a great program!! I would like to automate the generation of PDF/HTML/ODT... thorough a command line with a makefile. Something like: file.pdf: file.org generation_command_here Is there a way to externally launch, let's say org-latex-export-to-pdf from outside Emacs?. Maybe through a script. Probably this is more an Emacs-list question than an org-mode one but any suggestion here will be welcome. Cheers and thanks in advance for any suggestion. I use a Makefile to export to latex, then I use pdflatex to compile the final version. Org does the same thing if you ask it to go straight to PDF, but this lets me include my revision number. This also launches my pdf viewer (xpdf), and works for every .org file in the directory. FWIW, I've written small standalone scripts (such as org2pdf, org2html, org2odt, etc.) to automate such tasks. If you're interested, have a look at https://github.com/fniessen/orgmk. Best regards, Fabrice -- Fabrice Niessen Leuven, Belgium http://www.pirilampo.org/
Re: [O] meaningfull names for org-src buffers
Hi Adriaan, Adriaan Sticker adriaan.stic...@gmail.com writes: Well, I ussually just try to live with this limitation. :) I try to C-c ' in and out src block whenever possible so my my list with buffer names doesnt get to cluttered. Im also thinking about investigating the usefullness of polymode (https://github.com/vitoshka/polymode) So I dont have to go to a different buffer all the time. Do you have any experience with this? I have finally looked into this some weeks back. And got emacs lock up. To quote from the author [fn:1]: , | The work on polymode got stuck a bit as Emacs folks strongly discourage | inderect buffer usage. So I will have to remove indirect buffers from | the picture. This will solve all the font-locking problems as the one | you have described. ` I am looking forward to testing any next version, though. Regards, Andreas Footnotes: [fn:1] http://article.gmane.org/gmane.emacs.ess.general/8342/match=polymode
Re: [O] autosave in org-src buffer only works ones
Hi Nicolas, Nicolas Goaziou m...@nicolasgoaziou.fr writes: Hello, Adriaan Sticker adriaan.stic...@gmail.com writes: I've the following in my init.el (setq org-edit-src-auto-save-idle-delay 5) If I open in my org file a R code block with C-c ', edit into the opened org-src buffer with the ESS major mode activated and wait for 5s, I can see autosave kicking in and my org buffer gets updated with my new code. But when I keep editing it doesn't save anymore. So it only save ones after the first 5s when the org-src got openend and then it stops. This should now be fixed. Thank you for reporting it. Just a second 'thanks'! Andreas
Re: [O] [ANN] org-bandbook - Professional Band Management for Computer Literate Musicians
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: Thorsten Jolitz tjol...@gmail.com writes: Hi List, see the attached ASCII version of org-bandbook.el's comment section for more info: ___ ORG-BANDBOOK Thorsten Jolitz tjol...@gmail.com ___ Ups, forgot to mention the core command ;) , | M-x org-bandbook-make-bandbook ` to produce the PDF. This sounds interesting (pun intended). I might be interested. Would you be able to provide an example to play with? Regards, Andreas
Re: [O] [ANN] org-bandbook - Professional Band Management for Computer Literate Musicians
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Andreas, Thorsten Jolitz tjol...@gmail.com writes: Thorsten Jolitz tjol...@gmail.com writes: Hi List, see the attached ASCII version of org-bandbook.el's comment section for more info: ___ ORG-BANDBOOK Thorsten Jolitz tjol...@gmail.com ___ Ups, forgot to mention the core command ;) , | M-x org-bandbook-make-bandbook ` to produce the PDF. This sounds interesting (pun intended). I might be interested. Would you be able to provide an example to play with? when you look at the github page , | https://github.com/tj64/org-bandbook ` you'll see these two examples: , | project-guitar-duo | project-massey-hall-1953 ` I cannot put a pdf online because the songs in these projects have copyrights, that would be asking for a lot of trouble. The whole thing is build around the directory structure, similar to java projects in eclipse or maven projects. So it makes no sense to just get the elisp sources, you actually need to clone the git repo. To try it out, you can then open the master.org file of an example project and call , | M-x org-bandbook-make-bandbook ` after loading /src/org-bandbook.el and dependendies (puml, org-dp) of course, you find them in my github repo: , | ;;; Requires | | (eval-when-compile (require 'cl)) | (require 'puml) | (require 'org-dp-lib) ` This should produce a pdf that looks 'alright' so far. But I think this has the potential to grow, since its just a perfect showcase for Org-mode's versatility and might meet a real demand. It works on my machine, would be interesting to see if it works for you too. PS For starting your own project, make a new git branch, and either rename one of the example projects or add another project-xyz directory. -- cheers, Thorsten
Re: [O] Editing Org-mode syntax in a web-browser (textarea)?
On 25/09/14 07:58, Thorsten Jolitz wrote: Hi List, this question is explicitly *not* about popping up an emacsclient instance from firefox or chrome to edit an html textarea in Emacs. And its *not* about emacs-w3m or eww. Not an answer to your question, but I sometimes use Stackedit: https://github.com/benweet/stackedit This can export to several backends, so maybe it could be adapted to export in org-mode, although editing in org-mode would be nicer! Ian.
Re: [O] Editing Org-mode syntax in a web-browser (textarea)?
Ian Barton li...@wilkesley.net writes: On 25/09/14 07:58, Thorsten Jolitz wrote: Hi List, this question is explicitly *not* about popping up an emacsclient instance from firefox or chrome to edit an html textarea in Emacs. And its *not* about emacs-w3m or eww. Not an answer to your question, but I sometimes use Stackedit: https://github.com/benweet/stackedit This can export to several backends, so maybe it could be adapted to export in org-mode, although editing in org-mode would be nicer! Nevertheless, this is interesting, thx. I'm not sure if I'm looking for a rich-text browser editor that exports to Org syntax, or rather for some tool that makes it more convenient to directly work with Org syntax in a browser textarea window. E.g. tables - nobody would use Org tables if every vertical and horizontal line/dash would need to be typed in manually ... thats just to tedious. I wonder if there is something browser-based that is still plain text oriented, but helps with input/editing like emacs. Of course emacsclient would be perfect for this, but assume its about 'normal' people who never heard of emacs and only have their browser with maybe a plugin. -- cheers, Thorsten
Re: [O] Editing Org-mode syntax in a web-browser (textarea)?
Thorsten Jolitz tjol...@gmail.com writes: Ian Barton li...@wilkesley.net writes: On 25/09/14 07:58, Thorsten Jolitz wrote: Hi List, this question is explicitly *not* about popping up an emacsclient instance from firefox or chrome to edit an html textarea in Emacs. And its *not* about emacs-w3m or eww. Not an answer to your question, but I sometimes use Stackedit: https://github.com/benweet/stackedit This can export to several backends, so maybe it could be adapted to export in org-mode, although editing in org-mode would be nicer! Nevertheless, this is interesting, thx. I'm not sure if I'm looking for a rich-text browser editor that exports to Org syntax, or rather for some tool that makes it more convenient to directly work with Org syntax in a browser textarea window. E.g. tables - nobody would use Org tables if every vertical and horizontal line/dash would need to be typed in manually ... thats just to tedious. I wonder if there is something browser-based that is still plain text oriented, but helps with input/editing like emacs. Of course emacsclient would be perfect for this, but assume its about 'normal' people who never heard of emacs and only have their browser with maybe a plugin. Actually, looking at https://github.com/benweet/stackedit, one possible workaround came to my mind, though it might be considered a bit heretical on this list: - Use Google Docs as a wide-spread online editor - Write an Google Docs addon to support Org syntax (possible? easy? hard? no idea ...) - Download the html of the doc - Use pandoc to convert the html to org I read that quite a few research institutions go for the Google Docs route to enable online collaboration between latex and non-latex users, and there are several tools that export to latex. -- cheers, Thorsten
[O] [help] need help with a skip function
Hi, I'm looking for an example org-agenda-skip-function that I can use to include all items for an agenda (IE alltodo) that have a certain property set (value doesn't particularly matter) IE: * TODO H1 :PROPERTIES: :P1: date :END: * TODO H2 :PROPERTIES: :END: So that H1 gets included, but H2 does not. I know, it's simple to do with a search-type agenda, but unfortunately a bug in sorting for inactive time stamps makes that route unsuitable for my purposes. Thanks! Subhan Subhan Michael Tindall Program Analyst - FamilyCare Health Plans 825 NE Multnomah St, Suite 1400; Portland OR 97232 Direct: 503-471-3127 Fax: 503-471-3177 Email: subh...@familycareinc.orgmailto:subh...@familycareinc.org [Email-Signature-Logos June 20143] This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you.
[O] Bug: Export to html inserts strange unicode characters at line breaks because of fci-mode [8.2.7c (8.2.7c-64-g01f736-elpa @ /home/kmodi/.emacs.d/elpa/org-20140915/)]
Hi all, I have fci-mode installed and enabled for programming modes. When org exports to html, htmlize figures out the syntax highlighting of the code by calling =(funcall lang-mode)=. That activates =fci-mode=. =fci-mode= shows the fill column using a unicode character. The issue is that org export to html exports that character as well. Those characters show up in html as below! http://i.imgur.com/8WplTqw.png So the solution is to fix the =orx-html-fontify-code= function. I have modified the function as below; my edits are just those 2 lines added to the function. The 2 lines simply check if fci-mode is installed. If installed it disables fci mode. Even if the package is not installed, no error will be raised. It will be great if this edit can be incorporated into the org source code. Thank you. (defun org-html-fontify-code (code lang) Color CODE with htmlize library. CODE is a string representing the source code to colorize. LANG is the language used for CODE, as a string, or nil. (when code (cond ;; Case 1: No lang. Possibly an example block. ((not lang) ;; Simple transcoding. (org-html-encode-plain-text code)) ;; Case 2: No htmlize or an inferior version of htmlize ((not (and (require 'htmlize nil t) (fboundp 'htmlize-region-for-paste))) ;; Emit a warning. (message Cannot fontify src block (htmlize.el = 1.34 required)) ;; Simple transcoding. (org-html-encode-plain-text code)) (t ;; Map language (setq lang (or (assoc-default lang org-src-lang-modes) lang)) (let* ((lang-mode (and lang (intern (format %s-mode lang) (cond ;; Case 1: Language is not associated with any Emacs mode ((not (functionp lang-mode)) ;; Simple transcoding. (org-html-encode-plain-text code)) ;; Case 2: Default. Fontify code. (t ;; htmlize (setq code (with-temp-buffer ;; Switch to language-specific mode. (funcall lang-mode) (when (require 'fill-column-indicator nil 'noerror) (fci-mode -1)) (insert code) ;; Fontify buffer. (font-lock-fontify-buffer) ;; Remove formatting on newline characters. (save-excursion (let ((beg (point-min)) (end (point-max))) (goto-char beg) (while (progn (end-of-line) ( (point) end)) (put-text-property (point) (1+ (point)) 'face nil) (forward-char 1 (org-src-mode) (set-buffer-modified-p nil) ;; Htmlize region. (org-html-htmlize-region-for-paste (point-min) (point-max ;; Strip any enclosing pre/pre tags. (let* ((beg (and (string-match \\`pre[^]*\n* code) (match-end 0))) (end (and beg (string-match /pre\\' code (if (and beg end) (substring code beg end) code) 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-mode mailing list. Emacs : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2014-01-21 Package: Org-mode version 8.2.7c (8.2.7c-64-g01f736-elpa @ /home/kmodi/.emacs.d/elpa/org-20140915/) current state: == (setq org-src-lang-modes '((dot . graphviz-dot) (systemverilog . verilog) (ocaml . tuareg) (elisp . emacs-lisp) (ditaa . artist) (asymptote . asy) (dot . fundamental) (sqlite . sql) (calc . fundamental) (C . c) (cpp . c++) (C++ . c++) (screen . shell-script)) org-hide-leading-stars t org-latex-default-figure-position H org-reveal-mathjax t org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) 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-html-format-drawer-function '(lambda (name contents) contents) org-log-done 'timestamp org-latex-minted-options '((linenos) (numbersep 5pt) (frame none) (framesep 2mm)) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-startup-folded 'showeverything org-latex-pdf-process '(xelatex -shell-escape %f xelatex -shell-escape %f xelatex -shell-escape %f) org-pretty-entities t org-use-sub-superscripts '{} org-export-with-sub-superscripts '{} org-return-follows-link t org-latex-format-headline-function 'org-latex-format-headline-default-function org-todo-keyword-faces '((TODO . org-warning) (SOMEDAY
Re: [O] meaningfull names for org-src buffers
Andreas Leha andreas.leha at med.uni-goettingen.de writes: Hi, Grant Rettke gcr at wisdomandwonder.com writes: On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker adriaan.sticker at gmail.com wrote: I was wondering if it's somehow possible to give named org src buffer the name they were give in their #+NAME tag? Now there are just called something like: *Org Src test.org[ R ]* But if you have multiple org-src buffers opened at the same time, its hard to find the correct one back. Excellent idea. I've got so many small source blocks that it is too difficult to make sense of keeping multiple source block edit buffers open and limit them to one at a time eg , | (setq org-src-window-setup 'current-window) ` How have you come upon your workflow of keeping multiple open and what are some of the pros and cons that you've found with it? I'd be interested in this as well. Regards, Andreas Maybe I am answering the wrong question, but org-edit-src-code allows you to specify the buffer name: ,[ C-h f org-edit-src-code RET ] | org-edit-src-code is an interactive compiled Lisp function in | `org-src.el'. | | (org-edit-src-code optional CONTEXT CODE EDIT-BUFFER-NAME) | | ... ` So you can do something like this: #+BEGIN_SRC emacs-lisp (defun org-edit-src-code-plus-name () (interactive) (let* ((eop (org-element-at-point)) (name (or (org-element-property :name (org-element-context eop)) unnamed)) (lang (org-element-property :language eop)) (buff-name (concat *Org Src name [ lang ] *))) (org-edit-src-code nil nil buff-name))) #+END_SRC which leads to a buffer named like *Org Src My-block[ R ] *, where 'My-block' is the name of the src block. HTH, Chuck
Re: [O] meaningfull names for org-src buffers
Hi Charles, Charles Berry ccbe...@ucsd.edu writes: Andreas Leha andreas.leha at med.uni-goettingen.de writes: Hi, Grant Rettke gcr at wisdomandwonder.com writes: On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker adriaan.sticker at gmail.com wrote: I was wondering if it's somehow possible to give named org src buffer the name they were give in their #+NAME tag? Now there are just called something like: *Org Src test.org[ R ]* But if you have multiple org-src buffers opened at the same time, its hard to find the correct one back. Excellent idea. I've got so many small source blocks that it is too difficult to make sense of keeping multiple source block edit buffers open and limit them to one at a time eg , | (setq org-src-window-setup 'current-window) ` How have you come upon your workflow of keeping multiple open and what are some of the pros and cons that you've found with it? I'd be interested in this as well. Regards, Andreas Maybe I am answering the wrong question, but org-edit-src-code allows you to specify the buffer name: You are answering my exact question. ,[ C-h f org-edit-src-code RET ] | org-edit-src-code is an interactive compiled Lisp function in | `org-src.el'. | | (org-edit-src-code optional CONTEXT CODE EDIT-BUFFER-NAME) | | ... ` So you can do something like this: #+BEGIN_SRC emacs-lisp (defun org-edit-src-code-plus-name () (interactive) (let* ((eop (org-element-at-point)) (name (or (org-element-property :name (org-element-context eop)) unnamed)) (lang (org-element-property :language eop)) (buff-name (concat *Org Src name [ lang ] *))) (org-edit-src-code nil nil buff-name))) #+END_SRC which leads to a buffer named like *Org Src My-block[ R ] *, where 'My-block' is the name of the src block. Thanks! On my first quick tests that works great! It is in my initialization and I'll use that regularly. Is there any drawback to this? Otherwise I'd advocate for org-edit-src-code doing that by default. HTH, It sure does. Thanks, Andreas
[O] How to get the link the point is on?
Hi list, my question is as in subject. It is done by org-open-at-point (somehow), but the logic seems to be buried in that function. What I'd like to have is a function that would just extract the link portion (which is normally invisible) and displayed it in the echo area (something like hovering over a link in a web browser). I skimmed through org.el, and either I couldn't find a function which does it, or this email is a feature request;). TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
Re: [O] How to get the link the point is on?
Marcin Borkowski mb...@wmi.amu.edu.pl writes: Hi list, my question is as in subject. It is done by org-open-at-point (somehow), but the logic seems to be buried in that function. What I'd like to have is a function that would just extract the link portion (which is normally invisible) and displayed it in the echo area (something like hovering over a link in a web browser). I skimmed through org.el, and either I couldn't find a function which does it, or this email is a feature request;). If point is on a link you can (org-element-property :raw-link (org-element-context)) Hope it helps, Rasmus -- May the Force be with you
Re: [O] How to get the link the point is on?
Marcin Borkowski mb...@wmi.amu.edu.pl wrote: [...] What I'd like to have is a function that would just extract the link portion (which is normally invisible) and displayed it in the echo area (something like hovering over a link in a web browser). There may be a better way, but I think below does what you want. #+begin_src elisp (defun org-display-link () (interactive) (message %s (org-element-property :raw-link (org-element-context #+end_src -- Kyle
Re: [O] How to get the link the point is on?
Marcin Borkowski writes: Hi list, my question is as in subject. It is done by org-open-at-point (somehow), but the logic seems to be buried in that function. What I'd like to have is a function that would just extract the link portion (which is normally invisible) and displayed it in the echo area (something like hovering over a link in a web browser). This returns the link at the line, it assumes one link per line: #+BEGIN_SRC emacs-lisp (defun test () (save-excursion (move-beginning-of-line 1) (if (search-forward-regexp org-any-link-re (line-end-position) t) (let* ((complete-link (match-string 0)) (last-place (string-match \\] complete-link))) (substring-no-properties complete-link 2 last-place #+END_SRC Best, -- Jorge.
Re: [O] How to get the link the point is on?
Marcin Borkowski mb...@wmi.amu.edu.pl writes: Hi list, my question is as in subject. It is done by org-open-at-point (somehow), but the logic seems to be buried in that function. What I'd like to have is a function that would just extract the link portion (which is normally invisible) and displayed it in the echo area (something like hovering over a link in a web browser). I skimmed through org.el, and either I couldn't find a function which does it, or this email is a feature request;). you know about ,[ C-h f org-toggle-link-display RET ] | org-toggle-link-display is an interactive compiled Lisp function in | `org.el'. | | It is bound to menu-bar Org Hyperlinks Descriptive Links, | menu-bar Org Hyperlinks Literal Links. | | (org-toggle-link-display) | | Toggle the literal or descriptive display of links. ` ? -- cheers, Thorsten
Re: [O] #+INCLUDE: myfile.html html does not include /literally/; Org processes
Hello, Apologies for waking up this old thread. But is this feature, for which Achim proposed a patch early on, going to be included in the Org mode? As of Org-mode version 8.2.7c (8.2.7c-71-g60418c-elpa) #+INCLUDE: myfile.html html still does not do a literal include. The last discussion I saw of it was https://lists.gnu.org/archive/html/emacs-orgmode/2014-06/msg00028.html In any case, could you (Achim Gratz) please share with us the final patch that you and Nicolas Goaziou agreed upon? Thanks, -- Omid GPG: 0x371DC12B (see https://u.fsf.org/yw)
Re: [O] How to get the link the point is on?
On 2014-09-25, at 23:50, Thorsten Jolitz wrote: Marcin Borkowski mb...@wmi.amu.edu.pl writes: Hi list, my question is as in subject. It is done by org-open-at-point (somehow), but the logic seems to be buried in that function. What I'd like to have is a function that would just extract the link portion (which is normally invisible) and displayed it in the echo area (something like hovering over a link in a web browser). I skimmed through org.el, and either I couldn't find a function which does it, or this email is a feature request;). you know about ,[ C-h f org-toggle-link-display RET ] | org-toggle-link-display is an interactive compiled Lisp function in | `org.el'. | | It is bound to menu-bar Org Hyperlinks Descriptive Links, | menu-bar Org Hyperlinks Literal Links. | | (org-toggle-link-display) | | Toggle the literal or descriptive display of links. ` ? Yes, I do, but this is not what I'm looking for. I want to see the `descriptive' links, only to be able (sometimes) to look up the actual target of the link. (And I don't like the idea of moving the point to the end, pressing backspace to delete the rightmost bracket, and then pressing C-\ to undo it...) Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
[O] [PATCH] ox.el: Fix typo in documentation
This patch fixes a small (but meaning-changing) typo. Thanks, Kyle From bf36c45322dda557d8d3057a85d7f2bd00dccc8c Mon Sep 17 00:00:00 2001 From: Kyle Meyer k...@kyleam.com Date: Thu, 25 Sep 2014 19:11:33 -0400 Subject: [PATCH] ox.el: Fix typo in documentation * lisp/ox.el (org-export-show-temporary-export-buffer): Fix typo. TINYCHANGE --- lisp/ox.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox.el b/lisp/ox.el index f01f951..59091fc 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -833,7 +833,7 @@ This variable can be either set to `buffer' or `subtree'. (defcustom org-export-show-temporary-export-buffer t Non-nil means show buffer after exporting to temp buffer. -When Org exports to a file, the buffer visiting that file is ever +When Org exports to a file, the buffer visiting that file is never shown, but remains buried. However, when exporting to a temporary buffer, that buffer is popped up in a second window. When this variable is nil, the buffer remains buried also in -- 2.1.0
Re: [O] How to get the link the point is on?
Rasmus writes: If point is on a link you can (org-element-property :raw-link (org-element-context)) That's way easier =) -- Jorge.
Re: [O] Bug: Export to html inserts strange unicode characters at line breaks because of fci-mode [8.2.7c (8.2.7c-64-g01f736-elpa @ /home/kmodi/.emacs.d/elpa/org-20140915/)]
Works perfectly on this: ╭ │ (print emacs-version) │ (print org-version) ╰ ╭ │ 24.3.1 │ │ 8.2.7c ╰
Re: [O] Bug: Export to html inserts strange unicode characters at line breaks because of fci-mode [8.2.7c (8.2.7c-64-g01f736-elpa @ /home/kmodi/.emacs.d/elpa/org-20140915/)]
Yes. I faced the issue here: https://github.com/alpaker/Fill-Column-Indicator/issues/45 On Thu, Sep 25, 2014 at 6:58 PM, Kaushal kaushal.m...@gmail.com wrote: Do you mean that the fix works perfectly? Thanks. -- Kaushal Modi On Sep 25, 2014 7:55 PM, Grant Rettke g...@wisdomandwonder.com wrote: Works perfectly on this: ╭ │ (print emacs-version) │ (print org-version) ╰ ╭ │ 24.3.1 │ │ 8.2.7c ╰ -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
Re: [O] Bug: Export to html inserts strange unicode characters at line breaks because of fci-mode [8.2.7c (8.2.7c-64-g01f736-elpa @ /home/kmodi/.emacs.d/elpa/org-20140915/)]
Do you mean that the fix works perfectly? Thanks. -- Kaushal Modi On Sep 25, 2014 7:55 PM, Grant Rettke g...@wisdomandwonder.com wrote: Works perfectly on this: ╭ │ (print emacs-version) │ (print org-version) ╰ ╭ │ 24.3.1 │ │ 8.2.7c ╰
Re: [O] ob-R, about :results value verbatim drawer
On Wed, Sep 24, 2014 at 2:52 AM, Rainer M Krug rai...@krugs.de wrote: would there be interest in pursuing this? Yes. I'm interested in working with other serious babel users to pool our efforts, provide a meaningful contribution, and do it in a way that works best for the maintainers.
Re: [O] Bug: Export to html inserts strange unicode characters at line breaks because of fci-mode [8.2.7c (8.2.7c-64-g01f736-elpa @ /home/kmodi/.emacs.d/elpa/org-20140915/)]
Grant Rettke g...@wisdomandwonder.com writes: Yes. I faced the issue here: https://github.com/alpaker/Fill-Column-Indicator/issues/45 I don't use fci-mode, but have a long-standing problem with underscores _ that once in a while appear almost randomly in html output that is returned when calling emacsclient on the command-line (to export an org file). This is really annoying, but also really hard to hunt down. There is nothing in the exported Org buffer that seems to cause this underscore, at least I see nothing special in the place where it appears, not even with whitespace-mode on. Could it be related to Org's export? Or rather to emacsclient first converting whitespace to _ underscores and then underscores to whitespace again ... and maybe missing an underscore sometimes (if I understand the C sources correctly)? I think I asked about this problem at least 2 times already (on Emacs help too), but it seems nobody knows what this might be about. Maybe related to the topic of this thread? -- cheers, Thorsten