From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edward Welbourne Newsgroups: gmane.emacs.bugs Subject: Re: recover-session doesn't Date: Tue, 30 Jul 2002 18:30:42 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <200207111201.g6BC1og16997@aztec.santafe.edu> Reply-To: eddy@opera.no NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1028046661 31354 127.0.0.1 (30 Jul 2002 16:31:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2002 16:31:01 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17ZZtj-00089b-00 for ; Tue, 30 Jul 2002 18:30:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17ZZuA-0004gv-00; Tue, 30 Jul 2002 12:31:26 -0400 Original-Received: from pat.opera.com ([193.69.113.22] helo=whorl.intern.opera.no) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17ZZtY-0004dj-00; Tue, 30 Jul 2002 12:30:48 -0400 Original-Received: from eddy by whorl.intern.opera.no with local (Exim 3.35 #1 (Debian)) id 17ZZtS-0002fs-00; Tue, 30 Jul 2002 18:30:42 +0200 Original-To: rms@gnu.org In-Reply-To: <200207111201.g6BC1og16997@aztec.santafe.edu> (message from Richard Stallman on Thu, 11 Jul 2002 06:01:50 -0600 (MDT)) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2997 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2997 > If you can tell us how to reproduce this problem, we will investigate. So this afternoon emacs hung terminally and had to be shot down. Once I'd done failing to reproduce problems with customize, I duly had a go at trying to reproduce problems with recover-session. I turned my ~/.emacs into ;; -*- lisp -*- (setq eddy-home-dir (or (getenv "HOME") "/home/eddy") eddy-elisp-dir (concat eddy-home-dir "/.sys/elisp")) (add-to-list 'load-path eddy-elisp-dir) ;;(load "init") ; recursively inlined below ;; see /usr/share/doc/emacs21/etc/NEWS for lots of neato features (server-start) ;; emacsclient [ +line[:column] ] filename (setq server-kill-new-buffers t) ;; server-temp-file-regexp (tool-bar-mode 0) ;; worthless *junk* buttons (menu-bar-mode 0) ;; +ve value to get menus (mouse-wheel-mode t) ;; configure: mouse-wheel-follow-mouse, mouse-wheel-scroll-amount (auto-compression-mode 1) (global-font-lock-mode 1) (set-language-environment "Latin-9") ;; want UTF-8 as encoding (setq next-line-add-newlines t require-final-newline "ask" default-indicate-empty-lines "red") ;; also NB region command: M-x delete-trailing-whitespace RET (setq-default show-trailing-whitespace t) (set-face-background 'trailing-whitespace "grey18") (setenv "QTDIR") ;; i.e. unset it (set 'rmail-file-name "/home/eddy/mail/pending/primary") (set 'rmail-primary-inbox-list (list "/var/mail/eddy" "po:eddy")) (set 'rmail-user-mail-address-regexp "eddy\(\|@opera.\(no\|com\)\|@chaos.org.uk\)") (set 'rmail-confirm-expunge nil) (set 'rmail-pop-password-required t) (set 'rmail-delete-after-output t) (autoload 'html-mode "sgml-mode" "Edit HTML docs" t) (setq auto-mode-alist (cons (cons "\\.html?$" 'html-mode) auto-mode-alist)) ;; testing ... (open-dribble-file "~/e-session") and fired up a new session, 0x8000078recose yyes  o 0x800003c 0x800003e 0x8000077BufferList y (all one line, no newline at end, newlines added to quote after each , plus blank lines at start and end, for legibility and kindness to mailers). I don't know what the dribble-file thinks it's saying at the start: I clicked on the window furniture for maximising both vertically and horizontally, then typed M-x reco TAB and the rest went as reported, up to the subsequent 0x800... bits, which again flummox me. This achieved more than I've ever seen before from M-x recover-session: I didn't get the message I reported previously, "No files can be recovered from this session now". However, all I did get was MR Buffer Size Mode File -- ------ ---- ---- ---- .* *ecma glitches*#386g1R 258 Fundamental ~/*ecma glitches*#386g1R *% .saves-* 319 Dired by date ~/.emacs.d/auto-save-list/.saves-* *scratch* 191 Lisp Interaction * *Messages* 839 Fundamental % *Directory* 152 Help where the session being recovered from had lots of files open, along with several (renamed) compilation buffers, one of which was still running (or, perhaps, something had gone so wrong with it as to be the cause of emacs' hang). The save file said: /home/eddy/work/c2-stb/Makefile.config /home/eddy/work/c2-stb/#Makefile.config# /home/eddy/work/notes.c2 /home/eddy/work/#notes.c2# /home/eddy/work/qte-release6/Makefile.config /home/eddy/work/qte-release6/#Makefile.config# /home/eddy/work/qt-embed/Makefile.config /home/eddy/work/qt-embed/#Makefile.config# /home/eddy/work/i3-release/Makefile.config /home/eddy/work/i3-release/#Makefile.config# /home/eddy/work/qt-desktop/Makefile.config /home/eddy/work/qt-desktop/#Makefile.config# /home/eddy/work/notes /home/eddy/work/#notes# /home/eddy/work/qt-embed/linux/embed/example2/package.sh /home/eddy/work/qt-embed/linux/embed/example2/#package.sh# /home/eddy/#*ecma glitches*#386g1R# /home/eddy/#*mail*#386jND# so it clearly *did* know about the assorted files I had open, albeit I had no #...# files open (I assume those are artefacts, aside from the two open #*...*# mail buffers). [Each Makefile.config's buffer was re-named to Makefile.config/* for some project-specific *.] Recovering from it didn't open them: then again, I believe I'd saved all of them before starting the last compile, during which emacs hung. So all I lost was the session state ... which is what I wanted to recover. Hope this is some help, even though it doesn't reproduce the problem I originally reported. Eddy.