]> 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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 13 Jan 2024 18:24:32 +0000 (19:24 +0100)
commitb8f8ecd59359eff917e3eb95f2b52196f2629853
tree1ecb07b5ce4d0e2cf3e860ed96b2c6d893f043a8
parentaf6a89c2e8f3fca206c411e26c404701a88cab4a
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)

(cherry picked from commit f2cc8ee2a1a106f9045447a1a025572d7938647e)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el