From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: bugs in org-remember-backup-directory Date: Thu, 18 Jun 2009 15:59:44 -0700 Message-ID: <20524da70906181559n25006613i533e65bffde93ba8@mail.gmail.com> References: <20524da70904251508w523010efj6a07e25f1cbb03fa@mail.gmail.com> <20524da70905041014u7378d152hdcee65fdc7fc4739@mail.gmail.com> <20524da70905041057w64e3ba2fr4c5c9f9199c51d9c@mail.gmail.com> <20524da70906041429n5270a4f4ice50676d2587a9d0@mail.gmail.com> <20524da70906042059n4d9f0f78qd6d80c5ca48e3377@mail.gmail.com> <5B1C687E-88F3-44B6-A5FC-D704F3C4D598@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHQaa-0005hS-DD for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 19:00:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHQaV-0005Z6-IU for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 19:00:11 -0400 Received: from [199.232.76.173] (port=36556 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHQaV-0005Ym-Dg for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 19:00:07 -0400 Received: from wa-out-1112.google.com ([209.85.146.180]:54936) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHQaU-0005Ik-RW for emacs-orgmode@gnu.org; Thu, 18 Jun 2009 19:00:07 -0400 Received: by wa-out-1112.google.com with SMTP id m34so318934wag.26 for ; Thu, 18 Jun 2009 16:00:05 -0700 (PDT) In-Reply-To: <5B1C687E-88F3-44B6-A5FC-D704F3C4D598@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Strange that it is not reproducible even with the minimal startup. It happens to me every time I save a remember that is long enough to trigger auto-save. On Fri, Jun 5, 2009 at 00:00, Carsten Dominik wr= ote: > I am still unable to reproduce this. > > Anyone? > > - Carsten > > On Jun 5, 2009, at 5:59 AM, Samuel Wales wrote: > >> The bug still exists. >> >> To reproduce, run emacs -Q --load , remember >> a task, make enough changes to trigger do-auto-save, then c-x c-s. =A0It >> should tell you it has changed and ask if you want to save. >> >> You will have to set 3 env vars for dirs of your choice. >> I didn't want to risk making dirs for you. >> >> (require 'cl) >> >> (defun alpha-add-path (p) (setq load-path (cons p load-path))) >> >> (alpha-add-path (concat (getenv "delorgsrc") "/lisp")) >> (alpha-add-path (concat (getenv "delpkgbef") "/remember")) >> >> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) >> >> (defvar alpha-mac-font >> =A0"-apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1") >> '(progn >> =A0(progn >> =A0 (defconst alpha-mac-font-2 >> =A0 =A0 "-apple-courier-medium-r-normal--*-*-*-*-*-240-*") >> =A0 (set-frame-font alpha-mac-font-2)) >> =A0) >> (set-frame-font alpha-mac-font) >> >> (require 'org-install) >> >> (defvar alpha-org-map (make-sparse-keymap "alpha org map")) >> (define-key global-map [f8] alpha-org-map) >> (define-key alpha-org-map [f8] 'org-remember) =A0 =A0 =A0 =A0 =A0 =A0 ;c= -c r >> (define-key alpha-org-map "o" 'org-open-at-point-global) ;c-c o >> >> (require 'remember-autoloads) >> (org-remember-insinuate) >> >> (setq org-remember-templates >> =A0 =A0 `(("conversation" ?c =A0 =A0"* CONVERSATION %U %?\n%i"))) >> >> (add-hook 'remember-mode-hook 'delete-other-windows) >> (setf org-remember-backup-directory >> =A0 =A0 (getenv "demacsremember")) >> ;;;(setf org-remember-backup-directory nil) >> (add-hook 'org-remember-mode-hook >> =A0 =A0 =A0 =A0 (lambda () (when org-remember-backup-directory >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(cd org-remember-backup-direc= tory)))) >> (add-hook 'org-remember-mode-hook >> =A0 =A0 =A0 =A0 (lambda () >> =A0 =A0 =A0 =A0 =A0 (define-key org-remember-mode-map >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 "\C-x\C-s" 'org-remember-finalize) >> =A0 =A0 =A0 =A0 =A0 ;;i think org-mode-map will override? >> =A0 =A0 =A0 =A0 =A0 (define-key org-remember-mode-map >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 "\C-c\C-c" nil))) > > --=20 Myalgic encephalomyelitis denialism is causing death and severe suffering, worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm