[O] agenda view custom command, restrict buffer
Today I realized how simple a command I liked in C-c a < a d. This would give an agenda-view of the current buffer and current day. So I thought, let's practice translating such key sequences to custom-commands. And I hit a speed bump. It seems not everything available in the agenda command menu is available as an existing variable for custom commands. I naively tried the following, but I don't think it works. (setq org-agenda-custom-commands `(("c" "View today's clocking" ((agenda "") ) ((org-agenda-span 'day) (org-agenda-restrict (current-buffer)) )) )) Perhaps a function could be written, but more so I was just surprised that custom-commands seemed to be missing an option available in the agenda-view menu. For now, I will just try to rely on simpler alternatives, such as (setq org-agenda-custom-commands `(("c" "View today's clocking" ((agenda "") ) ((org-agenda-span 'day) (org-agenda-files `(,repeats)) )) )) Brady
Re: [O] emailing agenda view
Ken writes: Here is a function to email the buffer: (defun email-buffer () "Send region as the body of an email." (interactive) (let ((content (buffer-string))) (compose-mail) (message-goto-body) (insert content) (message-goto-to))) Just run that from your agenda, and then fill in email addresses and subject, and send. > Is there anyway to email the agenda view to a list f recipients? > > Thank you, > Ken > > -- > You will be divorced within a year. > > -- --- John Kitchin Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
[O] trying to add hline refs ("@I$2") in lhs of formulae
Hello Org users, this example: | | | | |---+-+---| | | | | |---+-+---| | | | | #+TBLFM: @I$2='(random 1000) works incorrectly for me (Org 8.2.7c from ELPA, Emacs 24.3, Win7): C-c C-c on the #+TBLFM line updates four cells (@2$1, @2$2, @3$1, @3$2) instead of one (expected response: update of @2$2 only). I crafted a tiny change for my org-table.el to assign 1x1 cell addresses "@I$2", "@III-2$4"... in the left-hand side of table formulae. The diff file is attached here: *** c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140908/org-table-original.el Sat Sep 13 16:54:54 2014 --- c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140908/org-table.el Sun Sep 14 23:39:13 2014 *** *** 3216,3221 --- 3216,3231 ((string-match "^@-?[-+0-9]+\\$-?[0-9]+$" lhs) ;; This just refers to one fixed field (push e res)) +((string-match "^@\\(I+\\)\\(\\([-+]\\)?\\([0-9]+\\)\\)?\\(\\$-?[0-9]+\\)$" lhs) + ;; 1 2 3 4 5 + ;; This just refers to one field with hline-based row fixed column + (let* + ( + (m1 (match-string 1 lhs)) + (m2 (match-string 2 lhs)) + (m5 (match-string 5 lhs)) + (m1m2line (org-table-line-to-dline (org-table-get-descriptor-line (concat m1 m2) + (push (cons (format "@%d%s" m1m2line m5) (cdr e)) res))) ((string-match "^[a-zA-Z][_a-zA-Z0-9]*$" lhs) ;; This just refers to one fixed named field (push e res)) May I please ask for some feedback to Org users who installed Org from ELPA: if you apply the diff, does example-hline-refs.org work properly (i.e. formula recalculation updates only cell @2$2)? Does it work good also for other values like @II-1$2, @I+1$1 etc.? Thanks in advance for any feedback you may provide, kindest regards. Andrea PS1: 1xN ranges like "@I", "@I+1" aren't managed by the proposed tiny change. Another (similar) tiny change would be needed in order to support them. PS2: if you want to test the diff without messing your Org installation, you might simply... - open org-table.el - copy&paste the additional code into function org-table-expand-lhs-ranges - reevaluate the (defun org-table-expand-lhs-ranges ...) statement with C-x C-e - kill the org-table.el buffer without saving the file - play again with example-hline-refs.org PS3: I believe the change will not work for Org versions installed from git master, because at some point in org table there's a code check forbidding hline refs: (if (string-match "^@-?I+" (car x)) (user-error "Can't assign to hline relative reference")) Motivations for that code check were discussed here: http://thread.gmane.org/gmane.emacs.orgmode/71562 , I hope the proposed diff could make the check unnecessary or less strict in the future.
[O] org-info-js site not working ?
I've attached a screen shot of what I see when I go to: http://orgmode.org/worg/code/org-info-js/index.html Is it just on my end or is there something wrong with the site ? If I click on the "Show Org Source" the TOC shows up for less than a second and disappears. I can view it if I use w3m or links2 (text based browsers), but not in Chromium or Conkeror. cheers, mehul -- Mehul N. Sanghvi email: mehul.sang...@gmail.com
Re: [O] [BUG] org-latex-export fails in spanish language
Nicolas Goaziou writes: > Hello, > > davi...@es.gnu.org (David Arroyo Menéndez) writes: > >> I'm exporting an org file to latex using the git repository. >> >> In the org file I've added #+LANGUAGE: es in the header. >> >> The language options doesn't appear in tex file. IMHO is necessary add >> \usepackage[spanish]{babel}. I suppose that is a problem with >> org-latex-guess-babel-language. > > You need to put "\usepackage[spanish]{babel}" or > "\usepackage[AUTO]{babel}" in your header (with a keyword or in your > class definition). > > Org doesn't load it automatically for you. > > > Regards, Thanks, now the conversion is running. Regards.
[O] emailing agenda view
Is there anyway to email the agenda view to a list f recipients? Thank you, Ken -- You will be divorced within a year.
[O] [SOLVED] (was: how to change floating point rep in the spreadsheet)
>> "Uwe" == Uwe Brauer writes: > When I have a table with the following calculation > (7/6)*(B&+C&+D&+E&);%0f Sorry I forgot the "." (7/6)*(B&+C&+D&+E&);%.1f That works as expected. Sorry for the noise Uwe Brauer
[O] how to change floating point rep in the spreadsheet
When I have a table with the following calculation (7/6)*(B&+C&+D&+E&) Which gives for example 7.000 But how can I change that format to 7? I thought (7/6)*(B&+C&+D&+E&);%0f But it did not work thanks Uwe Brauer
Re: [O] [BUG] org-latex-export fails in spanish language
Hello, davi...@es.gnu.org (David Arroyo Menéndez) writes: > I'm exporting an org file to latex using the git repository. > > In the org file I've added #+LANGUAGE: es in the header. > > The language options doesn't appear in tex file. IMHO is necessary add > \usepackage[spanish]{babel}. I suppose that is a problem with > org-latex-guess-babel-language. You need to put "\usepackage[spanish]{babel}" or "\usepackage[AUTO]{babel}" in your header (with a keyword or in your class definition). Org doesn't load it automatically for you. Regards, -- Nicolas Goaziou
[O] [BUG] org-latex-export fails in spanish language
Hello, I'm exporting an org file to latex using the git repository. In the org file I've added #+LANGUAGE: es in the header. The language options doesn't appear in tex file. IMHO is necessary add \usepackage[spanish]{babel}. I suppose that is a problem with org-latex-guess-babel-language. Thanks in advance.