Re: [O] Financial data into an org-mode table
Interesting idea. Thanks for the tip! On 13/12/17 21:43, Rasmus wrote: > You could use the various R libraries and convert it to an Org table via > ob-R.el. > > #+begin_src R :colnames yes > library(quantmod) > x = getSymbols("YHOO",src="google", auto.assign=FALSE) > x[sprintf("%s/", Sys.Date()-7)] > #+end_src > > Rasmus > -- Paulo Matos
[O] bug#29694: Quoting of consts in org-agenda-custom-commands-local-options
Hello, Glenn Morriswrites: > Package: org-mode > > In code like > > (defcustom ... > :type '(const some-constant)) > > it's a mistake to write 'some-constant. > > So I'm guessing that various instances of quoted consts in > org-agenda-custom-commands-local-options are a mistake. Eg > > (const :tag "scheduled" 'scheduled) Fixed. Thank you. Regards, -- Nicolas Goaziou
[O] bug#29698: missing/empty custom groups
Hello, Glenn Morriswrites: > Package: org-mode > Severity: minor > > ox-publish.el defines an "org-publish" group, but nothing uses it. > > org-pcomplete.el defines an "org-complete" group, but nothing uses it. > > org-structure-template-alist uses an "org-completion" group, but > nothing defines it. Fixed. Thank you. Regards, -- Nicolas Goaziou
[O] bug#29695: Mistakes in custom :types
Hello, Glenn Morriswrites: > Package: org-mode > > The following user options have :types that do not match their defaults: > > org-babel-stan-cmdstan-directory > org-latex-default-packages-alist > org-odt-with-latex > > As a result, customizing them displays "mismatch". Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [O] double underlines and external references
I see, if it is just export you can still use a link with custom exporters for internal and external recipes. eg: [[irec: some recipe label]] might export to \uline{some recipe label} and [[erec:some other recipe]] might export to \uuline{some other recipe}, and you would use the ulem latex package to get those commands. The colors I was referring to were for your benefit in org-mode to make it easy to see which kind of link it is. Another alternative is a macro: #+MACRO: irec \uline{$1} #+MACRO: erec \uuline{$1} #+LATEX_HEADER: \usepackage{ulem} {{{irec(some label)}}} and {{{erec(some other label)}}} This exports to: \uline{some label} and \uuline{some other label} John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, Dec 13, 2017 at 10:05 AM, Sharon Kimblewrote: > John Kitchin writes: > > > You could just use regular links for this. You could setup a face > function that changes the color depending on it being internal or external, > or you could make separate links for them. See > > http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link- > features-in-org-9/ for many examples of what kinds of things can be done. > > > > John > > Thanks for replying John. > > I don't think I was quite as explicit as I should've been. I'm exporting > my org-mode documents into latex ones, which are then building a PDF, > which can then be printed in black and white (with no other colours > being allowed), with the ultimate aim of it being professionally printed > as books. > > Hence my need for both, double and single line, underlines. > > But I'm also open to any other way of finding some other way of showing > the different links, but I can only use either black or white colours. > > Thanks > Sharon. > > > > --- > > Professor John Kitchin > > Doherty Hall A207F > > Department of Chemical Engineering > > Carnegie Mellon University > > Pittsburgh, PA 15213 > > 412-268-7803 > > @johnkitchin > > http://kitchingroup.cheme.cmu.edu > > > > On Wed, Dec 13, 2017 at 6:56 AM, Sharon Kimble < > boudic...@skimble.plus.com> wrote: > > > > For my current series of books that I'm writing in org-mode which is > > being exported to latex, I need to differentiate between recipes in > the > > current working file, and to recipes in an external file. This is in > a > > series of books all containing recipes. So what I'm looking for is > the > > ability to use a single underline for internal, and a double > underline > > for external. I can do a single underline easily in org-mode, but I'm > > having problems with a double underline. > > > > But is it the best method, using single and double underlines? Can > > anyone suggest some other ways of doing it, please? Like, for > instance, > > can I have a reference to a particular section in another file? > > > > Thanks > > Sharon > > -- > > A taste of linux = http://www.sharons.org.uk > > TGmeds = http://www.tgmeds.org.uk > > DrugFacts = https://www.drugfacts.org.uk > > Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 > > > > -- > A taste of linux = http://www.sharons.org.uk > TGmeds = http://www.tgmeds.org.uk > DrugFacts = https://www.drugfacts.org.uk > Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 >
[O] bug#29698: missing/empty custom groups
Package: org-mode Severity: minor ox-publish.el defines an "org-publish" group, but nothing uses it. org-pcomplete.el defines an "org-complete" group, but nothing uses it. org-structure-template-alist uses an "org-completion" group, but nothing defines it.
Re: [O] Financial data into an org-mode table
You could use the various R libraries and convert it to an Org table via ob-R.el. #+begin_src R :colnames yes library(quantmod) x = getSymbols("YHOO",src="google", auto.assign=FALSE) x[sprintf("%s/", Sys.Date()-7)] #+end_src Rasmus -- Summon the Mothership!
[O] Can export the files with bibliography only to LaTeX
I used to think that I can export from org to bunch of different formats. But all of a sudden when I need this feature I see that I can export only to LaTeX. But when I try exporting to other format I get Wrong type argument: stringp, nil error message. When there's no bibtex references or exporting to LaTeX everything just works. How can I troubleshoot the situation and possibly find the clue? I couldn't find any documentation on the exporting references issues on Worg unfortunately. My environment: Gentoo with stable keyword, Emacs 25.3.1, Org 9.1.4. Thanks ahead of time.
[O] Financial data into an org-mode table
Hi, Is there any code out there to pull data from stock markets (using for example Google/Yahoo Finance) into an org-mode table? Kind regards, -- Paulo Matos
[O] bug#29695: Mistakes in custom :types
Package: org-mode The following user options have :types that do not match their defaults: org-babel-stan-cmdstan-directory org-latex-default-packages-alist org-odt-with-latex As a result, customizing them displays "mismatch".
[O] bug#29694: Quoting of consts in org-agenda-custom-commands-local-options
Package: org-mode In code like (defcustom ... :type '(const some-constant)) it's a mistake to write 'some-constant. So I'm guessing that various instances of quoted consts in org-agenda-custom-commands-local-options are a mistake. Eg (const :tag "scheduled" 'scheduled) etc
Re: [O] double underlines and external references
John Kitchinwrites: > You could just use regular links for this. You could setup a face function > that changes the color depending on it being internal or external, or you > could make separate links for them. See > http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/ > for many examples of what kinds of things can be done. > > John Thanks for replying John. I don't think I was quite as explicit as I should've been. I'm exporting my org-mode documents into latex ones, which are then building a PDF, which can then be printed in black and white (with no other colours being allowed), with the ultimate aim of it being professionally printed as books. Hence my need for both, double and single line, underlines. But I'm also open to any other way of finding some other way of showing the different links, but I can only use either black or white colours. Thanks Sharon. > --- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > On Wed, Dec 13, 2017 at 6:56 AM, Sharon Kimble > wrote: > > For my current series of books that I'm writing in org-mode which is > being exported to latex, I need to differentiate between recipes in the > current working file, and to recipes in an external file. This is in a > series of books all containing recipes. So what I'm looking for is the > ability to use a single underline for internal, and a double underline > for external. I can do a single underline easily in org-mode, but I'm > having problems with a double underline. > > But is it the best method, using single and double underlines? Can > anyone suggest some other ways of doing it, please? Like, for instance, > can I have a reference to a particular section in another file? > > Thanks > Sharon > -- > A taste of linux = http://www.sharons.org.uk > TGmeds = http://www.tgmeds.org.uk > DrugFacts = https://www.drugfacts.org.uk > Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 > -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 signature.asc Description: PGP signature
Re: [O] Key binding popup interface
On Wed, Dec 13, 2017 at 10:40 AM, Kaushal Modiwrote: > On Tue, Dec 12, 2017 at 6:51 PM Robert Weiner wrote: > >> >> One limitation of hydra right now is that it doesn't interface with the >> standard way of showing help for key bindings since its keys aren't >> actually bound but handled via internal hydra event handling. With a bit >> of thought though, I think it could be integrated well. >> > > I don't follow what the functional limitations are of what you said. How > does your concern affect a package author or the end user? > C-h k shows the documentation for a key binding in a help buffer rather than just a laid out summary of all the keys in a particular hydra map. C-h k is important to know the details of what individual keys do, so hydra needs a way of integrating with standard key documentation lookup capabilities if it gets integrated with core Emacs, which I would like to see. Personally, I also think the red, blue, etc. color notation should change to something more descriptive of what they do and then the particular colors associated could be customized to suit any particular visual theme. Bob
Re: [O] Key binding popup interface
> (defhydra hydra-zoom () > "zoom" > ("g" text-scale-increase "in") > ("l" text-scale-decrease "out")) > (global-set-key (kbd "C-c") 'hydra-zoom/body) But now this one suffers from other problems: - `C-h k` does not let me directly find the binding of `C-c g`. - A `C-c a` binding in a lower keymap is now made unavailable. - A `C-c a` binding in a higher keymap now makes this hydra unavailable. > In Style 1, you allow the hydra to share the "keymap space" with other > bindings not related to that hydra. > In Style 2, the hydra takes over the whole "keymap space". In above Style 2 > example, the "C-c" space is completely ruled by the hydra-zoom hydra. I want it all. Don't get me wrong: I fully understand that hydra.el works within the constraints of what Emacs provides and so it has to choose between style 1 or style 2, but if we're talking about integrating this into Emacs, then we should take the opportunity to lift those restrictions. Stefan
Re: [O] Key binding popup interface
On Wed, Dec 13, 2017 at 1:53 AM John Wiegleywrote: > Plus, there are other, less intrusive way to achieve "show the available > valid > key bindings", such as the which-key package. > As I mentioned in a recent response to Stefan in this thread, I did a poor job with that problem statement.. I don't want to *just* show the available bindings. I think one area where Hydras come into their own is that once you have the > Hydra active, it stays active, allowing you to chain together many single- > letter commands. > That's correct. It's up to the package author as to how much of hydra features they want to pack into their package's hydras. hydra is not *just* for showing available keys and/or *just* for chaining many single letter commands. It's much more, in a good way. -- Kaushal Modi
Re: [O] Key binding popup interface
On Tue, Dec 12, 2017 at 6:51 PM Robert Weinerwrote: > > One limitation of hydra right now is that it doesn't interface with the > standard way of showing help for key bindings since its keys aren't > actually bound but handled via internal hydra event handling. With a bit > of thought though, I think it could be integrated well. > I don't follow what the functional limitations are of what you said. How does your concern affect a package author or the end user? Adding @Oleh back to the thread.. hopefully he can weigh in. -- Kaushal Modi
Re: [O] Key binding popup interface
On Tue, Dec 12, 2017 at 4:49 PM Stefan Monnierwrote: > I tend to think of Hydra as "bindings that stick around" (to take the > wording on the first line of hydra.el), rather than "ways to show > available bindings of the current submap". So, yes, I think it does > something else (something more) Well, that's correct .. than what I understand you want. > Though I now think I did a very bad job at constructing that problem statement. But I know for sure that hydra.el fits the bill perfectly (I've been using it ever since Oleh released it). Integrating hydra into emacs with help package developers do these: - Create interfaces for transitional keymaps - The bindings could be sticky or not (can be configured in hydra) - Allow customizing the descriptions of the bindings (@JWiegley as you later suggest which-key, which-key does not allow that.. well it does.. but the user will need to tweak the description, etc.. I see which-end more as a tool only for the end-user. hydra can be used both by package developers and end users). - Pick and choose which bindings to "show" in that interface.. you don't have to show all. The package developer may choose to have duplicate bindings for some function in that keymap, but prefer to show only the preferred binding in the hydra popup (cannot do that in which-key.. it shows *everything*). > And, BTW, if I take a hydra like > > (defhydra hydra-zoom (global-map "") > "zoom" >("g" text-scale-increase "in") >("l" text-scale-decrease "out")) > > and I press `f6` I don't get any help in the echo area (nor in the "lv" > area). I only get that help after pressing `f6 g` or `f6 l`, so I need > some other mechanism to find those "initial" key bindings. > That's because you used Style 1 (as explained in this hydra Wiki: https://github.com/abo-abo/hydra/wiki/Binding-Styles). Use the Style 2 to take care of the issue you stated: (defhydra hydra-zoom () "zoom" ("g" text-scale-increase "in") ("l" text-scale-decrease "out")) (global-set-key (kbd "C-c") 'hydra-zoom/body) In Style 1, you allow the hydra to share the "keymap space" with other bindings not related to that hydra. In Style 2, the hydra takes over the whole "keymap space". In above Style 2 example, the "C-c" space is completely ruled by the hydra-zoom hydra. > So in this respect, I think it does something less than what > I understand you'd want. > No. It does everything that I need to do. But of course it has a lot of features, which might be suitable for different applications. See keys like :pre, :post and more described in https://github.com/abo-abo/hydra/wiki/internals. I can see something like this begin added to smerge.el if and when hydra.el gets merged to the core (See the use of :pre and :post): (defhydra hydra-smerge (:color pink :hint nil :pre (smerge-mode 1) ;; Disable `smerge-mode' when quitting hydra if ;; no merge conflicts remain. :post (smerge-auto-leave)) " ^Move^ ^Keep^ ^Diff^ ^Other^ ^^---^^---^^-^^--- _n_ext _b_ase _<_: upper/base_C_ombine _p_rev _u_pper _=_: upper/lower _r_esolve ^^ _l_ower _>_: base/lower_k_ill current ^^ _a_ll_R_efine ^^ _RET_: current _E_diff " ("n" smerge-next) ("p" smerge-prev) ("b" smerge-keep-base) ("u" smerge-keep-upper) ("l" smerge-keep-lower) ("a" smerge-keep-all) ("RET" smerge-keep-current) ("\C-m" smerge-keep-current) ("<" smerge-diff-base-upper) ("=" smerge-diff-upper-lower) (">" smerge-diff-base-lower) ("R" smerge-refine) ("E" smerge-ediff) ("C" smerge-combine-with-next) ("r" smerge-resolve) ("k" smerge-kill-current) ("q" nil "cancel" :color blue)) > > I quickly went though hydra.el.. isn't defhydra mainly what it is? What > > would you suggest splitting out of that library? > > I don't know enough about it to have a clear opinion on that. > OK. Thanks. -- Kaushal Modi
Re: [O] double underlines and external references
You could just use regular links for this. You could setup a face function that changes the color depending on it being internal or external, or you could make separate links for them. See http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/ for many examples of what kinds of things can be done. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, Dec 13, 2017 at 6:56 AM, Sharon Kimblewrote: > > For my current series of books that I'm writing in org-mode which is > being exported to latex, I need to differentiate between recipes in the > current working file, and to recipes in an external file. This is in a > series of books all containing recipes. So what I'm looking for is the > ability to use a single underline for internal, and a double underline > for external. I can do a single underline easily in org-mode, but I'm > having problems with a double underline. > > But is it the best method, using single and double underlines? Can > anyone suggest some other ways of doing it, please? Like, for instance, > can I have a reference to a particular section in another file? > > Thanks > Sharon > -- > A taste of linux = http://www.sharons.org.uk > TGmeds = http://www.tgmeds.org.uk > DrugFacts = https://www.drugfacts.org.uk > Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 >
[O] double underlines and external references
For my current series of books that I'm writing in org-mode which is being exported to latex, I need to differentiate between recipes in the current working file, and to recipes in an external file. This is in a series of books all containing recipes. So what I'm looking for is the ability to use a single underline for internal, and a double underline for external. I can do a single underline easily in org-mode, but I'm having problems with a double underline. But is it the best method, using single and double underlines? Can anyone suggest some other ways of doing it, please? Like, for instance, can I have a reference to a particular section in another file? Thanks Sharon -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 signature.asc Description: PGP signature
[O] Feature request: Add window-setup options to capture and note taking
Hi, I don't like that org fiddles with my window setup, even if it's only temporary. I can set `org-agenda-window-setup` and `org-src-window-setup` to change the behavior for the babel and agenda window but for other functions it seems to be hard coded. I would be interested especialy in the note taking (`org-add-log-note`), org capture (`org-capture-place-template`) and the first view when you call org-agenda (`org-agenda-get-restriction-and-command`). Thanks, Daniel signature.asc Description: PGP signature
Re: [O] Lists with bullets and checkboxes in beamer
On Tuesday, 12 Dec 2017 at 17:24, Ken Mankoff wrote: > Hi List, > > I have some lists with checkboxes like this: > > + [X] Foo > + [ ] Bar > > > When I export these to Beamer, I get both a bullet and a [] box. The > bullet is redundant and adds noise to the slide. Is there a way to not > have the bullet when checkboxes are present? I've had a look at the code, which seems to be in ox-latex, and I cannot understand why beamer export acts differently to LaTeX. Something to do with the :tag property but I really don't understand it. Maybe somebody else can have a look (org-latex-item in ox-latex.el, approximately line 2182 and following). -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b signature.asc Description: PGP signature
Re: [O] Is it possible to pass variable to variables of src block?
Hello, Xi Shenwrites: > Hi Michael, > > Yes, I think this is a way to my previous question. But what I really want > to achieve is to loop through a list of server names and execute a script > on them. > > Say I have 20 different database server. How can I do a loop with each > server? interestingly I did not found a good solution after a bit of thinking... The best I could come up with is something like this (which doesn't work): #+name: foosql #+BEGIN_SRC sql :dbuser weather :database environment :engine postgresql select time, temperature from weather limit 10; #+END_SRC #+begin_src emacs-lisp :results raw :var hosts=(list "db1" "db2" "db3") (dolist (host hosts) (org-sbe foosql (concat ":dbhost " host))) #+end_src Error: Symbol's definition is void: host. I guess that's caused by the way the macro is evaluated. And the result, if any, of the sql query had to be transformed back into a nice table for some use cases. Using other means of calling a code block, like #+call etc., aren't suitable for usage in a loop. So maybe someone can come up with a nice solution ;). Regards hmw