]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
diff-buffer-against-file.el: remove, obsolete
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Mar 2026 17:00:44 +0000 (13:00 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Mar 2026 17:00:44 +0000 (13:00 -0400)
diff-buffer-against-file.el [deleted file]

diff --git a/diff-buffer-against-file.el b/diff-buffer-against-file.el
deleted file mode 100644 (file)
index 30a4930..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-(defun diff-buffer-against-file (context)
-  "diff the current (edited) buffer against the file of the same name"
-  (interactive "P")
-  (let (($file (concat "\"" buffer-file-name "\""))
-       ($temp_buffer "emacs.diff")
-       ($temp_file "/tmp/emacs.diff"))
-
-    (delete-other-windows)
-    (push-mark (point) t)
-    (generate-new-buffer $temp_file)
-    (copy-to-buffer $temp_buffer (point-min) (point-max))
-    (set-buffer $temp_buffer)
-    (write-file $temp_file)
-    (shell-command (concat (if context "diff -c " "diff ") $file " " $temp_file))
-    (kill-buffer $temp_file)
-    (pop-mark)
-    )
-  )