Skip to content

Commit 81717a5

Browse files
committed
Fix style
1 parent 4503672 commit 81717a5

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

lisp/php-mode.el

+9-12
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,11 @@ In that case set to `NIL'."
290290
(defun php-mode-version ()
291291
"Display string describing the version of PHP Mode."
292292
(interactive)
293-
(let ((fmt
294-
(eval-when-compile
295-
(let ((id "$Id$"))
296-
(concat "PHP Mode %s"
297-
(if (string= id (concat [?$ ?I ?d ?$]))
298-
""
299-
(concat " " id)))))))
293+
(let ((fmt (eval-when-compile (let ((id "$Id$"))
294+
(concat "PHP Mode %s"
295+
(if (string= id (concat [?$ ?I ?d ?$]))
296+
""
297+
(concat " " id)))))))
300298
(funcall
301299
(if (called-interactively-p 'interactive) #'message #'format)
302300
fmt php-mode-version-number)))
@@ -774,9 +772,8 @@ See `php-beginning-of-defun'."
774772
(save-match-data
775773
(not (or (re-search-forward html-tag-re (line-end-position) t)
776774
(re-search-backward html-tag-re (line-beginning-position) t)))))
777-
(progn
778-
(goto-char here)
779-
t)
775+
(prog1 t
776+
(goto-char here))
780777
(goto-char here)
781778
(setq php-warned-bad-indent t)
782779
(let* ((known-multi-libs '(("mumamo" mumamo (lambda () (nxhtml-mumamo)))
@@ -837,9 +834,9 @@ example `html-mode'. Known such libraries are:\n\t"
837834
nil))))
838835

839836
(defun php-cautious-indent-region (start end &optional quiet)
840-
"Carefully indent region `START' `END' in contexts other than HTML templates.
837+
"Carefully indent region START to END in contexts other than HTML templates.
841838
842-
If the optional argument `QUIET' is non-nil then no syntactic errors are
839+
If the optional argument QUIET is non-nil then no syntactic errors are
843840
reported, even if `c-report-syntactic-errors' is non-nil."
844841
(if (or (not php-mode-warn-if-mumamo-off)
845842
(not (php-in-poly-php-html-mode))

0 commit comments

Comments
 (0)