[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b2e3669: Tweak python-hideshow-forward-sexp-function warning avoi
From: |
Lars Ingebrigtsen |
Subject: |
master b2e3669: Tweak python-hideshow-forward-sexp-function warning avoidance |
Date: |
Wed, 15 Sep 2021 09:54:04 -0400 (EDT) |
branch: master
commit b2e3669d963667890f7b55158c3b6b51a07259d2
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Tweak python-hideshow-forward-sexp-function warning avoidance
* lisp/progmodes/python.el
(python-hideshow-forward-sexp-function): Avoid compilation warning
in a more standard way. Problem reported in
https://thedailywtf.com/articles/the-programmer-s-motto-and-other-comments
---
lisp/progmodes/python.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index fae350d..19b79b6 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -4775,10 +4775,9 @@ Interactively, prompt for symbol."
;;; Hideshow
-(defun python-hideshow-forward-sexp-function (arg)
+(defun python-hideshow-forward-sexp-function (_arg)
"Python specific `forward-sexp' function for `hs-minor-mode'.
Argument ARG is ignored."
- arg ; Shut up, byte compiler.
(python-nav-end-of-defun)
(unless (python-info-current-line-empty-p)
(backward-char)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master b2e3669: Tweak python-hideshow-forward-sexp-function warning avoidance,
Lars Ingebrigtsen <=