Re: [O] [babel] cannot comment out noweb references
Try with: (setq org-babel-use-quick-and-dirty-noweb-expansion t) This setting is much, much faster, by the way. On 2/5/14, Eric Schulte wrote: > Samuel Wales writes: > >> hi eric, >> >> #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever >> a >> #+END_SRC >> # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever >> # b >> # #+END_SRC >> #+BEGIN_SRC sh :results output :noweb yes >> echo <> >> #+END_SRC >> >> it is a bug that babel tries to use b. >> >> babel tries to use COMMENT comments also. >> >> samuel > > When executing the last code block I get the expected output, namely > "a". > > #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever > a > #+END_SRC > > # #+BEGIN_SRC org :results verbatim output :noweb yes :noweb-ref whatever > # b > # #+END_SRC > > #+BEGIN_SRC sh :results output :noweb yes > echo <> > #+END_SRC > > #+RESULTS: > : a > > Best, > > -- > Eric Schulte > https://cs.unm.edu/~eschulte > PGP: 0x614CA05D > -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.
Re: [O] mis-alignment in org-tables with Tibetan characters
Ah yes, this won't work if your font draws characters at variable widths. I use Chinese a lot, and some Chinese fonts will still create misalignment, simply because a Chinese character as drawn as 192% the width of an ascii character. Dunno how to get around that. On 02/11/14 10:50 AM, Steffan Iverson wrote: > Thanks Eric - I've used this patch but I doesn't seem to solve the > problem. I'm working on an earlier suggestion by Michael about the > unicode type that my Tibetan font is. I very much appreciate all this > help! > > Steffan > > > On Sun, Feb 9, 2014 at 8:09 PM, Eric Abrahamsen < > e...@ericabrahamsen.net> wrote: > > Bastien writes: > > > Eric Abrahamsen writes: > > > >> I've been using that patch or something like it for nearly a > year now, > >> with no adverse effects. I'm on the road right now, give me a > day and > >> I'll take a closer look at what I've got... > > > > Great -- thanks in advance! I'll then wait before releasing a > new > > minor version and merging it into Emacs for Emacs 24.4. > > > > To other core maintainers: if you see important issues that > needs to > > be fixed in maint, let me know. > > Sorry this took a while to get to... > > I think it was a little simpler than I thought -- at least I hope > that's > true, and I'm not missing something really obvious. There are two > patches attached, a simple one that handles re-justification of > table > fields during field movement, and another that allows for > narrowing of > columns with double-width strings. The second patch is uglier, > and > doesn't work 100% well (you get misalignment if you try to narrow > a > double-wide to an odd number of single-width characters), but > it's > better than nothing. > > Please test! > > Eric >
Re: [O] mis-alignment in org-tables with Tibetan characters
Thanks Eric - I've used this patch but I doesn't seem to solve the problem. I'm working on an earlier suggestion by Michael about the unicode type that my Tibetan font is. I very much appreciate all this help! Steffan On Sun, Feb 9, 2014 at 8:09 PM, Eric Abrahamsen wrote: > Bastien writes: > > > Eric Abrahamsen writes: > > > >> I've been using that patch or something like it for nearly a year now, > >> with no adverse effects. I'm on the road right now, give me a day and > >> I'll take a closer look at what I've got... > > > > Great -- thanks in advance! I'll then wait before releasing a new > > minor version and merging it into Emacs for Emacs 24.4. > > > > To other core maintainers: if you see important issues that needs to > > be fixed in maint, let me know. > > Sorry this took a while to get to... > > I think it was a little simpler than I thought -- at least I hope that's > true, and I'm not missing something really obvious. There are two > patches attached, a simple one that handles re-justification of table > fields during field movement, and another that allows for narrowing of > columns with double-width strings. The second patch is uglier, and > doesn't work 100% well (you get misalignment if you try to narrow a > double-wide to an odd number of single-width characters), but it's > better than nothing. > > Please test! > > Eric > >
[O] terminal emulators (was: Re: Proposal for rebindings in Org 8.3)
Hi Achim, * Achim Gratz [10. Feb. 2014]: > Bastien writes: >> So C-c : would call org-edit-src-code and C-c C-: would convert the >> region to fixed-width region. > > You cannot enter C-: in some terminals because it would require > simultaneous processing of shift and control (these terminals ignore > shift while control is pressed). this is true for xterm, rxvt-unicode, gnome-terminal, konsole and the linux console. Actually it's possible to start emacs -Q -nw within ansi-term but then Shift-Control-: is not recognized either. It would be great if it's possible to avoid such key combos ... Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-
Re: [O] external setup file for org-html-preamble?
Yes! That solved it. Thank you! On Mon, Feb 10, 2014 at 4:10 AM, Bastien wrote: > Hi Peter, > > Peter Salazar writes: > > > However, when I try to export to HTML, I get "Invalid format string" > > You need to replace "%" with "%%" in the preamble string. > > HTH, > > -- > Bastien >
[O] value of cell/spreadsheet as property value?
is possible to use a cell reference to a table or spreadsheet as a property value? Example: * lunch :PROPERTIES: :CASH: #lunchtable:@>$2 :END: #+NAME: lunchtable | date |cash | |--+-+ | [2014-02-10 lun] | 16.00 | | [2014-02-07 vie] | 27.00 | |--+-+ | | 43.00 | #+TBLFM: @>$2=vsum(@I..@II);%0.2f ... and align numbers in the columns view? *** 2014-01... | *** 2014-02 | 447.00 | | income | 1000.00 | ... | expenses| -553.00 | | * dinner | -110.00 | ... | * party :-) | -400.00 | ... | * lunch | -43.00 | thanks and sorry, English is not my language :-( -- :: Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C http://www.osiux.com.ar http://www.altermundi.net signature.asc Description: Digital signature
Re: [O] Assumptions on user's environment
perhaps this is possible: c-c ' -> c-c c-x '
Re: [O] [RFC] Proposal for rebindings in Org 8.3
Bastien writes: > So C-c : would call org-edit-src-code and C-c C-: would convert the > region to fixed-width region. You cannot enter C-: in some terminals because it would require simultaneous processing of shift and control (these terminals ignore shift while control is pressed). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] Proposal for images in markdown export (ox-md)
On Mon, Feb 10, 2014 at 10:43 AM, Nicolas Goaziou wrote: > Hello, > > Bastien writes: > >>> So, my proposal would be that if either are present, Org could >>> (should?) use html image specifications instead of markdown. >> >> I'll let Nicolas decide on this. > > FWIW, I think it makes sense to switch to HTML when attributes are > given. Though, I don't use Markdown, so I may overlook something. As I was thinking more about this (of course, right after sending), I'm not sure it's the best idea, since markdown is like org: one syntax that can flexibly be exported into numerous other formats. Thus, I realized that for *me*, I'll either use Org -> LaTeX or Org -> md -> html (via ox-ravel, knitr, or pandoc), but probaly *not* Org -> md -> LaTeX (via knitr or pandoc). Others, however, might want Org -> md -> LaTeX, so assuming that html image tags are desired might be the wrong assumption and cause issues. Perhaps a variable would be the way to go? This way, one could have something like org-md-final-format (you get the idea) that could provide different results: - (setq org-md-final-format nil): ignores everything, including #+begin/end_center and just outputs =![description](path/to/image.png)= - (setq org-md-final-format "html"): converts attr_html or attr_md and #+begin/end_center to either inline styles with , or surrounds with a classed div tag and does the appropriate styling via CSS (similar to current html export with img.figure { ...style... } - (setq org-md-final-format "latex"): converts attr_latex and centering straight to LaTeX code. I have caution on this one as I haven't actually looked into how knitr or pandoc work with md -> latex and if it accepts raw LaTeX. I'm figuring it does, but just wanted to mention that. So, that would be one idea of how to deal with this. I'd love for other markdown users to comment, as I'm not really sure how it's used by the majority. John > > > Regards, > > -- > Nicolas Goaziou
Re: [O] adding options to the minted environment of exported source blocks in latex
Hello, Alan Schmitt writes: > Nicolas Goaziou writes: > >> It is also possible to do something in-between, i.e., tell Org about >> a few selected keywords and stuff the others into :options. This is what >> is done for images. Org knows about :height and :width and uses :options >> for everything else. > > The latter would be great. The option I'm considering does not exist in > minted, I add it in my preamble. Then the next question is: what would be the blessed keywords known by Org? They need to be supported in both listings and minted (but not necessarily under the same name internally). Regards, -- Nicolas Goaziou
Re: [O] Proposal for images in markdown export (ox-md)
Hello, Bastien writes: >> So, my proposal would be that if either are present, Org could >> (should?) use html image specifications instead of markdown. > > I'll let Nicolas decide on this. FWIW, I think it makes sense to switch to HTML when attributes are given. Though, I don't use Markdown, so I may overlook something. Regards, -- Nicolas Goaziou
Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?
Hello, Bastien writes: > I think the whole thread calls for a variable to let the user > configure the way she wants references to be inserted. > > Because \nameref could be useful in LaTeX/Beamer too. Internal links in Beamer are complicated, because there's no way to know which slide we're referring to. So I don't think \nameref would help here. > And maybe ODT could enjoy such a function too. > > Nicolas, what do you think? This is something that cannot be easily achieved with filters, so it could make sense to have a defcustom, or maybe two (one when headlines are numbered and another one when they are not). Anyway, patches welcome. Regards, -- Nicolas Goaziou
Re: [O] org-compat needed for org-gnus?
Hi, first of all, please report your Org version with M-x org-version RET When installing from ELPA, you need to do it from a fresh Emacs session, where Org has not been loaded yet. Then, in your emacs.el, you need to call `package-initialize' before any Org function is called: (require 'package) (setq package-archives '(("org" . "http://orgmode.org/elpa/";))) (package-initialize) (require 'org) Let us know how it goes, -- Bastien
Re: [O] Error with org-adaptive-fill-function and mu4e
Hi Bastien, Am Mon, Feb 10, 2014 at 03:42:59PM +0100, Bastien wrote: > Well, another semi-wild guess is that maybe the ArchLinux package does > not take care of creating the proper autoloads. > > Go to /usr/share/emacs/site-lisp/org and see if you have an accurate > org-loaddefs.el (should be ~107K.) thanks. No chance. Still not working... Thanks in any case for your help! -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Wanted: volunteer to integrate REST-client (restclient.el)
windows and pip/easy_install are funny sometimes. I often do something like this: #+BEGIN_SRC python from setuptools.command import easy_install easy_install.main( ["-U","requests"] ) #+END_SRC #+RESULTS: #+begin_example Searching for requests Reading http://pypi.python.org/simple/requests/ Best match: requests 2.2.1 Downloading https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e Processing requests-2.2.1.tar.gz Writing /tmp/easy_install-EWppsP/requests-2.2.1/setup.cfg Running requests-2.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-EWppsP/requests-2.2.1/egg-dist-tmp-xoXvDk Adding requests 2.2.1 to easy-install.pth file Installed /opt/kitchingroup/enthought/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/requests-2.2.1-py2.7.egg Processing dependencies for requests Finished processing dependencies for requests #+end_example John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Mon, Feb 10, 2014 at 8:13 AM, Karl Voit wrote: > Hi John! > > * John Kitchin wrote: > > > > I think you could do this via requests directly. It could be done in > emacs: > > https://github.com/tkf/emacs-request > > Thanks for the pointer. > > I evaluated it and it seems not that good for my requirements > because I need it mainly for documenting stuff/issues/... > > With request.el, I need lots of lines per call whereas restclient.el > needs only three lines which can be written, read, adopted pretty > easily. > > > or python: http://docs.python-requests.org/en/latest/ > > > > In your case you could have a block like this: > > > > #+BEGIN_SRC python > > import requests > > headers = {"Authorization": "Basic YmVfcmVzdF9hZG1", > >"Accept-Encoding": "application/xml"} > > r = requests.get("http://myserver/rest/dothis";, headers=headers) > > print r.text > > #+END_SRC > > This would be completely OK to me. > > Unfortunately, cygwin does not come with "python-requests" and I > failed at installing "pip" on my Windows machine [1] :-( > > > Probably restclient.el has also a unique feature which is neat for > my purpose: pretty printing XML responses. > > So I guess I have to stick with my current method which is using the > *scratch* buffer and manually switching to restclient-mode and > copy&paste the request and the results from/to my Org-mode buffers. > > However, thanks for the great links! > > 1. "python get-pip.py" runs without error message but then I can > not execute nor find pip(.exe) at all :-( > > -- > mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: >> get Memacs from https://github.com/novoid/Memacs < > > https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on > github > > >
Re: [O] org-odt table with borders on all sides
rajat mukherjee writes: > org-odt table with borders on all sides Try one of this |---+---+---| | < | | > | | a | b | c | | d | e | f | | g | h | i | |---+---+---| or #+ATTR_ODT: :style "GriddedTable" | a | b | c | | d | e | f | | g | h | i | With the first version above, the vertical rules are indicated by "<" and ">" markers. The horizontal rules in the exported document will match the hrules in the table. If it doesn't work as expected in stock Org, try my package (which is documented at http://cauvery.nfshost.com/wiki.pl/ODT_Exporter)
[O] org-compat needed for org-gnus?
Hi, I recently made the jump to install my first ELPA package because capture wasn't available in Emacs 24.3.1's org-mode, and installed org 20140130. Today I tried working with links to Gnus and they failed ("No match - create this as a new heading?"). So I looked around and tried M-x load-library org-gnus RET which failed with "byte-code: Symbol's function definition is void: org-defvaralias". Further grepping led to loading org-compat, then org-gnus, and it worked. So I'm wondering if the missing "(require 'org-compat)" in org-gnus is just an oversight, or if I'm doing something wrong? Tim
Re: [O] Error with org-adaptive-fill-function and mu4e
Igor Sosa Mayor writes: > Thanks again. I have > (add-to-list 'load-path "/usr/share/emacs/site-lisp/org") > (add-to-list 'load-path "/usr/share/emacs/site-lisp/org_contrib/lisp") > (require 'org) > > at the very begin of .emacs.el. It does not work. (neither in mu4e nor > in mail-mode). Well, another semi-wild guess is that maybe the ArchLinux package does not take care of creating the proper autoloads. Go to /usr/share/emacs/site-lisp/org and see if you have an accurate org-loaddefs.el (should be ~107K.) If completely desperate, try (load "location/of/your/8.2.5h/org-loaddefs") ... But despair is not something to hope :) > But: don't worry. You have other and more important things to do. I will > try to solve it by myself modifying some configurations, because I have > a very very complex emacs and orgmode config files. Good luck! -- Bastien
Re: [O] Bug: unconverted dashes in HTML export
Hi, Nicolas, > The new regexps still don't look right, as they can match an additional > dash: > > (string-match "---\\([^-]?\\)" "") => 0 > > I'm not sure about the intent of this regexp, that is whether > consecutive mdashes or ndashes are allowed or not. > > A correct version could be either: > > ("---" . "—") > > or > > ("\\([^-]\\|^\\)---\\([^-]\\|$\\)" . "\\1—\\2") > > I think the former is on par with LaTeX behaviour. Good point, and I don't see any problem with your first version, though I don't understand the intent behind the original regexp, either. I had assumed the point was to avoid matching horizontal separator lines in tables, but that doesn't seem to be an issue. Thanks, Thomas
Re: [O] Wanted: volunteer to integrate REST-client (restclient.el)
Hi John! * John Kitchin wrote: > > I think you could do this via requests directly. It could be done in emacs: > https://github.com/tkf/emacs-request Thanks for the pointer. I evaluated it and it seems not that good for my requirements because I need it mainly for documenting stuff/issues/... With request.el, I need lots of lines per call whereas restclient.el needs only three lines which can be written, read, adopted pretty easily. > or python: http://docs.python-requests.org/en/latest/ > > In your case you could have a block like this: > > #+BEGIN_SRC python > import requests > headers = {"Authorization": "Basic YmVfcmVzdF9hZG1", >"Accept-Encoding": "application/xml"} > r = requests.get("http://myserver/rest/dothis";, headers=headers) > print r.text > #+END_SRC This would be completely OK to me. Unfortunately, cygwin does not come with "python-requests" and I failed at installing "pip" on my Windows machine [1] :-( Probably restclient.el has also a unique feature which is neat for my purpose: pretty printing XML responses. So I guess I have to stick with my current method which is using the *scratch* buffer and manually switching to restclient-mode and copy&paste the request and the results from/to my Org-mode buffers. However, thanks for the great links! 1. "python get-pip.py" runs without error message but then I can not execute nor find pip(.exe) at all :-( -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] Error with org-adaptive-fill-function and mu4e
Hi Bastien, Am Mon, Feb 10, 2014 at 09:54:06AM +0100, Bastien wrote: > Yes. Again, the issue is that, when turn-on-orgstruct++ is called > within a mu4e buffer, org-mode is not yet loaded from the correct > location -- otherwise the error would be different. > > So: do all what you can do to make sure that org-mode is explicitely > loaded from the correct location before this function is turned on, > and it should disappear. Thanks again. I have (add-to-list 'load-path "/usr/share/emacs/site-lisp/org") (add-to-list 'load-path "/usr/share/emacs/site-lisp/org_contrib/lisp") (require 'org) at the very begin of .emacs.el. It does not work. (neither in mu4e nor in mail-mode). But: don't worry. You have other and more important things to do. I will try to solve it by myself modifying some configurations, because I have a very very complex emacs and orgmode config files. Thanks again. -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Mismatch in url escaping between org and exported html
On Mon, Feb 10, 2014 at 12:06 PM, Bastien wrote: > Hi Mark, > > Mark Janssen writes: > > > If I insert a http:// link containing question marks, the verbatim > > link being inserted in the org document has the question mark > > escaped. > > I can't reproduce this with latest stable or unstable Org version. > > I shouldn't have posted this to the mailing list at the time I did :(. Apologies for any confusion I have caused. The problem is with escaping of an equals sign not the question mark. I have attached a demo org and a resulting html file. Note that in the html file, the url is http://test/test?name%3Dme which is wrong. It should be http://test/test?name=me Running C-c C-ehh on that org file gives the attached html. I have started emacs as: emacs.exe -Q -l minimal.el test.org ;;minimal.el (require 'package) (package-initialize) (require 'org) > What version of Org and Emacs are you using? > > (org-version) "8.2.5h" (emacs-version) "GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN" > Thanks, > > -- > Bastien > Title: test test me Created: 2014-02-10 ma 12:30 Emacs 24.3.1 (Org mode 8.2.5h) Validate test.org Description: Binary data minimal.el Description: Binary data
Re: [O] day boundaries later than midnight?
On Mon, Feb 10, 2014 at 10:01:38AM +0100, Bastien wrote: > Hi Adam, > > Adam Spiers writes: > > > Did any progress ever get made on this > > front since 2006, and if not, is it ever likely to? > > I think this is `org-extend-today-until': > > org-extend-today-until is a variable defined in `org.el'. > Its value is 0 > > Documentation: > The hour when your day really ends. Must be an integer. > This has influence for the following applications: > - When switching the agenda to "today". It it is still earlier than > the time given here, the day recognized as TODAY is actually yesterday. > - When a date is read from the user and it is still before the time given > here, the current date and time will be assumed to be yesterday, 23:59. > Also, timestamps inserted in capture templates follow this rule. Ahah, that's it - thanks! I guess I missed it because there's only one fleeting reference in the "Clocking commands" section of the manual. > IMPORTANT: This is a feature whose implementation is and likely will > remain incomplete. Really, it is only here because past midnight seems to > be the favorite working time of John Wiegley :-) ;-)
Re: [O] another blog exporter
Hello, Bastien writes: > Somehow this calls for a way to let a backend use several affiliated > keywords. For example you would have: > > #+ATTR_HTML: :width 400px > #+ATTR_BLOG: :lineno t Org already provided a syntax to number lines in source blocks. Couldn't it be used instead? #+begin_src emacs-lisp -n ... #+end_src > and the exporter would take both into account, letting you to simply > export to HTML without the need to add redundant information. > > Nicolas, did this cross your mind? Or maybe this is already feasible? This is already feasible. See `org-beamer-plain-list' for an example. Both #+attr_latex and #+attr_beamer are read but the latter has precedence over the former. Regards, -- Nicolas Goaziou
Re: [O] Assumptions on user's environment
Bastien wrote: > What do you think of `C-c :', as suggested in my reply to Thomas? I'd favor a common `C-c C-' prefix for all moved key bindings. Best regards, Seb -- Sebastien Vauban
Re: [O] [RFC] Proposal for rebindings in Org 8.3
Bastien, Bastien wrote: > "Sebastien Vauban" writes: >> Bastien wrote: >>> (This one I knew. My own recent discovery was C-h : to directly jump >>> to the definition of a symbol. Pretty useful.) >> >> ╭ >> │ C-h : is undefined >> ╰ >> >> on my side. To what is it bound on your side? > > find-function > > C-h : runs the command find-function, which is an interactive > autoloaded compiled Lisp function in `find-func.el'. > > It is bound to C-h :, :. > > (find-function FUNCTION) > > Find the definition of the FUNCTION near point. > > Finds the source file containing the definition of the function > near point (selected by `function-called-at-point') in a buffer and > places point before the definition. > Set mark before moving, if the buffer already existed. Weird. I don't even see the binding in `find-func.el' (in Emacs trunk from last week): ╭ │ ;;; find-func.el --- find the definition of the Emacs Lisp function near point │ │ ;; Copyright (C) 1997, 1999, 2001-2014 Free Software Foundation, Inc. │ │ ... │ │ ;;;###autoload │ (defun find-function-setup-keys () │ "Define some key bindings for the find-function family of functions." │ (define-key ctl-x-map "F" 'find-function) │ (define-key ctl-x-4-map "F" 'find-function-other-window) │ (define-key ctl-x-5-map "F" 'find-function-other-frame) │ (define-key ctl-x-map "K" 'find-function-on-key) │ (define-key ctl-x-map "V" 'find-variable) │ (define-key ctl-x-4-map "V" 'find-variable-other-window) │ (define-key ctl-x-5-map "V" 'find-variable-other-frame)) │ │ (provide 'find-func) ╰ Best regards, Seb -- Sebastien Vauban
Re: [O] Mismatch in url escaping between org and exported html
Hi Mark, Mark Janssen writes: > If I insert a http:// link containing question marks, the verbatim > link being inserted in the org document has the question mark > escaped. I can't reproduce this with latest stable or unstable Org version. What version of Org and Emacs are you using? M-x org-version RET M-x emacs-version RET Thanks, -- Bastien
Re: [O] Mismatch in url escaping between org and exported html
On Sun, Feb 9, 2014 at 11:07 PM, Mark Janssen wrote: > > >> > Seems (setq org-url-hexify-p nil) will give me the required behavior. > > Mark > > This didn't work, so I investigated a bit further. Because the = sign is included in org-link-escape-chars, the org-url-hexify-p value will not make anu difference. So the problem is still that equals signs are hexified in org-links. Reading =org.el= and seeing the =org-link-escape-chars= constant this seems to be expected behavior. So I think the issue is that the html exporter doesn't unhexify the equals sign in the link. As a result the link in the html doesn't work. e.g. The link: http://test/test?name=me Is translated to: http://test/test?name%3Dme In the org file And that link is also included in the HTML where I would have expected the equals sign again.
Re: [O] [RFC] Proposal for rebindings in Org 8.3
"Sebastien Vauban" writes: > Bastien wrote: >> (This one I knew. My own recent discovery was C-h : to directly jump >> to the definition of a symbol. Pretty useful.) > > ╭ > │ C-h : is undefined > ╰ > > on my side. To what is it bound on your side? find-function C-h : runs the command find-function, which is an interactive autoloaded compiled Lisp function in `find-func.el'. It is bound to C-h :, :. (find-function FUNCTION) Find the definition of the FUNCTION near point. Finds the source file containing the definition of the function near point (selected by `function-called-at-point') in a buffer and places point before the definition. Set mark before moving, if the buffer already existed. -- Bastien
Re: [O] org-odt table with borders on all sides
Bastien gnu.org> writes: > > Hi Rajat, > > rajat mukherjee cytel.com> writes: > > > Is this possible? Please help. > > See the manual: > > (info "(Org)Applying custom styles") > > Thanks, > Thanks Bastien. I have but it seems too trivial for a "custom". I can get the right border just by having: | /| < | | > | <> | | a| b | b| b| c | |---+---+---+---+| | a| b | b| b| c | Tried "<>" for the first column as well but it behave differently!
Re: [O] org-dblock-write:count
Hi Adam, Adam Spiers wrote: > I just had an awesome conversation with Sacha about more effective > daily/weekly reviewing with org-mode :-) One of the things we talked > about was quantifying the number of tasks (TODO keywords) in any given > state, as a means of becoming more aware of your progress over time. > I have had some success in the past using the "measure what you want > to manage maxim"[1], and wanted to start applying this to my horribly > massive TODO.org file. > > [...] > > #+BEGIN:dynamic block > #+BEGIN: count :keywords (\"NEXT\" \"DONE\") :searches (\"@phone\" > \"@home\") > | NEXT | 522 | > | DONE | 69 | > | @phone | 77 | > | @home | 182 | > #+END: > > [...] To me, the best thing would be to see that count up-to-date with every custom agenda view. See http://lists.gnu.org/archive/html/emacs-orgmode/2013-09/msg01075.html for a patch I proposed in that direction. However, I had some comments of Bernt saying that some edge cases are not covered (when the block separator is empty). I still have to fix that, and come back with a fully working solution. Best regards, Seb -- Sebastien Vauban
Re: [O] [RFC] Proposal for rebindings in Org 8.3
Hello Bastien, Bastien wrote: > (This one I knew. My own recent discovery was C-h : to directly jump > to the definition of a symbol. Pretty useful.) ╭ │ C-h : is undefined ╰ on my side. To what is it bound on your side? Best regards, Seb -- Sebastien Vauban
Re: [O] How to load .el file during startup and execute its commands (Win7/org8)
web.de> writes: > I'm trying to use a custom setup for `org-mode 8.2` on `Windows 7`, but it >does not work as expected. Sorry for pushing that, but is very annoying to have to load the file manually at each startup. Could anyone tell me if I'm doing something wrong here? My ´Emacs`version: GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN What I tried: ## ~/.emacs in the file `~/.emacs` I have (among others) those lines: (if (boundp 'org-mode-user-lisp-path) (add-to-list 'load-path org-mode-user-lisp-path) (add-to-list 'load-path (expand-file-name "~/org-mode/org_current/lisp"))) (setq default-directory "C:/Users/mypath/" ) (if (boundp 'org-mode-user-contrib-lisp-path) (add-to-list 'load-path org-mode-user-contrib-lisp-path) (add-to-list 'load-path (expand-file-name "~/org-mode/org_current/contrib/lisp/")) (add-to-list 'load-path (expand-file-name "~/org-mode/morelisp/"))) (require 'icicles) (require 'dired+) (require 'org) (require 'bookmark+) (load "org") and later (load "C:/Users/mypath/org-config/myname_orgmodeconfig.el") ## C:/Users/mypath/org-config/myname_orgmodeconfig.el contains (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) ;; Standard key bindings (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (if (boundp 'org-user-agenda-files) (setq org-agenda-files org-user-agenda-files) (setq org-agenda-files (quote ("~/org" So I try to use all org-files in the path `~/org` as agenda files. When I launch `emacs`, I get the following result in the `*Messages` buffer: Turning OFF Icicle mode...done Turning ON Icicle mode...done Turning OFF Icicle mode...done Turning ON Icicle mode...done Turning ON Icicle mode...done Turning OFF Icicle mode...done Loading c:/Users/mypath/org-mode/org_current/lisp/org.el (source)...done Loading c:/Users/mypath/org-config/myname_orgmodeconfig.el (source)...done Loading paren...done For information about GNU Emacs and the GNU system, type C-h C-a. # The Problem So I assume, as the file `myname_orgmodeconfig.el` has been loaded, all the elisp code inside should have been executed and it should have also set my agenda files. **However, the list of agenda files is empty after startup. When I then _manually_ ofen the file `myname_orgmodeconfig.el` and execute the command `eval-buffer`, everything is fine.** How can I fix that? Kind regards Martin
Re: [O] external setup file for org-html-preamble?
Hi Peter, Peter Salazar writes: > However, when I try to export to HTML, I get "Invalid format string" You need to replace "%" with "%%" in the preamble string. HTH, -- Bastien
Re: [O] Proposal for images in markdown export (ox-md)
Hi John, John Hendy writes: > So, my proposal would be that if either are present, Org could > (should?) use html image specifications instead of markdown. I'll let Nicolas decide on this. In the meantime, I find the attached patch useful. It uses the file-name instead of [img] when the image link has no description. If you find this useful, I'll apply it. Thanks, diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 76bea94..26a36e2 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -306,7 +306,8 @@ a communication channel." (caption (org-export-data (org-export-get-caption (org-export-get-parent-element link)) info))) - (format "![img](%s)" + (format "![%s](%s)" + (file-name-nondirectory path) (if (not (org-string-nw-p caption)) path (format "%s \"%s\"" path caption) ((string= type "coderef") -- Bastien
Re: [O] Assumptions on user's environment
Achim Gratz writes: > I'd think you need to curl the pinky at least unless you're talking > about a laptop keyboard with a favorable position for the Ctrl key. > > It's really a bad thing if you've developed certain types of RSI and may > even be impossible if you have coordinative disabilities or can only use > one hand. This is what "sticky" or "locked" modifiers were invented for > (check how your favourite OS lets you set up "accessibility features"). Yes, I see, thanks. What do you think of `C-c :', as suggested in my reply to Thomas? -- Bastien
Re: [O] day boundaries later than midnight?
Hi Adam, Adam Spiers writes: > Did any progress ever get made on this > front since 2006, and if not, is it ever likely to? I think this is `org-extend-today-until': org-extend-today-until is a variable defined in `org.el'. Its value is 0 Documentation: The hour when your day really ends. Must be an integer. This has influence for the following applications: - When switching the agenda to "today". It it is still earlier than the time given here, the day recognized as TODAY is actually yesterday. - When a date is read from the user and it is still before the time given here, the current date and time will be assumed to be yesterday, 23:59. Also, timestamps inserted in capture templates follow this rule. IMPORTANT: This is a feature whose implementation is and likely will remain incomplete. Really, it is only here because past midnight seems to be the favorite working time of John Wiegley :-) -- Bastien
Re: [O] org-odt table with borders on all sides
Hi Rajat, rajat mukherjee writes: > Is this possible? Please help. See the manual: (info "(Org)Applying custom styles") Thanks, -- Bastien
Re: [O] Assumptions on user's environment
Karl Voit writes: > In fact, I never use the original left CTRL key at all. And more or > less thanks to bad habit, I never use the right CTRL key. Yep, I'm exactly in the same boat. -- Bastien
Re: [O] Error with org-adaptive-fill-function and mu4e
Hi Igor, Igor Sosa Mayor writes: > It is not soo important. I just want to get rid of this issue, because > I tend to use often lists in my emails... Yes. Again, the issue is that, when turn-on-orgstruct++ is called within a mu4e buffer, org-mode is not yet loaded from the correct location -- otherwise the error would be different. So: do all what you can do to make sure that org-mode is explicitely loaded from the correct location before this function is turned on, and it should disappear. PS: The problem with M-x org-version RET is this: if Emacs calls an autoloaded Org function from the Emacs distribution (= not from the newly installed location), and then you add the new location to the load-path, then M-x org-version RET reports 8.2.5* because it now knows about the new location. -- Bastien
Re: [O] another blog exporter
Hi Robert, Robert Klein writes: > I posted the latest three posts on http://www.xyzzy.de using > ox-blog. Neat, thanks! > I can use #+ATTR_HTML, but I wasn't sure about using new attributes, > e.g. :highlight and :lineno for source blocks. I didn't want to pollute > ATTR_HTML with things that are of no use for the HTML exporter. You're right. Somehow this calls for a way to let a backend use several affiliated keywords. For example you would have: #+ATTR_HTML: :width 400px #+ATTR_BLOG: :lineno t and the exporter would take both into account, letting you to simply export to HTML without the need to add redundant information. Nicolas, did this cross your mind? Or maybe this is already feasible? > If you don't see a problem in #+ATTR_HTML, I'll happily change this. No, that will pollute the HTML export (I don't expect anything weird in the HTML output with unknown attributes, but the document will not validate correctly, and this is confusing anyway.) Thanks! -- Bastien
Re: [O] Include heading title in HTML section-number cross-reference, like LaTex \nameref?
I think the whole thread calls for a variable to let the user configure the way she wants references to be inserted. Because \nameref could be useful in LaTeX/Beamer too. And maybe ODT could enjoy such a function too. Nicolas, what do you think? -- Bastien
Re: [O] [RFC] Proposal for rebindings in Org 8.3
Hi Nick, Nick Dokos writes: > , > |* Don't bind `C-h' following any prefix character (including `C-c'). > | If you don't bind `C-h', it is automatically available as a help > | character for listing the subcommands of the prefix character. > ` > > That's *very* useful to me - if you don't know about it already, try it: > I think you'll find it very useful too! (This one I knew. My own recent discovery was C-h : to directly jump to the definition of a symbol. Pretty useful.) -- Bastien
Re: [O] [RFC] Proposal for rebindings in Org 8.3
Hi Thomas, t...@tsdye.com (Thomas S. Dye) writes: > Bastien writes: > >> A few comments on the last three: >> >> - " is not a punctuation character, I find C-c " instead of C-c ' good. > > Is it true that " is not a punctuation character? It is a string in both fundamental-mode and org-mode, that's what I'm checking. But it is a punctuation character in other modes and maybe in our "minds". I agree the intuition is misleading here, because ' is a punctuation character. > In any event, C-c " is likely to pose the same problem as C-c '. For > icicle users, C-c " will be shadowed by the keybinding for > icicle-search-text-property. ... which, strictly speaking, is not an org-mode problem if " is not a punctuation character. > At least that's my current working hypothesis. Feel free to correct me > if I'm wrong. It encourages me to find a completely different solution. The one I have in mind now is to use C-c : (and to move the current C-c : binding to C-c C-:). The reasoning is that we have - fixed-width - example blocks - source code blocks which often achieve a similar goal: to present some code snippets. Source blocks are more powerful than example blocks which are more powerful than fixed-width regions. But you can currently edit them all with C-c '. So C-c : would call org-edit-src-code and C-c C-: would convert the region to fixed-width region. What you (and others) think? Eric, what's your take on this, as the "father" of C-c ' ? -- Bastien