emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Unable to quit emacs after enabling Clocking
@ 2010-10-23 16:08 mwnn
  2010-10-24  3:21 ` Noorul Islam
  0 siblings, 1 reply; 7+ messages in thread
From: mwnn @ 2010-10-23 16:08 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,
     I added the following lines to my .emacs file to enable task 
clocking across emacs sessions:

     (setq org-clock-persist 'history)
     (org-clock-persistence-insinuate)

Now i am unable to quit Emacs with C-x C-c command. I get the following 
error message:

     Saving file /home/mwnn/.emacs.d/org-clock-save.el...
     make-backup-file-name-1: Wrong type argument: stringp, (".~")

Regards,
mwnn

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to quit emacs after enabling Clocking
  2010-10-23 16:08 Unable to quit emacs after enabling Clocking mwnn
@ 2010-10-24  3:21 ` Noorul Islam
  2010-10-24  3:24   ` mwnn
  0 siblings, 1 reply; 7+ messages in thread
From: Noorul Islam @ 2010-10-24  3:21 UTC (permalink / raw)
  To: mwnn; +Cc: emacs-orgmode@gnu.org

On Saturday, October 23, 2010, mwnn <mwnnlin@gmail.com> wrote:
> Hi all,
>     I added the following lines to my .emacs file to enable task clocking across emacs sessions:
>
>     (setq org-clock-persist 'history)
>     (org-clock-persistence-insinuate)
>
> Now i am unable to quit Emacs with C-x C-c command. I get the following error message:
>
>     Saving file /home/mwnn/.emacs.d/org-clock-save.el...
>     make-backup-file-name-1: Wrong type argument: stringp, (".~")
>

Can you get us a traceback of this?

(setq debug-on-error t)

and then try to quit emacs. It should show some traceback information.
Post it here.

Thanks and Regards
Noorul

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to quit emacs after enabling Clocking
  2010-10-24  3:21 ` Noorul Islam
@ 2010-10-24  3:24   ` mwnn
  2010-10-24  3:47     ` Noorul Islam
  0 siblings, 1 reply; 7+ messages in thread
From: mwnn @ 2010-10-24  3:24 UTC (permalink / raw)
  To: Noorul Islam; +Cc: emacs-orgmode@gnu.org

The call trace is as shown below:

Debugger entered--Lisp error: (wrong-type-argument stringp (".~"))
   expand-file-name((".~") "/home/mwnn/.emacs.d/")
   make-backup-file-name-1("/home/mwnn/.emacs.d/org-clock-save.el")
   find-backup-file-name("/home/mwnn/.emacs.d/org-clock-save.el")
   backup-buffer()
   basic-save-buffer-2()
   basic-save-buffer-1()
   basic-save-buffer()
   save-buffer()
   org-clock-save()
   run-hooks(kill-emacs-hook)
   kill-emacs()
   save-buffers-kill-emacs(nil)
   save-buffers-kill-terminal(nil)
   call-interactively(save-buffers-kill-terminal nil nil)

Regards,
mwnn

On 10/24/2010 08:51 AM, Noorul Islam wrote:
> On Saturday, October 23, 2010, mwnn <mwnnlin@gmail.com> wrote:
>> Hi all,
>>    I added the following lines to my .emacs file to enable task 
>> clocking across emacs sessions:
>>
>>    (setq org-clock-persist 'history)
>>    (org-clock-persistence-insinuate)
>>
>> Now i am unable to quit Emacs with C-x C-c command. I get the 
>> following error message:
>>
>>    Saving file /home/mwnn/.emacs.d/org-clock-save.el...
>>    make-backup-file-name-1: Wrong type argument: stringp, (".~")
>>
>
> Can you get us a traceback of this?
>
> (setq debug-on-error t)
>
> and then try to quit emacs. It should show some traceback information.
> Post it here.
>
> Thanks and Regards
> Noorul
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to quit emacs after enabling Clocking
  2010-10-24  3:24   ` mwnn
@ 2010-10-24  3:47     ` Noorul Islam
  2010-10-24  9:45       ` mwnn
  0 siblings, 1 reply; 7+ messages in thread
From: Noorul Islam @ 2010-10-24  3:47 UTC (permalink / raw)
  To: mwnn; +Cc: emacs-orgmode@gnu.org

On Sun, Oct 24, 2010 at 8:54 AM, mwnn <mwnnlin@gmail.com> wrote:
> The call trace is as shown below:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp (".~"))
>  expand-file-name((".~") "/home/mwnn/.emacs.d/")
>  make-backup-file-name-1("/home/mwnn/.emacs.d/org-clock-save.el")
>  find-backup-file-name("/home/mwnn/.emacs.d/org-clock-save.el")
>  backup-buffer()
>  basic-save-buffer-2()
>  basic-save-buffer-1()
>  basic-save-buffer()
>  save-buffer()
>  org-clock-save()
>  run-hooks(kill-emacs-hook)
>  kill-emacs()
>  save-buffers-kill-emacs(nil)
>  save-buffers-kill-terminal(nil)
>  call-interactively(save-buffers-kill-terminal nil nil)
>

What is the value of backup-directory-alist?

C-h v backup-directory-alist

I think it should be an alist.

Thanks and Regards
Noorul

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to quit emacs after enabling Clocking
  2010-10-24  3:47     ` Noorul Islam
@ 2010-10-24  9:45       ` mwnn
  2010-10-24 10:16         ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: mwnn @ 2010-10-24  9:45 UTC (permalink / raw)
  To: Noorul Islam; +Cc: emacs-orgmode@gnu.org

I fixed the issue by setting the value of backup-directory-alist as 
shown below:

(setq backup-directory-alist '((".~" . "./.emacs.d/")))

Thanks for your support,
mwnn

On 10/24/2010 09:17 AM, Noorul Islam wrote:
> On Sun, Oct 24, 2010 at 8:54 AM, mwnn<mwnnlin@gmail.com>  wrote:
>> The call trace is as shown below:
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp (".~"))
>>   expand-file-name((".~") "/home/mwnn/.emacs.d/")
>>   make-backup-file-name-1("/home/mwnn/.emacs.d/org-clock-save.el")
>>   find-backup-file-name("/home/mwnn/.emacs.d/org-clock-save.el")
>>   backup-buffer()
>>   basic-save-buffer-2()
>>   basic-save-buffer-1()
>>   basic-save-buffer()
>>   save-buffer()
>>   org-clock-save()
>>   run-hooks(kill-emacs-hook)
>>   kill-emacs()
>>   save-buffers-kill-emacs(nil)
>>   save-buffers-kill-terminal(nil)
>>   call-interactively(save-buffers-kill-terminal nil nil)
>>
>
> What is the value of backup-directory-alist?
>
> C-h v backup-directory-alist
>
> I think it should be an alist.
>
> Thanks and Regards
> Noorul
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to quit emacs after enabling Clocking
  2010-10-24  9:45       ` mwnn
@ 2010-10-24 10:16         ` Eric S Fraga
  2010-10-24 12:16           ` mwnn
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2010-10-24 10:16 UTC (permalink / raw)
  To: mwnn; +Cc: emacs-orgmode@gnu.org, Noorul Islam

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

On Sun, 24 Oct 2010 15:15:55 +0530, mwnn <mwnnlin@gmail.com> wrote:
> 
> I fixed the issue by setting the value of backup-directory-alist as
> shown below:
> 
> (setq backup-directory-alist '((".~" . "./.emacs.d/")))

I'm not sure I understand this correctly but shouldn't the first entry
be a regex file pattern?   This would only appear to match files with
a single character followed by ~?

According to the documentation for that variable, if you want all
files going to the specified directory (which in your case will be
relative to the original file's location), maybe you want ".*" as the
file regex?

eric

[-- Attachment #2: Type: text/plain, Size: 75 bytes --]

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to quit emacs after enabling Clocking
  2010-10-24 10:16         ` Eric S Fraga
@ 2010-10-24 12:16           ` mwnn
  0 siblings, 0 replies; 7+ messages in thread
From: mwnn @ 2010-10-24 12:16 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Eric S Fraga, emacs-orgmode@gnu.org, Noorul Islam

Changed the line to

(setq backup-directory-alist '((".*" . "./.emacs.d/")))

Regards,
mwnn

On 10/24/2010 03:46 PM, Eric S Fraga wrote:
> On Sun, 24 Oct 2010 15:15:55 +0530, mwnn <mwnnlin@gmail.com> wrote:
>>
>> I fixed the issue by setting the value of backup-directory-alist as
>> shown below:
>>
>> (setq backup-directory-alist '((".~" . "./.emacs.d/")))
>
> I'm not sure I understand this correctly but shouldn't the first entry
> be a regex file pattern? This would only appear to match files with
> a single character followed by ~?
>
> According to the documentation for that variable, if you want all
> files going to the specified directory (which in your case will be
> relative to the original file's location), maybe you want ".*" as the
> file regex?
>
> eric

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-24 12:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-23 16:08 Unable to quit emacs after enabling Clocking mwnn
2010-10-24  3:21 ` Noorul Islam
2010-10-24  3:24   ` mwnn
2010-10-24  3:47     ` Noorul Islam
2010-10-24  9:45       ` mwnn
2010-10-24 10:16         ` Eric S Fraga
2010-10-24 12:16           ` mwnn

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).