From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 26 15:07:05 2014 Received: (at submit) by debbugs.gnu.org; 26 Dec 2014 20:07:05 +0000 Received: from localhost ([127.0.0.1]:58419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4bA7-0004Td-VW for submit@debbugs.gnu.org; Fri, 26 Dec 2014 15:07:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53904) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4RfL-00031r-4f for submit@debbugs.gnu.org; Fri, 26 Dec 2014 04:58:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4RfJ-0002tM-CV for submit@debbugs.gnu.org; Fri, 26 Dec 2014 04:58:38 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4RfJ-0002tI-9q for submit@debbugs.gnu.org; Fri, 26 Dec 2014 04:58:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4RfH-0001Ns-Mn for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 04:58:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4RfE-0002sg-EE for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 04:58:35 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4RfE-0002sJ-6s for bug-gnu-emacs@gnu.org; Fri, 26 Dec 2014 04:58:32 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 841832065C for ; Fri, 26 Dec 2014 04:58:30 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Fri, 26 Dec 2014 04:58:30 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:content-type :content-transfer-encoding:date:subject:to:message-id :mime-version; s=smtpout; bh=rDXNtE7nQJ7C2sNaqmCuS7y7X0k=; b=AS5 5pTxtCJZtmVNaF+gA7lXFoujaLtVnw7mHw146TxDqlcAaFyTFztjBvWZ0TmH4VUv ELGwC+snZFpUP/lRuU5REs9U2fbmQV+VESO2+PtyH8fAX63W7u4N90UIFacxZoB2 COFxeFuHeYReeFosHS3E02mjt06zQMEWlpAyzSSM= X-Sasl-enc: 7iKgMocuInsfegePMJ0spWDUWrskis5ojEh8a2SXQKGP 1419587910 Received: from [10.0.0.8] (unknown [188.23.253.116]) by mail.messagingengine.com (Postfix) with ESMTPA id BC61D6800F1; Fri, 26 Dec 2014 04:58:29 -0500 (EST) From: Rudi Schlatte Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 26 Dec 2014 10:58:23 +0100 Subject: 25.0.50; org-mobile-push should offer to save unsaved agenda files To: bug-gnu-emacs@gnu.org Message-Id: <56147641-A364-4D1E-A7A6-0CF602EBA828@constantly.at> Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 26 Dec 2014 15:07:03 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) When trying to call `org-mobile-push' while an org file in org-agenda-files is open and modified, `org-mobile-push' displays a prompt like the following in the minibuffer: Non-existent agenda file ~/Documents/Org/.#notes.org. [R]emove from = list or [A]bort? This trivial patch uses `save-some-buffers' to save the agenda files, removing the confusing prompt: --- a/lisp/org/org-mobile.el +++ b/lisp/org/org-mobile.el @@ -318,6 +318,9 @@ create all custom agenda views, for upload to the = mobile phone." (org-agenda-buffer-name "*SUMO*") (org-agenda-tag-filter org-agenda-tag-filter) (org-agenda-redo-command org-agenda-redo-command)) + (let ((agenda-files (org-agenda-files))) + (save-some-buffers nil (lambda () (member (buffer-file-name) + agenda-files)))) (save-excursion (save-restriction (save-window-excursion In GNU Emacs 25.0.50.18 (x86_64-apple-darwin14.0.0, NS appkit-1343.16 = Version 10.10.1 (Build 14B25)) of 2014-12-26 on gerold-PCV-RS216-CE Repository revision: f76956645ddf3bde4105b50e9bd1e3a1cc2da39c Windowing system distributor `Apple', version 10.3.1343 Configured using: `configure --with-ns' Configured features: ACL LIBXML2 ZLIB Important settings: locale-coding-system: utf-8-unix Major mode: Org Minor modes in effect: diff-auto-refine-mode: t TeX-PDF-mode: t shell-dirtrack-mode: t show-paren-mode: t recentf-mode: t icomplete-mode: t desktop-save-mode: t auto-insert-mode: t global-company-mode: t company-mode: t global-eclim-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t Recent messages: Mark set Message modified; kill anyway? (y or n) y Making completion list... Creating agendas... Non-existent agenda file ~/BTSync/Documents/Org/.#notes.org. [R]emove = from list or [A]bort? org-check-agenda-file: Abort Undo! Creating agendas... Non-existent agenda file ~/BTSync/Documents/Org/.#notes.org. [R]emove = from list or [A]bort? org-check-agenda-file: Abort Load-path shadows: ~/Source/abstools/emacs/maude-mode hides = ~/Source/elisp/maude-mode/maude-mode Features: (shadow emacsbug sendmail eieio-opt speedbar sb-image ezimage dframe misearch multi-isearch bookmark cal-move org-archive qp shr dom subr-x mm-archive sort smiley gnus-cite mail-extr gnus-async gnus-bcklg gnus-ml disp-table nndraft nnmh nnfolder utf-7 network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win ox-texinfo ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-md ox-html ox-beamer ox-latex ox-ascii ox-publish ox cc-awk cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs markdown-mode python abs-mode pcase rx paredit checkdoc help-mode imenu dired-aux autorevert filenotify tex-buf vc-git diff-mode reftex-dcr reftex-auc reftex reftex-vars font-latex latex tex-style tex crm tex-mode shell org-id tabify view mule-util cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs diary-lib diary-loaddefs cal-iso org-element org-mobile org-agenda saveplace org-mac-link org-mac-iCal org-protocol org-info org-docview doc-view jka-compr image-mode org-bibtex bibtex paren recentf ido icomplete gnus gnus-ems nnheader mail-utils desktop frameset autoinsert org-mouse org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec cal-menu calendar cal-loaddefs company-files company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-ropemacs company-xcode company-clang company-template company-semantic company-css company-bbdb company-emacs-eclim eclim-completion company eclimd eclim eclim-problems eclim-maven eclim-ant eclim-java json eclim-project s rs-pbook slime-xref-browser tree-widget slime-indentation slime-cl-indent cl-indent slime-hyperdoc url-http tls url url-proxy url-privacy url-expand url-methods url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-cookie url-domsuf url-util url-parse auth-source gnus-util mm-util mail-prsvr password-cache url-gw url-vars slime-banner slime-asdf grep slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations advice bridge slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime help-fns gud apropos etags xref eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core arc-mode archive-mode noutline outline easy-mmode pp hyperspec thingatpt browse-url slime-autoloads eudcb-mab executable eudc cus-edit cus-start cus-load eudc-vars wid-edit erlang-flymake flymake compile comint ansi-color ring erlang-start cl-macs ls-lisp ert find-func ewoc debug cl gv server vc vc-dispatcher tex-site docbook-autoloads derived info package epg-config dired-x easymenu dired edmacro kmacro cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 576285 59918) (symbols 48 59052 38) (miscs 40 568 913) (strings 32 146506 16368) (string-bytes 1 4654102) (vectors 16 59079) (vector-slots 8 1703590 106591) (floats 8 953 1102) (intervals 56 5808 763) (buffers 976 84)) From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 03 09:47:08 2018 Received: (at 19448-done) by debbugs.gnu.org; 3 Jan 2018 14:47:08 +0000 Received: from localhost ([127.0.0.1]:33924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWkJw-0000FP-8O for submit@debbugs.gnu.org; Wed, 03 Jan 2018 09:47:08 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWkJu-0000FH-9u for 19448-done@debbugs.gnu.org; Wed, 03 Jan 2018 09:47:07 -0500 Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id F2940172097; Wed, 3 Jan 2018 15:47:04 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1eWkJs-0002DX-7E; Wed, 03 Jan 2018 15:47:04 +0100 From: Nicolas Goaziou To: Rudi Schlatte Subject: Re: bug#19448: 25.0.50; org-mobile-push should offer to save unsaved agenda files In-Reply-To: <56147641-A364-4D1E-A7A6-0CF602EBA828@constantly.at> (Rudi Schlatte's message of "Fri, 26 Dec 2014 10:58:23 +0100") References: <56147641-A364-4D1E-A7A6-0CF602EBA828@constantly.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Date: Wed, 03 Jan 2018 15:47:04 +0100 Message-ID: <87o9mbdmon.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19448-done Cc: 19448-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hello, Rudi Schlatte writes: > When trying to call `org-mobile-push' while an org file in > org-agenda-files is open and modified, `org-mobile-push' displays a > prompt like the following in the minibuffer: > > Non-existent agenda file ~/Documents/Org/.#notes.org. [R]emove from list or [A]bort? > > This trivial patch uses `save-some-buffers' to save the agenda > files, removing the confusing prompt: > > --- a/lisp/org/org-mobile.el > +++ b/lisp/org/org-mobile.el > @@ -318,6 +318,9 @@ create all custom agenda views, for upload to the mobile phone." > (org-agenda-buffer-name "*SUMO*") > (org-agenda-tag-filter org-agenda-tag-filter) > (org-agenda-redo-command org-agenda-redo-command)) > + (let ((agenda-files (org-agenda-files))) > + (save-some-buffers nil (lambda () (member (buffer-file-name) > + agenda-files)))) > (save-excursion > (save-restriction > (save-window-excursion I applied something equivalent. Thank you. Regards, -- Nicolas Goaziou 0x80A93738 From unknown Mon Jun 23 13:12:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 01 Feb 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator