]> git.eshelyaron.com Git - emacs.git/commit
Fix 'python-info-docstring-p' bug in the 2nd line of a buffer
authorkobarity <kobarity@gmail.com>
Sat, 6 Jan 2024 13:04:42 +0000 (22:04 +0900)
committerEli Zaretskii <eliz@gnu.org>
Sat, 13 Jan 2024 09:33:19 +0000 (11:33 +0200)
commitf2cc8ee2a1a106f9045447a1a025572d7938647e
treea424109d2f98a5ce2dc2ec3038409ff8979b315c
parent893829021bd50604b035c058814f280c7386aa46
Fix 'python-info-docstring-p' bug in the 2nd line of a buffer

* lisp/progmodes/python.el (python-info-docstring-p): Add
'looking-at-p' check when bobp.
* test/lisp/progmodes/python-tests.el (python-font-lock-operator-1)
(python-font-lock-operator-2): Restoration of ERTs deleted by
mistake.
(python-font-lock-escape-sequence-bytes-newline)
(python-font-lock-escape-sequence-hex-octal)
(python-font-lock-escape-sequence-unicode)
(python-font-lock-raw-escape-sequence): Change 'font-lock-doc-face'
to 'font-lock-string-face' and remove :expected-result :failed.
(python-info-docstring-p-8): New test.  (Bug#68284)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el