GNU bug report logs -
#4136
23.1; delete-pair
Previous Next
Reported by: Eli Barzilay <eli <at> barzilay.org>
Date: Thu, 13 Aug 2009 06:30:04 UTC
Severity: normal
Tags: fixed, moreinfo
Fixed in version 28.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
> (ert-deftest lisp-delete-pair-quotes-in-text-mode ()
> "Test \\[delete-pair] against string in Text Mode for #15014."
> (with-temp-buffer
> (text-mode)
> (insert "\"foo\"")
> (goto-char (point-min))
> (delete-pair)
> (should (string-equal "fo\"" (buffer-string)))))
>
> So in text mode, delete-pair just deletes two characters, and that
> doesn't seem helpful. The patch I reverted made it bug out instead,
> which seems better.
Yes, it's better to bug out than to delete text instead of deleting quotes.
> I think the current thing delete-pair does in text-mode is bad, so I'm
> inclined to re-apply the patch, and announce this as an incompatible
> change in NEWS (and explain how to get the behaviour described above
> back).
>
> Any opinions?
If it's really impossible to delete a pair in text-mode, then better
to signal an error.
This bug report was last modified 4 years and 182 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.