mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-07 04:39:37 +00:00
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
This commit is contained in:
parent
fbd0f194c5
commit
b2e3669d96
1 changed files with 1 additions and 2 deletions
|
@ -4775,10 +4775,9 @@ Interactively, prompt for symbol."
|
||||||
|
|
||||||
;;; Hideshow
|
;;; Hideshow
|
||||||
|
|
||||||
(defun python-hideshow-forward-sexp-function (arg)
|
(defun python-hideshow-forward-sexp-function (_arg)
|
||||||
"Python specific `forward-sexp' function for `hs-minor-mode'.
|
"Python specific `forward-sexp' function for `hs-minor-mode'.
|
||||||
Argument ARG is ignored."
|
Argument ARG is ignored."
|
||||||
arg ; Shut up, byte compiler.
|
|
||||||
(python-nav-end-of-defun)
|
(python-nav-end-of-defun)
|
||||||
(unless (python-info-current-line-empty-p)
|
(unless (python-info-current-line-empty-p)
|
||||||
(backward-char)))
|
(backward-char)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue