From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alexander Klimov Newsgroups: gmane.emacs.devel Subject: global dired-hide-details-mode Date: Mon, 7 Nov 2016 10:17:52 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: blaine.gmane.org 1478506766 8361 195.159.176.226 (7 Nov 2016 08:19:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Nov 2016 08:19:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 07 09:19:22 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c3f8h-0005u4-EN for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2016 09:18:47 +0100 Original-Received: from localhost ([::1]:52085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3f8j-0002EQ-Co for ged-emacs-devel@m.gmane.org; Mon, 07 Nov 2016 03:18:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3f82-0002E6-La for emacs-devel@gnu.org; Mon, 07 Nov 2016 03:18:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3f7y-0001id-Oi for emacs-devel@gnu.org; Mon, 07 Nov 2016 03:18:06 -0500 Original-Received: from smtp31.i.mail.ru ([94.100.177.91]:36354) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3f7y-0001gY-CZ for emacs-devel@gnu.org; Mon, 07 Nov 2016 03:18:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=uYDbIQDPjXdVcvCmoX3lmQUjVuu6WXAOvPcKfVL+NnI=; b=T4Ejoo3immalwny7iJ+38bO0iuE5SiN409jWrDs85VjtpuP+t8EFAAkgO44qGFag6r5vZd7dKsn14HQjtR/h41vXLjecEnuYBemc1PbzxBeTzRauiWP9ZlE0MJh5OmXfQQyxqwfDa65iTlfHbTSrcx7VA+v/lHLYwBZmSLhtEpc=; Original-Received: from 62.128.58.36.static.012.net.il ([62.128.58.36]:44474 helo=nfms.eitan.ac.il) by smtp31.i.mail.ru with esmtpa (envelope-from ) id 1c3f7u-0000Mx-4S for emacs-devel@gnu.org; Mon, 07 Nov 2016 11:17:58 +0300 Authentication-Results: smtp31.i.mail.ru; auth=pass smtp.auth=alserkli@inbox.ru smtp.mailfrom=alserkli@inbox.ru X-E1FCDC63: B1C176A6843808586728C76ABD697060F8D9167951635F18 X-E1FCDC64: 47440A7959535F357C9683CB9BE089B23B17CAB2765D6A15 X-Mailru-Sender: 6EF946BCA04EA61162CDC21F1E8B773735BD61461A6CB058A320814E0FABF0D7F1C90BFF80C02EDE X-Mras: OK X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.177.91 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209237 Archived-At: Hi. Looks like there is no way to customize Emacs so that every new dired buffer starts with dired-hide-details-mode, but g (that is revert-buffer) keeps the details state. My current approach is to add dired-hide-details-unless-reverting-in-progress into dired-before-readin-hook (defvar dired-reverting-in-progress nil) (defun dired-reverting-in-progress-advice (orig-fun &rest args) (let ((dired-reverting-in-progress t)) (apply orig-fun args))) (advice-add 'dired-revert :around #'dired-reverting-in-progress-advice) (defun dired-hide-details-unless-reverting-in-progress () (unless dired-reverting-in-progress (dired-hide-details-mode))) It would be nice to create a more direct way to achieve this functionality. -- Regards, ASK