From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: bugs in org-remember-backup-directory Date: Fri, 26 Jun 2009 15:27:24 -0700 Message-ID: <20524da70906261527j51b643cfse4203c409d8b90f@mail.gmail.com> References: <20524da70904251508w523010efj6a07e25f1cbb03fa@mail.gmail.com> <20524da70905041014u7378d152hdcee65fdc7fc4739@mail.gmail.com> <20524da70905041057w64e3ba2fr4c5c9f9199c51d9c@mail.gmail.com> <20524da70906041429n5270a4f4ice50676d2587a9d0@mail.gmail.com> <20524da70906042059n4d9f0f78qd6d80c5ca48e3377@mail.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 1MKJtf-00033Q-TN for emacs-orgmode@gnu.org; Fri, 26 Jun 2009 18:27:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKJtb-0002xz-Sg for emacs-orgmode@gnu.org; Fri, 26 Jun 2009 18:27:51 -0400 Received: from [199.232.76.173] (port=37164 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKJtb-0002xl-N1 for emacs-orgmode@gnu.org; Fri, 26 Jun 2009 18:27:47 -0400 Received: from mail-pz0-f182.google.com ([209.85.222.182]:41425) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MKJtb-0005iU-5D for emacs-orgmode@gnu.org; Fri, 26 Jun 2009 18:27:47 -0400 Received: by pzk12 with SMTP id 12so2132119pzk.14 for ; Fri, 26 Jun 2009 15:27:44 -0700 (PDT) In-Reply-To: <20524da70906042059n4d9f0f78qd6d80c5ca48e3377@mail.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 If org-remember-finalize (when buffer-file-name (save-buffer)) is only for org-remember-directory purposes, then perhaps running do-auto-save instead of save-buffer will fix the bug. Thanks. On Thu, Jun 4, 2009 at 20:59, 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 =A0(defconst alpha-mac-font-2 > =A0 =A0 =A0"-apple-courier-medium-r-normal--*-*-*-*-*-240-*") > =A0 =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 =A0`(("conversation" ?c =A0 =A0"* CONVERSATION %U %?\n%i"))) > > (add-hook 'remember-mode-hook 'delete-other-windows) > (setf org-remember-backup-directory > =A0 =A0 =A0(getenv "demacsremember")) > ;;;(setf org-remember-backup-directory nil) > (add-hook 'org-remember-mode-hook > =A0 =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 =A0(lambda () > =A0 =A0 =A0 =A0 =A0 =A0(define-key org-remember-mode-map > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"\C-x\C-s" 'org-remember-finalize) > =A0 =A0 =A0 =A0 =A0 =A0;;i think org-mode-map will override? > =A0 =A0 =A0 =A0 =A0 =A0(define-key org-remember-mode-map > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"\C-c\C-c" nil))) > --=20 Myalgic encephalomyelitis is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. People 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