* bug#55557: 29.0.50; Typos in comments of python.el
@ 2022-05-21 14:58 kobarity
2022-05-22 11:26 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: kobarity @ 2022-05-21 14:58 UTC (permalink / raw)
To: 55557
There are typos in comments of python.el. TypeError occurs when the
example Python codes shown in comments are executed. Here is a fix to
avoid TypeError.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 0761aaebdc..fdf5d48c5c 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -676,7 +676,7 @@ python-font-lock-keywords-maximum-decoration
;; and variants thereof
;; the cases
;; (a) = 5
- ;; [a] = 5
+ ;; [a] = 5,
;; [*a] = 5, 6
;; are handled separately below
(,(python-font-lock-assignment-matcher
@@ -706,7 +706,7 @@ python-font-lock-keywords-maximum-decoration
(1 font-lock-variable-name-face))
;; special cases
;; (a) = 5
- ;; [a] = 5
+ ;; [a] = 5,
;; [*a] = 5, 6
(,(python-font-lock-assignment-matcher
(python-rx (or line-start ?\; ?=) (* space)
In GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu)
of 2022-05-21 built on ubuntu
Repository revision: 208102fa470e3417320062cdb48a9967d80bf092
Repository branch: master
System Description: Ubuntu 22.04 LTS
Configured using:
'configure --without-x --with-gnutls=ifavailable'
Configured features:
ACL LIBXML2 MODULES NOTIFY INOTIFY PDUMPER SECCOMP SOUND SQLITE3 THREADS
XIM ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(shadow regexp-opt sort mail-extr emacsbug message mailcap yank-media
rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa
derived epg rfc6068 epg-config gnus-util text-property-search time-date
seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils term/screen term/xterm xterm gv
subr-x byte-opt bytecomp byte-compile cconv iso-transl tooltip eldoc
paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
nadvice simple cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
faces cus-face macroexp files window text-properties overlay sha1 md5
base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads inotify multi-tty
make-network-process emacs)
Memory information:
((conses 16 45150 7237)
(symbols 48 5658 1)
(strings 32 15646 1590)
(string-bytes 1 499411)
(vectors 16 8629)
(vector-slots 8 104908 6774)
(floats 8 24 363)
(intervals 56 202 0)
(buffers 992 11))
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#55557: 29.0.50; Typos in comments of python.el
2022-05-21 14:58 bug#55557: 29.0.50; Typos in comments of python.el kobarity
@ 2022-05-22 11:26 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-22 11:26 UTC (permalink / raw)
To: kobarity; +Cc: 55557
kobarity <kobarity@gmail.com> writes:
> There are typos in comments of python.el. TypeError occurs when the
> example Python codes shown in comments are executed. Here is a fix to
> avoid TypeError.
Thanks; pushed to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-22 11:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-21 14:58 bug#55557: 29.0.50; Typos in comments of python.el kobarity
2022-05-22 11:26 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).