emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#14688: closed (24.3; todo-show errors: wrong-type-


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14688: closed (24.3; todo-show errors: wrong-type-argument and file-error)
Date: Fri, 05 Jul 2013 14:08:02 +0000

Your message dated Fri, 05 Jul 2013 16:07:44 +0200
with message-id <address@hidden>
and subject line Re: bug#14688: 24.3; todo-show errors: wrong-type-argument and 
file-error
has caused the debbugs.gnu.org bug report #14688,
regarding 24.3; todo-show errors: wrong-type-argument and file-error
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14688: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14688
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3; todo-show errors: wrong-type-argument and file-error Date: Sat, 22 Jun 2013 12:05:13 +0800
Make sure nothing is in ~/.emacs.d/todo

1. start emacs
2. todo-show and answer its queries and save the buffer
3. go to ~/.emacs.d/todo and delete files there
4. M-x todo-show

you will get a couple of errors such as:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  expand-file-name(nil)
  find-file-noselect(nil)
  todo-read-category("Enter a new category name: " add nil)
  todo-add-category(nil "")
  byte-code
  todo-show(nil)
  call-interactively(todo-show record nil)
  command-execute(todo-show record)
  execute-extended-command(nil "todo-show")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

Debugger entered--Lisp error: (file-error "Removing old name" "no such file or 
directory" "/home/leo/.emacs.d/todo/TODO.todo")
  delete-file("/home/leo/.emacs.d/todo/TODO.todo")
  byte-code
  byte-code
  todo-show(nil)
  call-interactively(todo-show record nil)
  command-execute(todo-show record)
  execute-extended-command(nil "todo-show")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)



--- End Message ---
--- Begin Message --- Subject: Re: bug#14688: 24.3; todo-show errors: wrong-type-argument and file-error Date: Fri, 05 Jul 2013 16:07:44 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
On Mon, 24 Jun 2013 21:11:10 +0200 Stephen Berman <address@hidden> wrote:

> On Mon, 24 Jun 2013 09:25:39 +0800 Leo Liu <address@hidden> wrote:
>
>> On 2013-06-24 06:18 +0800, Stephen Berman wrote:
>>> The patch fixes some other problems beside those you reported, but which
>>> arise similarly.  I found them when I tried to reproduce your recipe.
>>> When I do exactly the above four steps in your recipe, I actually don't
>>> get the errors you reported and the category is displayed normally.
>>> However, if between steps 3 and 4 of your recipe I kill the buffer
>>> visiting the todo file, then I do get the errors.  But if I don't kill
>>> the buffer and also don't save it before trying to use other Todo mode
>>> commands, other problems arise.  The patch tries to avoid these problems
>>> as well as the ones you reported.
>>
>> The patch seems to work well. Thanks.
>
> Thanks for checking.  However, I'm convinced that the problem is more
> pervasive, and rather than tacking similar patches to each place in the
> code it can arise, I'd like to see if I can modularize the fix at least
> to some extent.  This may take a bit of time.

I've now committed a revised patch as part of revision 113288 and am
closing this bug.

This is more modular than my previous patch, and it also handles the
interaction with external file deletion in some other cases, but I
haven't had time to check all cases.  Still, I've committed it now since
it's better than the status quo.  (The revision also includes a new file
deletion command and also fixes several related bugs and does some code,
doc string and comment clean up.)

Steve Berman


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]