[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/emacs-editorconfig d900f27638d 113/364: Simplify definition of s
From: |
Stefan Monnier |
Subject: |
scratch/emacs-editorconfig d900f27638d 113/364: Simplify definition of string-integer-p (#96) |
Date: |
Tue, 18 Jun 2024 01:40:44 -0400 (EDT) |
branch: scratch/emacs-editorconfig
commit d900f27638d5d4340d38a575fc93b9e2f8455fc6
Author: 10sr <8slashes+git@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Simplify definition of string-integer-p (#96)
---
editorconfig.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/editorconfig.el b/editorconfig.el
index d6da83ba8de..f1ffb8cf179 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -146,9 +146,8 @@ yet.")
(defun editorconfig-string-integer-p (string)
"Return non-nil if STRING represents integer."
- (if (stringp string)
- (string-match-p "\\`[0-9]+\\'" string)
- nil))
+ (and (stringp string)
+ (string-match-p "\\`[0-9]+\\'" string)))
(defun editorconfig-set-indentation/python-mode (size)
"Set `python-mode' indent size to SIZE."
- scratch/emacs-editorconfig 50df3046e5a 081/364: Add one variable editorconfig-properties-hash, (continued)
- scratch/emacs-editorconfig 50df3046e5a 081/364: Add one variable editorconfig-properties-hash, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 33b0716c668 082/364: Add editorocnfig-display-current-properties, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 998d0e8f766 086/364: Bump version to 0.7.4, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig f2629b0abb5 087/364: Do not check metadata of files other than editorconfig.el, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig e68384d544c 088/364: Refactor editorconfig-conf-mode, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig cdcc5826d68 089/364: Add make sandbox target, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 7505fb780ff 108/364: Bump version to 0.7.6, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 331edef26d0 109/364: Remove link to Marmalade package repository, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 1c328163516 119/364: Bump version to 0.7.7, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig d79b9e410aa 104/364: Use truename for editorconfig name, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig d900f27638d 113/364: Simplify definition of string-integer-p (#96),
Stefan Monnier <=
- scratch/emacs-editorconfig d94e1f29f33 052/364: Fix some warnings reported by flycheck, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 98a370e8896 127/364: Massive reformatting of docstrings., Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 58f10645403 057/364: Add MELPA badges, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig fe9ed9b4cbf 061/364: Fix names of ert test cases, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 5b9a1a38d2b 070/364: Add ps-mode indentation support, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig d150069fc61 073/364: Catch error thrown from get-properties-function and display it, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig f907c968c88 075/364: Already 2016 :) Happy new year!, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 37d22c07507 076/364: Bump version to 0.7.2, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 0791fced087 083/364: Add editorconfig-exclude-modes, Stefan Monnier, 2024/06/18
- scratch/emacs-editorconfig 3d6df2ae193 090/364: Derive editorconfig-conf-mode from conf-unix-mode, Stefan Monnier, 2024/06/18