[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode a54fc29289 372/500: Always “decompose” in nix-pr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode a54fc29289 372/500: Always “decompose” in nix-prettify-mode |
Date: |
Sat, 29 Jan 2022 08:27:23 -0500 (EST) |
branch: elpa/nix-mode
commit a54fc2928927afc7c06c4e0fa971a6889faf6f66
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Always “decompose” in nix-prettify-mode
This was broken due to nix-while-search not existing. Always enabling
decompose looks to be safe fix it.
---
nix-prettify-mode.el | 27 +++------------------------
1 file changed, 3 insertions(+), 24 deletions(-)
diff --git a/nix-prettify-mode.el b/nix-prettify-mode.el
index df81e4b3ba..d75f7a9c3c 100644
--- a/nix-prettify-mode.el
+++ b/nix-prettify-mode.el
@@ -53,21 +53,6 @@
:type 'character
:group 'nix-prettify)
-(defcustom nix-prettify-decompose-force nil
- "If non-nil, remove any composition.
-
-By default, after disabling `nix-prettify-mode',
-compositions (prettifying names with `nix-prettify-char') are
-removed only from strings matching `nix-prettify-regexp', so
-that compositions created by other modes are left untouched.
-
-Set this variable to non-nil, if you want to remove any
-composition unconditionally (like variable `prettify-symbols-mode' does).
-Most likely it will do no harm and will make the process of
-disabling `nix-prettify-mode' a little faster."
- :type 'boolean
- :group 'nix-prettify)
-
(defcustom nix-prettify-regexp
;; The following file names / URLs should be abbreviated:
@@ -131,15 +116,9 @@ enabling/disabling `nix-prettify-mode'. If nil, do
nothing.")
"Remove file names compositions from the current buffer."
(with-silent-modifications
(let ((inhibit-read-only t))
- (if nix-prettify-decompose-force
- (remove-text-properties (point-min)
- (point-max)
- '(composition nil))
- (nix-while-search nix-prettify-regexp
- (remove-text-properties
- (match-beginning nix-prettify-regexp-group)
- (match-end nix-prettify-regexp-group)
- '(composition nil)))))))
+ (remove-text-properties (point-min)
+ (point-max)
+ '(composition nil)))))
;;;###autoload
(define-minor-mode nix-prettify-mode
- [nongnu] elpa/nix-mode c758b179e9 184/500: Add nix-shebang, (continued)
- [nongnu] elpa/nix-mode c758b179e9 184/500: Add nix-shebang, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1b8b6f5eac 339/500: Add failing test that checks indentation of let expressions., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2bb0a0c1f4 340/500: Improve indentation of let expressions., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1b2f22f235 343/500: Add issue 84 test, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode aaef8580c5 351/500: Merge pull request #86 from j-piecuch/smie-tweaks, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4ffab960ef 345/500: Add AUTHORS.md to gitignore, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ecf005009e 361/500: Remove org-man.el from .texi makefile rule, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 32b013cd62 363/500: Merge pull request #97 from NixOS/fix-94, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2c19243e2a 364/500: Revert fix for #94, but leave the test., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 55985b326b 366/500: Be smarter about tokenizing symbols., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode a54fc29289 372/500: Always “decompose” in nix-prettify-mode,
ELPA Syncer <=
- [nongnu] elpa/nix-mode c34990e956 371/500: Remove references to /gnu in nix-prettify-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9043a8d687 369/500: Merge pull request #98 from j-piecuch/94-fix, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode dc298e77b6 375/500: Merge pull request #101 from jgarte/patch-1, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode a3610b521f 385/500: Use NIX_GET_COMPLETIONS for Nix 3.0, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1dcbf13a1d 402/500: Merge pull request #111 from leungbk/make-run, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode c52795de7d 392/500: Add completion-at-point to nix-repl-mode-map, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 75f383899a 395/500: Fixed styles., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0023fc5b10 428/500: Merge pull request #127 from leungbk/nix-drv-regexp, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode bdd3c8a1e5 412/500: Exclude braces from ffap pattern, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d1ee0e1741 416/500: Use javascript-mode for nix-drv-mode, ELPA Syncer, 2022/01/29