[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23.0.60; (error "Selecting deleted buffer")
From: |
Nick Dokos |
Subject: |
23.0.60; (error "Selecting deleted buffer") |
Date: |
Sat, 7 Jun 2008 09:29:54 -0400 (EDT) |
I start emacs from the build directory in a terminal window like this:
./emacs -Q -nw -nl
I load org-mode by doing C-x e on the following two lines:
(add-to-list 'load-path (expand-file-name "~/src/emacs/org/git/org-mode/lisp"))
(require 'org-install)
and set debug-on-error to t.
I use the latest org-mode, obtained from the git repository at
git://repo.or.cz/org-mode.git. For maximum debugging information, I
deliberately deleted all the .elc files in the org-mode installation
after making it (I do get the error with the .elc files present).
But I just tried to reproduce it with the version of org-mode distributed
with emacs23: it happens there too, at least with compiled org-mode; I
did not try to delete the .elc files in this setup though.
I visit a file with the following contents (it comes from the org-mode
manual):
* Birthdays and similar stuff
#+CATEGORY: Holiday
%%(org-calendar-holiday) ; special function for holiday names
#+CATEGORY: Ann
%%(diary-anniversary 14 5 1956) Arthur Dent is %d years old
Then I execute C-c C-e i which dispatches to org-export-icalendar-this-file
through org-export. I get an error with the following backtrace:
Debugger entered--Lisp error: (error "Selecting deleted buffer")
set-buffer(#<killed buffer>)
(save-current-buffer (set-buffer sexp-buffer) (insert sexp "\n"))
(with-current-buffer sexp-buffer (insert sexp "\n"))
(catch :skip (org-agenda-skip) (setq b (match-beginning 0)) (goto-char (1-
...)) (forward-sexp 1) (end-of-line 1) (setq sexp (buffer-substring b ...))
(with-current-buffer sexp-buffer (insert sexp "\n")) (princ
(org-diary-to-ical-string sexp-buffer)))
(while (re-search-forward "^&?%%(" nil t) (catch :skip (org-agenda-skip)
(setq b ...) (goto-char ...) (forward-sexp 1) (end-of-line 1) (setq sexp ...)
(with-current-buffer sexp-buffer ...) (princ ...)))
(progn (goto-char (point-min)) (while (re-search-forward "^&?%%(" nil t)
(catch :skip ... ... ... ... ... ... ... ...)))
(if (and org-icalendar-include-sexps (condition-case nil ... ...) (fboundp
...)) (progn (goto-char ...) (while ... ...)))
(when (and org-icalendar-include-sexps (condition-case nil ... ...) (fboundp
...)) (goto-char (point-min)) (while (re-search-forward "^&?%%(" nil t) (catch
:skip ... ... ... ... ... ... ... ...)))
(save-excursion (goto-char (point-min)) (while (re-search-forward re1 nil t)
(catch :skip ... ... ... ... ... ... ... ... ... ... ... ...)) (when (and
org-icalendar-include-sexps ... ...) (goto-char ...) (while ... ...)) (when
org-icalendar-include-todo (setq prefix "TODO-") (goto-char ...) (while ...
...)))
(let ((re1 ...) (re2 ...) (dts ...) hd ts ts2 state status (inc t) pos b sexp
rrule scheduledp deadlinep prefix tmp pri category entry location summary desc
uid (sexp-buffer ...)) (org-refresh-category-properties) (save-excursion
(goto-char ...) (while ... ...) (when ... ... ...) (when
org-icalendar-include-todo ... ... ...)))
org-print-icalendar-entries(nil)
(let ((standard-output ical-buffer)) (if combine (and ... ... ...)
(org-start-icalendar-file category)) (org-print-icalendar-entries combine)
(when (or ... ...) (org-finish-icalendar-file) (set-buffer ical-buffer)
(save-buffer) (run-hooks ...) (and ... ... ...)))
(catch (quote nextfile) (org-check-agenda-file file) (set-buffer
(org-get-agenda-file-buffer file)) (unless combine (setq ical-file ...) (setq
ical-buffer ...) (with-current-buffer ical-buffer ...)) (setq category (or
org-category ...)) (if (symbolp category) (setq category ...)) (let (...) (if
combine ... ...) (org-print-icalendar-entries combine) (when ... ... ... ...
... ...)))
(while (setq file (pop files)) (catch (quote nextfile) (org-check-agenda-file
file) (set-buffer ...) (unless combine ... ... ...) (setq category ...) (if ...
...) (let ... ... ... ...)))
(let* ((dir ...) file ical-file ical-buffer category started
org-agenda-new-buffers) (and (get-buffer "*ical-tmp*") (kill-buffer
"*ical-tmp*")) (when combine (setq ical-file ... ical-buffer ...) (set-buffer
ical-buffer) (erase-buffer)) (while (setq file ...) (catch ... ... ... ... ...
... ...)) (org-release-buffers org-agenda-new-buffers))
(save-excursion (org-prepare-agenda-buffers files) (let* (... file ical-file
ical-buffer category started org-agenda-new-buffers) (and ... ...) (when
combine ... ... ...) (while ... ...) (org-release-buffers
org-agenda-new-buffers)))
org-export-icalendar(nil "/home/nick/lib/org/ical.org")
org-export-icalendar-this-file()
call-interactively(org-export-icalendar-this-file)
(if (and bg (nth 2 ass)) (let (...) (set-process-sentinel p ...) (message
"Background process \"%s\": started" p)) (call-interactively (nth 1 ass)))
(let* ((bg ...) (help "[t] insert the export option template\n[v] limit
export to visible part of outline tree\n\n[a] export as ASCII\n\n[h] export as
HTML\n[H] export as HTML to temporary buffer\n[R] export region as HTML\n[b]
export as HTML and browse immediately\n[x] export as XOXO\n\n[l] export as
LaTeX\n[L] export as LaTeX to temporary buffer\n\n[i] export current file as
iCalendar file\n[I] export all agenda files as iCalendar files\n[c] export
agenda files into combined iCalendar file\n\n[F] publish current file\n[P]
publish current project\n[X] publish... (project will be prompted for)\n[A]
publish all projects") (cmds ...) r1 r2 ass) (save-window-excursion
(delete-other-windows) (with-output-to-temp-buffer "*Org Export/Publishing
Help*" ...) (message "Select command: ") (setq r1 ...)) (setq r2 (if ... ...
r1)) (unless (setq ass ...) (error "No command associated with key %c" r1)) (if
(and bg ...) (let ... ... ...) (call-interactively ...)))
org-export(nil)
call-interactively(org-export nil nil)
I posted a message to the org-mode list and it turns out that several
people have seen the same "deleted buffer" error but in widely
disparate situations, some involving org-mode, some not. One person
attributed it to Debian's site-lisp configuration, but for me it
happens on emacsen installed from CVS (both on 22.1.50.2 which is what
I use normally and also on 23.0.60.1 which I installed specifically
for this test.) I tried the same test on an emacs 21 on an old RHEL4.1
installation and I could not reproduce it there.
In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.10.11)
of 2008-05-28 on alphaville.zko.hp.com
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=SCIM
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Debugger
Minor modes in effect:
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
ESC [ > 1 ; 1 6 0 1 ; 0 c C-x C-f ~ / e l i s p / c
o n f i g / o r g - c o n TAB RET C-x C-f o r g - s
t r i TAB RET C-n C-p C-e C-x C-e C-n C-n C-n C-n C-n
C-x C-e C-x C-f ~ / l i b / o r g / i c a l TAB o r
g RET C-n TAB C-c C-e i ESC x s e t - v a r RET d e
b u g - o n - e r r o t DEL r RET t RET C-c C-e i C-p
C-@ C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-n C-n C-n C-n C-p C-p C-p C-p ESC x e m a c s - v
e r s i o n RET ESC x r e p o r t - e m a c - DEL s
- b u g RET
Recent messages:
(New file)
Wrote /tmp/orgics11967M_n
save-current-buffer: Selecting deleted buffer
Select command:
(New file)
Wrote /tmp/orgics11967cqJ
Entering debugger...
Mark set
GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.10.11) of 2008-05-28 on
alphaville.zko.hp.com
Auto-saving...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 23.0.60; (error "Selecting deleted buffer"),
Nick Dokos <=