[Orgmode] Re: Emacs opens a frame for each file in agenda list on org-mobile
Dear Steve and All, I've been able to suppress the problem by commenting out one line (line 232) in org-mobile.el (in the version of org I just recently got from git, 6.33f+). That line is: ;; (push (cons file link-name) rtn)) Unfortunately, this also suppresses the update of the .org file of interest in the staging directory. Can anyone fluent in list propose how to update the org file without having the file pop open on Windows XP? Also, it is not simply an emacsclient issue as I was first guessing. If I use a .txt file as my org file of interest this gets opened by notepad rather than emacs (since I have not told Windows to open .txt files with emacs, but I have allowed org to use txt files.) (Also note, .txt files are not supported in the present version of mobileorg, but Richard has written a version which should be able to access them in the future.) Here are more details: file: org-6.33f\lisp\org-mobile.el I traced the problem by following: 1. defun org-mobile-push which calls org-mobile-files-alist 2. defun org-mobile-files-alist contains (push (cons file link-name) rtn)) Thanks! Stoph Steve Brown wrote: Hi Christopher, On 23/11/2009 17:42, Christopher Long wrote: Dear Steve and All, Was this additional instance of emacs problem resolved? I am having the same problem also on windows XP. I wonder whether emacsclient or emacsclientw need to be called instead of a new instance of emacs. Sadly, I've not managed to resolve this at all. I did try using (server-start) but the frames still open and they bitterly complain that a server instance is already running. I'm going to strip out everything from my .emacs until I just have the org-mode settings left to see if that changes anything, but I'm not hopeful. I haven't seen many complaints about this issue, so I assume that it is uncommon and possibly difficult to replicate. Unfortunately I don't know how to step through elisp to debug this myself ;-) I may have a steep learning curve ahead of me. If someone could give me a hint as to how to do this I'd be grateful. Best, Steve ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Emacs opens a frame for each file in agenda list on org-mobile
Hi Christopher, On 23/11/2009 17:42, Christopher Long wrote: Dear Steve and All, Was this additional instance of emacs problem resolved? I am having the same problem also on windows XP. I wonder whether emacsclient or emacsclientw need to be called instead of a new instance of emacs. Sadly, I've not managed to resolve this at all. I did try using (server-start) but the frames still open and they bitterly complain that a server instance is already running. I'm going to strip out everything from my .emacs until I just have the org-mode settings left to see if that changes anything, but I'm not hopeful. I haven't seen many complaints about this issue, so I assume that it is uncommon and possibly difficult to replicate. Unfortunately I don't know how to step through elisp to debug this myself ;-) I may have a steep learning curve ahead of me. If someone could give me a hint as to how to do this I'd be grateful. Best, Steve ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Emacs opens a frame for each file in agenda list on org-mobile
Okay, a quick follow up on this. I have kept the number of cutomisations to a minimum in my .emacs with no effect at all. That is I still get one frame per file in the agenda file list. I can't seem to find any settings that would force Emacs to use a single frame. I wonder if I should install a different version of Emacs for Windows? Perhaps the problem lies there? To limit the PITA aspect of this - I save all my buffers, run org-mobile-push then close the group from the Windows taskbar . I can then re-open a single instance of Emacs. Is there a command to close all frames but the current one? I could add this to the post push hooks. Thanks for all your help, Steve ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Emacs opens a frame for each file in agenda list on org-mobile
On 24/11/2009 11:32, Steve Brown wrote: Okay, a quick follow up on this. Is there a command to close all frames but the current one? I could add this to the post push hooks. Okay, I'm getting somewhere. I found out how how to step through elisp (hooray!) and called (debug-on-entry) on (org-mobile-copy-agenda-files) The new frame was opened when the *Backtrace* buffer showed: call-process(E:/Emacs/bin/cmdproxy.exe nil t nil -c \e:/home/Orgfiles/work.org\) [please read as all one line] Now, I'm afraid I'm at a loss. This seems to be a result of the environment I'm running in, and I can't install Cygwin - which is why I run Emacs off a USB stick. So, could someone show me how to close the frames once the push has been completed using the post-push hook? Thank you, Steve ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Emacs opens a frame for each file in agenda list on org-mobile
Dear Steve and All, Was this additional instance of emacs problem resolved? I am having the same problem also on windows XP. I wonder whether emacsclient or emacsclientw need to be called instead of a new instance of emacs. I am using: org-mode ver 6.33f emacs 22.2.1 windows XP Thanks, Stoph On Wed, Nov 18, 2009 at 7:38 PM, Charles Sebold csebold at gmail.com wrote: On Wed, Nov 18, 2009 at 9:19 AM, *Steve* *Brown* *steve*.*steve**brown* at gmail.com That does seem odd. Could you maybe do a M-x org-submit-bug-report, and if you aren't doing email in Emacs, copy and paste the output (with your org-mode configuration, it will prompt you to include it) into an email to emacs-orgmode at gnu.org? I'm running Emacs 23 on Windows, and using MobileOrg, and I haven't seen that problem. But we might have a start on it if you could send along your configuration and customizations per the above. This one seems strange enough that maybe it might even be worthwhile to send along the .emacs file, just in case (properly sanitized for personal info, of course). I'll do both of the above when I return to work. Best, *Steve* ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Emacs opens a frame for each file in agenda list on org-mobile-push
Good morning Charles, here's the bug reported as promised. I run Emacs from a pendrive on a Windows XP Pro box. My site-start.el contains the following to map home to drive letter:home on Emacs start. The first line has no line break after the defvar so there are only two lines of code. Otherwise the Emacs is 'vanilla' - I use it for writing and not coding so I try to keep things simple ;-) If you need anything else please let me know. Thank you, Steve = site-start.el === (defvar usb-drive-letter (substring data-directory 0 3)) (defvar usb-home-dir (concat usb-drive-letter home/)) (setenv HOME usb-home-dir) = site-start.el === === Bug Report Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. On executing org-mobile-push Emacs opens one frame per file listed in the agenda file list. I have deleted refences to specific files and replaced them with DELETED, all punctuation etc. will remain 'as is'. I will also follow this with my full .emacs suitably edited for personal information. Emacs : GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on BREPNB Package: Org-mode version 6.33c current state: == (setq org-log-done 'time org-agenda-files '(~/Orgfiles/DELETED.org ~/Orgfiles/work.org ~/Orgfiles/DELETED.org ~/Orgfiles/trial.org ~/Orgfiles/busdev.org ~/Orgfiles/home.org ~/Orgfiles/main.org ~/Orgfiles/DELETED.org) org-agenda-include-diary t org-export-with-sub-superscripts nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-todo-keywords '((sequence TODO STARTED WAITING | DONE DELEGATED) ) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/.notes.org org-directory ~/Orgfiles/ org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) ) === Bug Report === .emacs (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(appt-display-duration 59) '(appt-display-format (quote window)) '(diary-mail-addr ) '(display-battery-mode t) '(display-time-mode t) '(emacsw32-max-frames t) '(org-agenda-files (quote (~/Orgfiles/DELETED.org ~/Orgfiles/work.org ~/Orgfiles/DELETED.org ~/Orgfiles/trial.org ~/Orgfiles/busdev.org ~/Orgfiles/home.org ~/Orgfiles/main.org ~/Orgfiles/DELETED.org))) '(org-mobile-directory ~/stage) '(org-mobile-inbox-for-pull ~/Orgfiles/mobileinbox.org) '(show-paren-mode t) '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify))) '(view-diary-entries-initially t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ;; emacs start up file (setq inhibit-splash-screen t) (setq make-backup-files nil) (setq auto-save-mode nil) ;; diary customisation (add-hook 'diary-display-hook 'fancy-diary-display) (add-hook 'list-diary-entries-hook 'sort-diary-entries t) (setq european-calendar-style t) ;;; show date in status bar (setq display-time-day-and-date t display-time-24hr-format t) (display-time) (appt-activate 1) (setq appt-display-mode-line t) (setq appt-display-format 'window) ;; Org Mode (setq load-path (cons ~/org/lisp load-path)) (setq load-path (cons ~/org/contrib/lisp load-path)) (require 'org-install) (global-set-key \C-cl 'org-store-link) (global-set-key \C-ca 'org-agenda) (global-set-key \C-cb 'org-iswitchb) (add-to-list 'auto-mode-alist '(\\.org$ . org-mode)) (setq org-log-done t) ;timestamp on completion (setq org-agenda-include-diary t) (setq