Re: [O] funny emacs-lisp macro behavior in org-babel related to lexical-binding
Aloha John, John Kitchin writes: > I submitted a patch for this. I still am not sure I did it quite right. > Is there a page anywhere that outlines what to do? > > e.g. > > create a branch, make changes, how to make patches, and mail them etc... > or some other preferred method? Yes, create a branch, make your changes, add and commit them, then run the following command to wrap up the latest commit on your new branch of the repository into a file which can be attached to email messages git format-patch -o ~/temp/ HEAD~1 after the command finished you will notice a new file in ~/temp with a name like 0001-commit-message-stuff.patch hth, Tom -- Thomas S. Dye http://www.tsdye.com
[O] Problems with M- on Emacs 25.
I think that this is an Emacs not org-mode problem, but maybe somebody can throw some light on it. On my computer running 24.5.1 M works as expected. However, on emacs 25.1.50.1 I get: Debugger entered--Lisp error: (error "There is no other window") scroll-other-window(-) scroll-other-window-down(nil) funcall-interactively(scroll-other-window-down nil) call-interactively(scroll-other-window-down nil nil) command-execute(scroll-other-window-down) However, in my org buffer: c-h w org-metaup org-metaup is on which seems to indicate that the key is correctly bound. If I start emacs with a minimal config that just has (require org-mode), I still get the error. I then tried the "If it doesn't work hit it with the biggest hammer available" approach: (require 'org) (require 'ob-tangle) (eval-after-load "org" '(progn (define-key org-mode-map (kbd "M-") 'org-metadown) (define-key org-mode-map (kbd "M-") 'org-metaup))) but emacs thinks that M- is bound to scroll other window. -- Best wishes, Ian.
Re: [O] unable to resolve link: nil?
On Saturday, 16 Apr 2016 at 18:53, Nicolas Goaziou wrote: > You could also try using `org-lint' or setting #+OPTIONS: > broken-links:mark somewhere in your document. Thanks. I'll try to remember this for next time! -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33
Re: [O] funny emacs-lisp macro behavior in org-babel related to lexical-binding
On Sat, 16 Apr 2016, John Kitchin wrote: I submitted a patch for this. I still am not sure I did it quite right. Is there a page anywhere that outlines what to do? e.g. create a branch, make changes, how to make patches, and mail them etc... or some other preferred method? http://orgmode.org/worg/org-contribute.html#patches HTH, Chuck
Re: [O] Bug: Problem with LaTeX export, footnotes in table headers, and longtabu [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/berhol/.emacs.d/elpa/org-20160404/)]
Nicolas Goaziou writes: > Hello, > > Berthold Hoellmann writes: > >> Actually I was able to patch `org-latex-footnote-reference' to get the >> results I line. The trick is to add the counter number given at the >> \footnotetext command to the \footnotemark command also: > > It sounds good. Would you like to provide a patch against master for > that? I just tried to prepare a patch, but looking into it I reckoned that my solution breaks hyperref. The more I looked into the code, the more confused I am (I'm not a lisp programmer). hypperref works again half way, if i define the first occurrence of the footnote using a bare "\footnotemark", and use "\footnotemark[]" in subsequent uses. As I understand the code, "\footnotemark[]" should be used, when a footnote marker is reused, but (org-export-footnote-first-reference-p footnote-reference info) seems to be true only, if "\footnote" was used previously. But I am lost here. Kind regards Berthold Höllmann signature.asc Description: PGP signature
Re: [O] Add caching to org-buffer-property-keys
* Antoine R. Dumont wrote: > > Also, for information you could use format function. > It clarifies the prompt computation ^^: > > ``` > (defun org-read-entry-property-name () > "Read a property name from the current entry." > (let ((completion-ignore-case t) > (default-prop (or (and (org-at-property-p) >(org-match-string-no-properties 2)) > org-last-set-property))) > (org-completing-read > (format "Property [%s]: " (if default-prop default-prop "")) > (org-entry-properties nil nil) > nil nil nil nil default-prop))) > ``` Thank you very much! Nice code, eases my life. -- 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] funny emacs-lisp macro behavior in org-babel related to lexical-binding
thanks, this is the page I was looking for. Charles C. Berry writes: > On Sat, 16 Apr 2016, John Kitchin wrote: > >> I submitted a patch for this. I still am not sure I did it quite right. >> Is there a page anywhere that outlines what to do? >> >> e.g. >> >> create a branch, make changes, how to make patches, and mail them etc... >> or some other preferred method? > > > http://orgmode.org/worg/org-contribute.html#patches > > HTH, > > Chuck -- 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
Re: [O] [PATCH] Make lexical eval default for elisp src blocks
John Kitchin writes: Forgive my ignorance--I haven't really dug into lexical scoping yet--but what is the basic effect will this change have on elisp code blocks? Say I'm doing some sort-of literate development and I have some code blocks that `setq' here and there, setting vars in the Emacs environment. Will the scope of these vars now be limited to their code blocks? Would I need to disable lexical scoping? Thanks.
Re: [O] Problems with M- on Emacs 25.
Ian Barton writes: > c-h w org-metaup > org-metaup is on > > which seems to indicate that the key is correctly bound. > > (require 'org) > (require 'ob-tangle) > (eval-after-load "org" > '(progn > (define-key org-mode-map (kbd "M-") 'org-metadown) > (define-key org-mode-map (kbd "M-") 'org-metaup))) > > but emacs thinks that M- is bound to scroll other window. This probably won't be much help, but occasionally I've noticed unusual problems with keybindings in Emacs where a key seems to be bound to more than one command. You might try checking "C-h k " and see what it says. Also, try with "emacs -q" and "emacs -Q" and see if you can reproduce it that way. That might help narrow it down.
Re: [O] Problems with M- on Emacs 25.
Hi Ian, > On my computer running 24.5.1 M works as expected. However, on emacs 25.1.50.1 I get ... First of all, it is important to know in which major mode you are trying to use the M-/ bindings. They are undefined by defined and are defined in org-mode-map. It is also important to know in which minor/major mode maps you are binding those in your config. I would guess that the problem you see does not occur in an emacs -Q session? It's also important to know that a key can be bound to different command in different minor/major mode maps and in global maps. Here's the priority: 1. Minor mode map (last enabled minor mode) 2. Major mode map (e.g. org-mode-map) 3. Global map So even if M- is bound to org-metaup in org-mode-map, if foo-mode-map (some minor mode map) as that key bound to a function 'bar' and if foo-mode is enabled in an org-mode buffer, M- will now call 'bar' instead of 'org-metaup'. So it is important to understand the consequences when making new bindings to minor mode maps (or understand the maps of the minor modes you enable). > but emacs thinks that M- is bound to scroll other window. Emacs does not bind M- by default to anything. So my guess is that somewhere in your config, you are binding that key to scroll other window. (I myself have been guilty of stepping over org-mode-map bindings in the past. Now I have learnt when to bind keys in global-map vs my own minor mode map which I use when I want my bindings to override everything else). -- -- Kaushal Modi
Re: [O] [OT] A new web browser‽
On Sat, 16-04-2016, at 03:44, Eric Abrahamsen wrote: > Ramon Diaz-Uriarte writes: > >> On Thu, 14-04-2016, at 09:07, Eric Abrahamsen >> wrote: (...) Eric, do you mean the dlbsnail and S3.dlbsnail? Or do you mean the "LinkDownloads"? The last one I've not been able to get to work (seems to do nothing). >>> >>> I only installed the dlbsnail, and I think it works okay. >> >> Understood, thanks. >> >> >>> (...) >>> Apart from that, though, this setup is fairly Conkeror like. Just >>> faster, and with fewer mysterious silent crashes! >> >> Faster? How did you do that? For me it is slower, noticeably (I estimate no >> less than 3 to 4 times; from less than one second to about two or more >> seconds in many simple tasks such as opening a link from a email under >> emacs; yes, I am reusing a running firefox with "--new-window"). I guess I >> might need to disable extensions, etc? > > I'm not the right one to ask, I'm afraid -- I have no idea! I try hard > not to use browsers at all, and don't really have any plugins installed. > Conkeror used to struggle mightily just to keep up with my typing (and > this is not a boast about my typing speed, sadly), and regularly > "stopped to think" for several seconds. I never really looked into it... Thanks for the clarification. -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-25 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdia...@gmail.com ramon.d...@iib.uam.es http://ligarto.org/rdiaz
Re: [O] [OT] A new web browser‽
On Fri, 15-04-2016, at 23:49, Adam Porter wrote: > Ramon Diaz-Uriarte writes: > >> Faster? How did you do that? For me it is slower, noticeably (I estimate no >> less than 3 to 4 times; from less than one second to about two or more >> seconds in many simple tasks such as opening a link from a email under >> emacs; yes, I am reusing a running firefox with "--new-window"). I guess I >> might need to disable extensions, etc? > > Firefox has always seemed slow to open new windows for me too, at least > on Linux. Seems faster on Windows. Might have something to do with the > /usr/bin/firefox shell script, or how it calls the actual binary. OK, so not a lot of room to try and do much it seems. Thanks anyway. -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-25 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdia...@gmail.com ramon.d...@iib.uam.es http://ligarto.org/rdiaz