GNU bug report logs -
#24213
25.1.50; Fishy use of delete-window in register.el
Previous Next
Reported by: Andreas Politz <politza <at> hochschule-trier.de>
Date: Fri, 12 Aug 2016 20:23:02 UTC
Severity: wishlist
Tags: fixed, patch
Found in version 25.1.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
martin rudalics <rudalics <at> gmx.at> writes:
>> "Exit Finder mode.
>> Delete the window and kill all Finder-related buffers."
>
> Maybe we should say that we "Quit" the window [...]
Yes, I missed that.
>> (interactive)
>> - (ignore-errors (delete-window))
>> + (quit-window)
>> (let ((buf "*Finder*"))
>> (and (get-buffer buf) (kill-buffer buf))))
>
> How about using (quit-window t) right away as in the next case?
The resulting function would be quite murderous and try to kill any
buffer regardless of Finder. I tried to modify the functions semantics
as little as possible. Who knows in what way people are using them,
right ?
>> diff --git a/lisp/image-dired.el b/lisp/image-dired.el
>> index 67b023d..36f148b 100644
>> --- a/lisp/image-dired.el
>> +++ b/lisp/image-dired.el
>> @@ -2445,13 +2445,9 @@ image-dired-gallery-generate
>> (insert "</html>"))))
>>
>> (defun image-dired-kill-buffer-and-window ()
>> - "Kill the current buffer and, if possible, also the window."
>> + "Kill the current buffer and quit it's window."
>
> "its" not "it's".
I think I'm using this false possessive apostrophe for years, without
realizing its ambiguity. Thank you.
More to come.
-ap
This bug report was last modified 5 years and 276 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.