[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49774: 27.1; if diff commands finds no differences then do not pop u
From: |
ndame |
Subject: |
bug#49774: 27.1; if diff commands finds no differences then do not pop up a window |
Date: |
Fri, 30 Jul 2021 18:28:11 +0000 |
If there are no differences then emacs should just show this in a message instead of popping up a window with not useful content.
Just a simple implementation with advices for the time being for those who prefer this:
(advice-add 'diff :around 'my-diff)
(defun my-diff (orig-fun &rest args)
(flet ((display-buffer (buf) buf))
(apply orig-fun args)))
(advice-add 'diff-sentinel :after 'my-diff-sentinel)
(defun my-diff-sentinel (code &rest args)
(if (equal code 0)
(message "No differences.")
(display-buffer (current-buffer))))
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, (continued)
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, ndame, 2021/07/30
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, Lars Ingebrigtsen, 2021/07/30
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, ndame, 2021/07/30
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, Lars Ingebrigtsen, 2021/07/30
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, ndame, 2021/07/30
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, Dmitry Gutov, 2021/07/30
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, ndame, 2021/07/30
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, Lars Ingebrigtsen, 2021/07/30
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, Juri Linkov, 2021/07/31
- bug#49774: 27.1; if diff commands finds no differences then do not pop up a window, Lars Ingebrigtsen, 2021/07/31
bug#49774: 27.1; if diff commands finds no differences then do not pop up a window,
ndame <=