all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: bugs in org-remember-backup-directory
Date: Fri, 26 Jun 2009 15:27:24 -0700	[thread overview]
Message-ID: <20524da70906261527j51b643cfse4203c409d8b90f@mail.gmail.com> (raw)
In-Reply-To: <20524da70906042059n4d9f0f78qd6d80c5ca48e3377@mail.gmail.com>

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<samologist@gmail.com> wrote:
> The bug still exists.
>
> To reproduce, run emacs -Q --load <the minimal setup below>, remember
> a task, make enough changes to trigger do-auto-save, then c-x c-s.  It
> 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
>  "-apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1")
> '(progn
>  (progn
>    (defconst alpha-mac-font-2
>      "-apple-courier-medium-r-normal--*-*-*-*-*-240-*")
>    (set-frame-font alpha-mac-font-2))
>  )
> (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)             ;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
>      `(("conversation" ?c    "* CONVERSATION %U %?\n%i")))
>
> (add-hook 'remember-mode-hook 'delete-other-windows)
> (setf org-remember-backup-directory
>      (getenv "demacsremember"))
> ;;;(setf org-remember-backup-directory nil)
> (add-hook 'org-remember-mode-hook
>          (lambda () (when org-remember-backup-directory
>                       (cd org-remember-backup-directory))))
> (add-hook 'org-remember-mode-hook
>          (lambda ()
>            (define-key org-remember-mode-map
>                "\C-x\C-s" 'org-remember-finalize)
>            ;;i think org-mode-map will override?
>            (define-key org-remember-mode-map
>                "\C-c\C-c" nil)))
>



-- 
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

      parent reply	other threads:[~2009-06-26 22:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-25 22:08 bugs in org-remember-backup-directory Samuel Wales
2009-04-30 13:30 ` Carsten Dominik
2009-05-04 17:14   ` Samuel Wales
2009-05-04 17:57     ` Samuel Wales
2009-06-04 14:40       ` Carsten Dominik
2009-06-04 21:29         ` Samuel Wales
2009-06-05  3:59           ` Samuel Wales
2009-06-05  7:00             ` Carsten Dominik
2009-06-18 22:59               ` Samuel Wales
2009-06-26 22:27             ` Samuel Wales [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20524da70906261527j51b643cfse4203c409d8b90f@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.