From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: Bug: org-toggle-tag always marks buffer modified [9.1.13 (9.1.13-elpaplus @ .emacs.d/elpa/org-plus-contrib-20180618/)] Date: Mon, 18 Jun 2018 14:07:04 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV1Mr-00045m-Od for emacs-orgmode@gnu.org; Mon, 18 Jun 2018 17:07:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fV1Mq-0008DA-Vl for emacs-orgmode@gnu.org; Mon, 18 Jun 2018 17:07:17 -0400 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:39259) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fV1Mq-0008Cs-OZ for emacs-orgmode@gnu.org; Mon, 18 Jun 2018 17:07:16 -0400 Received: by mail-it0-x235.google.com with SMTP id p185-v6so14094569itp.4 for ; Mon, 18 Jun 2018 14:07:16 -0700 (PDT) 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" To: Org Mode List org-toggle-tag always marks the buffer as modified due to how it is implemented. It would be better if it did not mark the buffer modified if it does not change anything. This is annoying for org-depend.el (which is contrib, not officially supported) because the org-blocker-hook set by org-depend.el will mark the buffer modified whenever an agenda view is built/refreshed. Glancing at org-toggle-tag, the feature isn't difficult to implement, but it'll be ugly. Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.24), modified by Debian Package: Org mode version 9.1.13 (9.1.13-elpaplus @ /usr/local/google/home/ayatane/.emacs.d/elpa/org-plus-contrib-20180618/)