all repos — archive/dotfiles @ 81734b1d3053064673e6f4995af280f80cb5051d

Superseded by nixfiles

Emacs: remove unused variable
Alan Pearce alan@alanpearce.co.uk
Sat, 11 May 2013 14:57:03 +0100
commit

81734b1d3053064673e6f4995af280f80cb5051d

parent

441d091d6e0492f97b99bd36fa2f52d4ad192ba6

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -375,8 +375,7 @@ (defun delete-current-buffer-file ()   "Removes file connected to current buffer and kills buffer."
   (interactive)
   (let ((filename (buffer-file-name))
-        (buffer (current-buffer))
-        (name (buffer-name)))
+        (buffer (current-buffer)))
     (if (not (and filename (file-exists-p filename)))
         (ido-kill-buffer)
       (when (yes-or-no-p "Are you sure you want to remove this file? ")