From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chunyang Xu Subject: Asks user what to do with each tangle-file before overriding? Date: Fri, 16 Jun 2017 13:09:52 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLjXP-0001gO-TI for emacs-orgmode@gnu.org; Fri, 16 Jun 2017 01:11:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLjXM-0000gK-OQ for emacs-orgmode@gnu.org; Fri, 16 Jun 2017 01:11:15 -0400 Received: from smtpbgau2.qq.com ([54.206.34.216]:34549) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLjXL-0000b5-Ld for emacs-orgmode@gnu.org; Fri, 16 Jun 2017 01:11:12 -0400 Received: from Chunyangs-MacBook-Air.local (unknown [121.234.16.125]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Fri, 16 Jun 2017 13:09:52 +0800 (CST) 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: emacs-orgmode@gnu.org Hi, Currently 'C-c C-v C-t' ('org-babel-tangle') simply overrides existing tangle-file, I would like org to ask me what to do? such as a) yes (override) b) no (don't override) c) show the diff then ask again In addition, if there is no diff (i.e., having the same contents), user can choose (e.g., via a user option) to simply pass this tangle-file without overriding. I am asking for this feature because I am storing my dotfiles in a single Org file [1], and when I change my Bash configuration then tangle, I don't need to worry if Org is tangling other configuration correctly, especially ~/.ssh/id_rsa and ~/.authinfo.gpg. I would rather leave these unchanged files than override (even only file modification timestamps are updated). [1] https://raw.githubusercontent.com/xuchunyang/dotfiles/master/README.org