[O] Auto-delete dated DONE notifications?

2016-02-19 Thread Sharon Kimble
I recently had to dive into the guts of a habit which I've been using
since June 2015, I know that because there were all the 1-line DONE
dated notifications! Is there anyway in which they can be auto-deleted
after a cut-off number, say '60' please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.3, fluxbox 1.3.7, emacs 24.5.3


signature.asc
Description: PGP signature


Re: [O] [PATCH] Fix TODO export in html TOC

2016-02-19 Thread Nicolas Goaziou
Hello,

Austin Walker  writes:

> I'd like to submit a fix for an issue seen by reddit user simonced.
> https://www.reddit.com/r/emacs/comments/46717x/orgmode_todo_html_export_in_toc/
>
> When exporting a TODO headline to html, the TOC will show the class to be
> "todo nilTODO". The fix is to replace nil with an empty string. I'm new to
> the org-mode mailing list, so please let me know if I made a mistake.

You didn't. I applied it. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] Melpa crashed?

2016-02-19 Thread 童俊翔
I’m trying to install packages with melpa, the result is 


error in process filter: Error retrieving: 
https://melpa.org/packagesarchive-contents (error http 404) [2 times]

What’s the problem?

Thank you!


Junxiang


Re: [O] Melpa crashed?

2016-02-19 Thread Josiah Schwab
Hello Junxiang,

On 19 February 2016 at 06:11 PST, 童俊翔 wrote:

> error in process filter: Error retrieving: 
> https://melpa.org/packagesarchive-contents (error http 404) [2 times]
>
> What’s the problem?

This suggests to me that you forgot the final slash in the MELPA URL.

Does your configuration match https://github.com/melpa/melpa#usage ?

Best,
Josiah



Re: [O] Melpa crashed?

2016-02-19 Thread 童俊翔

Yes, my configuration is the same as https://github.com/melpa/melpa#usage 




For information about GNU Emacs and the GNU system, type C-h C-a.
Opening TLS connection to ‘melpa.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 
melpa.org’...failed
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 melpa.org 
--protocols ssl3’...failed
Opening TLS connection with ‘openssl s_client -connect melpa.org:443 -no_ssl2 
-ign_eof’...
error in process sentinel: Error retrieving: 
http://elpa.gnu.org/packages/archive-contents (error connection-failed "failed 
with code 22
" :host "elpa.gnu.org" :service 80)
error in process sentinel: Error retrieving: 
http://elpa.gnu.org/packages/archive-contents (error connection-failed "failed 
with code 22
" :host "elpa.gnu.org" :service 80)
Opening TLS connection with ‘openssl s_client -connect melpa.org:443 -no_ssl2 
-ign_eof’...done
Opening TLS connection to ‘melpa.org’...done
Mark saved where search started
Package refresh done
Install package ‘org-20160215’? (y or n) y
Package menu: Operation started [Installing 1]
Saving file /Users/mac/.emacs...
Wrote /Users/mac/.emacs [2 times]
Contacting host: elpa.gnu.org:80
Parsing tar file...done
cl--assertion-failed: Assertion failed: (or (= (buffer-size tar-data-buffer) 
(buffer-size)) (eq tar-data-swapped (> (buffer-size tar-data-buffer) 
(buffer-size





It seems that I can not connect to elpa, although I can connect melpa, I still 
can not install packages through melpa.

What’s the problem?











> On 19 Feb 2016, at 23:05, Josiah Schwab  wrote:
> 
> Hello Junxiang,
> 
> On 19 February 2016 at 06:11 PST, 童俊翔 wrote:
> 
>> error in process filter: Error retrieving: 
>> https://melpa.org/packagesarchive-contents (error http 404) [2 times]
>> 
>> What’s the problem?
> 
> This suggests to me that you forgot the final slash in the MELPA URL.
> 
> Does your configuration match https://github.com/melpa/melpa#usage ?
> 
> Best,
> Josiah



Re: [O] melpa

2016-02-19 Thread John Kitchin
It could also be that orgmode does not come from melpa, it comes from "
http://orgmode.org/elpa/; If you have a list of packages that get
installed, make sure org is first. Any package that requires org will
interfere with the installation of the org package.

(setq package-archives
'(("elpy" . "http://jorgenschaefer.github.io/packages/;)
("org" . "http://orgmode.org/elpa/;)
("gnu" . "http://elpa.gnu.org/packages/;)
("melpa-stable" . "http://melpa-stable.milkbox.net/packages/;)
("melpa" . "http://melpa.org/packages/;)))

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 Fri, Feb 19, 2016 at 2:37 AM, Alan Schmitt <
alan.schm...@polytechnique.org> wrote:

> On 2016-02-19 08:00, 童俊翔  writes:
>
> > I’m using melpa, and org is updated to the newest version
> >
> > but my org-version is still 8.2.10, as follows
> >
> > Org-mode version 8.2.10 (release_8.2.10 @
> /Users/mac/.emacs.d/elpa/org-20160215/)
> >
> > How to solve this problem?
>
> You probably have a mixed installation, which can happen if org-mode is
> loaded when you install the elpa version.
>
> What you can try is the following (please anyone correct me if I'm
> giving incorrect instructions):
> - uninstall orgmode from elpa
> - restart emacs and do not load orgmode (which means do not execute any
> org-related code)
> - install the org-mode package
>
> You then need to make sure that any org-related function in your init
> file is called after `package-initialize'.
>
> Hope this helps,
>
> Alan
>
> --
> OpenPGP Key ID : 040D0A3B4ED2E5C7
> Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52
>


Re: [O] Melpa crashed?

2016-02-19 Thread Nick Dokos
童俊翔  writes:

> Yes, my configuration is the same as https://github.com/melpa/melpa#usage
>
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Opening TLS connection to ‘melpa.org’...
> Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 
> melpa.org’...failed
> Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 melpa.org 
> --protocols ssl3’...failed
> Opening TLS connection with ‘openssl s_client -connect melpa.org:443 -no_ssl2 
> -ign_eof’...
> error in process sentinel: Error retrieving: 
> http://elpa.gnu.org/packages/archive-contents (error connection-failed
> "failed with code 22
> " :host "elpa.gnu.org" :service 80)
> error in process sentinel: Error retrieving: 
> http://elpa.gnu.org/packages/archive-contents (error connection-failed
> "failed with code 22
> " :host "elpa.gnu.org" :service 80)
> Opening TLS connection with ‘openssl s_client -connect melpa.org:443 -no_ssl2 
> -ign_eof’...done
> Opening TLS connection to ‘melpa.org’...done
> Mark saved where search started
> Package refresh done
> Install package ‘org-20160215’? (y or n) y
> Package menu: Operation started [Installing 1]
> Saving file /Users/mac/.emacs...
> Wrote /Users/mac/.emacs [2 times]
> Contacting host: elpa.gnu.org:80
> Parsing tar file...done
> cl--assertion-failed: Assertion failed: (or (= (buffer-size tar-data-buffer) 
> (buffer-size)) (eq tar-data-swapped (>
> (buffer-size tar-data-buffer) (buffer-size
>
> It seems that I can not connect to elpa, although I can connect melpa, I 
> still can not install packages through
> melpa.
>
> What’s the problem?
>
> On 19 Feb 2016, at 23:05, Josiah Schwab  wrote:
>
> Hello Junxiang,
>
> On 19 February 2016 at 06:11 PST, 童俊翔 wrote:
>
> error in process filter: Error retrieving: 
> https://melpa.org/packagesarchive-contents (error http 404) [2
> times]

What Josiah Schwab pointed out is that this URL

https://melpa.org/packagesarchive-contents

looks wrong. It should look like this:

https://melpa.org/packages/archive-contents

  ^---Note the slash
  
so his suggestion is that wherever you configured this, you probably typed

https://melpa.org/packages

but you should have typed

https://melpa.org/packages/

instead.

>
> What’s the problem?
>
> This suggests to me that you forgot the final slash in the MELPA URL.
>
> Does your configuration match https://github.com/melpa/melpa#usage ?
>
> Best,
> Josiah

--
Nick




Re: [O] Melpa crashed?

2016-02-19 Thread Will O'Brien
On 19 Feb 2016 16:55, "Nick Dokos"  wrote:
>
> 童俊翔  writes:
>
> > Yes, my configuration is the same as
https://github.com/melpa/melpa#usage
> >
> > For information about GNU Emacs and the GNU system, type C-h C-a.
> > Opening TLS connection to ‘melpa.org’...
> > Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443
melpa.org’...failed
> > Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443
melpa.org --protocols ssl3’...failed
> > Opening TLS connection with ‘openssl s_client -connect melpa.org:443
-no_ssl2 -ign_eof’...
> > error in process sentinel: Error retrieving:
http://elpa.gnu.org/packages/archive-contents (error connection-failed
> > "failed with code 22
> > " :host "elpa.gnu.org" :service 80)
> > error in process sentinel: Error retrieving:
http://elpa.gnu.org/packages/archive-contents (error connection-failed
> > "failed with code 22
> > " :host "elpa.gnu.org" :service 80)
> > Opening TLS connection with ‘openssl s_client -connect melpa.org:443
-no_ssl2 -ign_eof’...done
> > Opening TLS connection to ‘melpa.org’...done
> > Mark saved where search started
> > Package refresh done
> > Install package ‘org-20160215’? (y or n) y
> > Package menu: Operation started [Installing 1]
> > Saving file /Users/mac/.emacs...
> > Wrote /Users/mac/.emacs [2 times]
> > Contacting host: elpa.gnu.org:80
> > Parsing tar file...done
> > cl--assertion-failed: Assertion failed: (or (= (buffer-size
tar-data-buffer) (buffer-size)) (eq tar-data-swapped (>
> > (buffer-size tar-data-buffer) (buffer-size
> >
> > It seems that I can not connect to elpa, although I can connect melpa,
I still can not install packages through
> > melpa.
> >
> > What’s the problem?
> >
> > On 19 Feb 2016, at 23:05, Josiah Schwab  wrote:
> >
> > Hello Junxiang,
> >
> > On 19 February 2016 at 06:11 PST, 童俊翔 wrote:
> >
> > error in process filter: Error retrieving:
https://melpa.org/packagesarchive-contents (error http 404) [2
> > times]
>
> What Josiah Schwab pointed out is that this URL
>
> https://melpa.org/packagesarchive-contents
>
> looks wrong. It should look like this:
>
> https://melpa.org/packages/archive-contents
>
>   ^---Note the slash
>
> so his suggestion is that wherever you configured this, you probably typed
>
> https://melpa.org/packages
>
> but you should have typed
>
> https://melpa.org/packages/
>
> instead.

It's elpa.gnu.org which is the problem, not melpa, this is causing a
problem for me too today. Anyone know if this is a planned outage or if
there is anyone to contact about this?

It seems that let-alist is only available from the GNU site -- are there
any mirrors? A quick google doesn't turn much up (but I'm very short
sighted with Google results).

Many thanks,

Will


Re: [O] melpa

2016-02-19 Thread 童俊翔
It seems that there is some problems in elpa.gnu.org , I 
can not connect to it even using web browser.

elpa.gnu.orgfailed   *http elpa --   (network connection to 
elpa.gnu.org)
melpa.org   run  *http melpa... --   /bin/bash -c openssl 
s_client -connect melpa.org:443 -no_ssl2 -ign_eof



Junxiang





> On 20 Feb 2016, at 00:44, John Kitchin  wrote:
> 
> It could also be that orgmode does not come from melpa, it comes from 
> "http://orgmode.org/elpa/ " If you have a list of 
> packages that get installed, make sure org is first. Any package that 
> requires org will interfere with the installation of the org package.
> 
> (setq package-archives
>   '(("elpy" . "http://jorgenschaefer.github.io/packages/ 
> ")
>   ("org" . "http://orgmode.org/elpa/ ")
>   ("gnu" . "http://elpa.gnu.org/packages/ 
> ")
>   ("melpa-stable" . "http://melpa-stable.milkbox.net/packages/ 
> ")
>   ("melpa" . "http://melpa.org/packages/ ")))
> 
> 
> 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 Fri, Feb 19, 2016 at 2:37 AM, Alan Schmitt  > wrote:
> On 2016-02-19 08:00, 童俊翔  > writes:
> 
> > I’m using melpa, and org is updated to the newest version
> >
> > but my org-version is still 8.2.10, as follows
> >
> > Org-mode version 8.2.10 (release_8.2.10 @ 
> > /Users/mac/.emacs.d/elpa/org-20160215/)
> >
> > How to solve this problem?
> 
> You probably have a mixed installation, which can happen if org-mode is
> loaded when you install the elpa version.
> 
> What you can try is the following (please anyone correct me if I'm
> giving incorrect instructions):
> - uninstall orgmode from elpa
> - restart emacs and do not load orgmode (which means do not execute any
> org-related code)
> - install the org-mode package
> 
> You then need to make sure that any org-related function in your init
> file is called after `package-initialize'.
> 
> Hope this helps,
> 
> Alan
> 
> --
> OpenPGP Key ID : 040D0A3B4ED2E5C7
> Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52
> 



Re: [O] melpa

2016-02-19 Thread Will O'Brien
On 19 Feb 2016 19:25, "童俊翔"  wrote:
>
> It seems that there is some problems in elpa.gnu.org, I can not connect
to it even using web browser.
>
> elpa.gnu.orgfailed   *http elpa --   (network connection
to elpa.gnu.org)
> melpa.org   run  *http melpa... --   /bin/bash -c openssl
s_client -connect melpa.org:443 -no_ssl2 -ign_eof
>

Seems it is back up now.

Will


[O] get current headline?

2016-02-19 Thread Matt Price
I feel like I should know how to do this -- how od I retrieve the current
headline as an org-element object?

context: I want to take a headline like this

** Jane Doe
- demonstrates an understanding of research topic  :: yes
- Annotated Bibliography :: very nicely done
- Grammar and Spelling :: no major problems, but see inline comments
- Further Comments :: see file
- Grade :: A

And set the headline's "GRADE" property to the value of the "- Grade ::"
line.  But, I want to make sure that I'm still in the current headline when
I set the property (rather than accidentally navigating to the next
headline, because the current headline doesn't contain a "- Grade ::" lin).

Tanks as always for the help! I'm pretty sure I've asked this question
before but can't find the answer...

m


[O] Latex package nicefrac for HTML export

2016-02-19 Thread Lawrence Bottorff
I've got Latex's *nicefrac *working fine for a Latex export. I've put

#+LaTeX_HEADER: \usepackage{nicefrac}

at the top of my file, and this inlined

$\pi = \nicefrac{C}{d}$

But for an HTML export, it's not seeing it, giving back π=\nicefracCd. Is
there anything I can do to get my HTML export to handle nicefrac properly?

LB


Re: [O] Latex package nicefrac for HTML export

2016-02-19 Thread Marcin Borkowski

On 2016-02-19, at 22:26, Lawrence Bottorff  wrote:

> I've got Latex's *nicefrac *working fine for a Latex export. I've put
>
> #+LaTeX_HEADER: \usepackage{nicefrac}
>
> at the top of my file, and this inlined
>
> $\pi = \nicefrac{C}{d}$
>
> But for an HTML export, it's not seeing it, giving back π=\nicefracCd. Is
> there anything I can do to get my HTML export to handle nicefrac properly?

Quick googling reveals that MathJax doesn't seem to support \nicefrac.
If you don't need regular fractions (maybe you're writing a cookbook?),
in a pinch you can say

#+LaTeX_HEADER: \usepackage{nicefrac}   \let\frac=\nicefrac

and just use \frac.

> LB

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



[O] How to set bibliography style to export docx by ox-pandoc

2016-02-19 Thread 童俊翔
Is there any bst template for docx?  How do you do it?

Thank you!


Junxiang



Re: [O] Latex package nicefrac for HTML export

2016-02-19 Thread Lawrence Bottorff
I found this

and
added this to my org file:

. . .
#+begin_html

MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { var
MML = MathJax.ElementJax.mml, TEX = MathJax.InputJax.TeX;
TEX.Definitions.macros.bfrac = "myBevelFraction"; TEX.Parse.Augment({
myBevelFraction: function (name) { var num = this.ParseArg(name), den =
this.ParseArg(name); this.Push(MML.mfrac(num,den).With({bevelled: true}));
} }); });

#+end_html
. . .

then this:

$\pi = \bfrac{C}{d}$

has the slanted fraction look in HTML.

On Fri, Feb 19, 2016 at 9:35 PM, Marcin Borkowski  wrote:

>
> On 2016-02-19, at 22:26, Lawrence Bottorff  wrote:
>
> > I've got Latex's *nicefrac *working fine for a Latex export. I've put
> >
> > #+LaTeX_HEADER: \usepackage{nicefrac}
> >
> > at the top of my file, and this inlined
> >
> > $\pi = \nicefrac{C}{d}$
> >
> > But for an HTML export, it's not seeing it, giving back π=\nicefracCd. Is
> > there anything I can do to get my HTML export to handle nicefrac
> properly?
>
> Quick googling reveals that MathJax doesn't seem to support \nicefrac.
> If you don't need regular fractions (maybe you're writing a cookbook?),
> in a pinch you can say
>
> #+LaTeX_HEADER: \usepackage{nicefrac}   \let\frac=\nicefrac
>
> and just use \frac.
>
> > LB
>
> Best,
>
> --
> Marcin Borkowski
> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
> Faculty of Mathematics and Computer Science
> Adam Mickiewicz University
>


Re: [O] melpa

2016-02-19 Thread 童俊翔

I’ve reinstalled emacs and all the packages, it works now. Thank you!






> On 20 Feb 2016, at 00:44, John Kitchin  wrote:
> 
> It could also be that orgmode does not come from melpa, it comes from 
> "http://orgmode.org/elpa/ " If you have a list of 
> packages that get installed, make sure org is first. Any package that 
> requires org will interfere with the installation of the org package.
> 
> (setq package-archives
>   '(("elpy" . "http://jorgenschaefer.github.io/packages/ 
> ")
>   ("org" . "http://orgmode.org/elpa/ ")
>   ("gnu" . "http://elpa.gnu.org/packages/ 
> ")
>   ("melpa-stable" . "http://melpa-stable.milkbox.net/packages/ 
> ")
>   ("melpa" . "http://melpa.org/packages/ ")))
> 
> 
> 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 Fri, Feb 19, 2016 at 2:37 AM, Alan Schmitt  > wrote:
> On 2016-02-19 08:00, 童俊翔  > writes:
> 
> > I’m using melpa, and org is updated to the newest version
> >
> > but my org-version is still 8.2.10, as follows
> >
> > Org-mode version 8.2.10 (release_8.2.10 @ 
> > /Users/mac/.emacs.d/elpa/org-20160215/)
> >
> > How to solve this problem?
> 
> You probably have a mixed installation, which can happen if org-mode is
> loaded when you install the elpa version.
> 
> What you can try is the following (please anyone correct me if I'm
> giving incorrect instructions):
> - uninstall orgmode from elpa
> - restart emacs and do not load orgmode (which means do not execute any
> org-related code)
> - install the org-mode package
> 
> You then need to make sure that any org-related function in your init
> file is called after `package-initialize'.
> 
> Hope this helps,
> 
> Alan
> 
> --
> OpenPGP Key ID : 040D0A3B4ED2E5C7
> Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52
>