From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Fogel Subject: [PATCH] Improve success message from org-remove-file. Date: Mon, 24 Nov 2014 11:36:57 -0600 Message-ID: <87vbm433gm.fsf@ktab.red-bean.com> Reply-To: Karl Fogel Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsxZQ-0006wx-SF for emacs-orgmode@gnu.org; Mon, 24 Nov 2014 12:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsxZM-0006UB-EZ for emacs-orgmode@gnu.org; Mon, 24 Nov 2014 12:37:04 -0500 Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:55913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsxZM-0006U7-91 for emacs-orgmode@gnu.org; Mon, 24 Nov 2014 12:37:00 -0500 Received: by mail-ie0-f182.google.com with SMTP id x19so9309339ier.27 for ; Mon, 24 Nov 2014 09:36:59 -0800 (PST) Received: from ktab.red-bean.com (74-92-190-113-Illinois.hfc.comcastbusiness.net. [74.92.190.113]) by mx.google.com with ESMTPSA id kv4sm4788485igb.13.2014.11.24.09.36.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Nov 2014 09:36:58 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain The attached patch improves the interactive success message from `org-remove-file'. Comments / suggestions welcome, of course; I've tried to follow http://orgmode.org/worg/org-contribute.html here. Best, -Karl --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org.el-Improve-accuracy-of-message.patch Content-Description: Patch to improve accuracy of success message from org-remove-file. >From 846d66a15c73a336c110f5238307242f9192e8c3 Mon Sep 17 00:00:00 2001 From: Karl Fogel Date: Mon, 24 Nov 2014 11:32:42 -0600 Subject: [PATCH] org.el: Improve accuracy of message * lisp/org.el (org-remove-file): Reword success message. Before this change, when `org-remove-file' succeeded in removing a file from `org-agenda-files', it would display this unduly alarming message to the user: "Removed file: foo.org". This made it seem as though the file itself were removed from the filesystem, rather than simply being delisted from `org-agenda-files'. After this change, the message "Removed from Org Agenda list: foo.org" is displayed instead, so the user will experience only the normal level of panic involved in using Org Mode, not the increased panic that results from thinking a file has been removed when it hasn't. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 38c5726..9372191 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -18465,7 +18465,7 @@ Optional argument FILE means use this file instead of the current." (progn (org-store-new-agenda-file-list files) (org-install-agenda-files-menu) - (message "Removed file: %s" afile)) + (message "Removed from Org Agenda list: %s" afile)) (message "File was not in list: %s (not removed)" afile)))) (defun org-file-menu-entry (file) -- 2.1.3 --=-=-=--