From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilya Shlyakhter Subject: [PATCH] Deleting properties: Fixed bug that left blank lines after, deleting properties Date: Thu, 29 Mar 2012 22:35:14 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030102090905080304020001" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDRge-0007aL-Hw for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 22:35:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDRgc-0004Vi-R6 for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 22:35:36 -0400 Received: from plane.gmane.org ([80.91.229.3]:52992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDRgc-0004Va-JY for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 22:35:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SDRga-0001ry-FR for emacs-orgmode@gnu.org; Fri, 30 Mar 2012 04:35:32 +0200 Received: from dhcp-140-247-108-225.fas.harvard.edu ([140.247.108.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Mar 2012 04:35:32 +0200 Received: from ilya_shl by dhcp-140-247-108-225.fas.harvard.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Mar 2012 04:35:32 +0200 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 This is a multi-part message in MIME format. --------------030102090905080304020001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Patch for a bug that left blank lines in property drawer after org-delete-property-globally. --------------030102090905080304020001 Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="0001-Deleting-properties-Fixed-bug-that-left-blank-lines-.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Deleting-properties-Fixed-bug-that-left-blank-lines-.pa"; filename*1="tch" >From 41cbd6302e5a58ed09ec80436237c3c2f4ad8514 Mon Sep 17 00:00:00 2001 From: Ilya Shlyakhter Date: Thu, 29 Mar 2012 22:31:14 -0400 Subject: [PATCH] Deleting properties: Fixed bug that left blank lines after deleting properties * lisp/org.el (org-delete-property-globally): Fixed a bug that left blank line in place of the property, instead of removing the line. TINYCHANGE --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 4d2ae87..bb9c514 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14715,7 +14715,7 @@ in the current file." (org-re-property property) nil t) (setq cnt (1+ cnt)) - (replace-match "")) + (delete-region (match-beginning 0) (1+ (point-at-eol)))) (message "Property \"%s\" removed from %d entries" property cnt))))) (defvar org-columns-current-fmt-compiled) ; defined in org-colview.el -- 1.7.9.3 --------------030102090905080304020001--