[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/nhexl-mode cd15bed 04/23: * nhexl-mode.el: Use cl-lib
From: |
Stefan Monnier |
Subject: |
[elpa] externals/nhexl-mode cd15bed 04/23: * nhexl-mode.el: Use cl-lib |
Date: |
Sat, 28 Nov 2020 18:35:42 -0500 (EST) |
branch: externals/nhexl-mode
commit cd15bed72905ff13228f7ee45616bbc6c8da5a49
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* nhexl-mode.el: Use cl-lib
---
nhexl-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/nhexl-mode.el b/nhexl-mode.el
index d4a3d26..e4ebc14 100644
--- a/nhexl-mode.el
+++ b/nhexl-mode.el
@@ -1,10 +1,11 @@
;;; nhexl-mode.el --- Minor mode to edit files via hex-dump format -*-
lexical-binding: t -*-
-;; Copyright (C) 2010, 2012 Free Software Foundation, Inc.
+;; Copyright (C) 2010, 2012, 2016 Free Software Foundation, Inc.
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
;; Keywords: data
-;; Version: 0.1
+;; Version: 0.2
+;; Package-Requires: ((emacs "24") (cl-lib "0.5"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -37,7 +38,7 @@
;;; Code:
-(eval-when-compile (require 'cl))
+(eval-when-compile (require 'cl-lib))
(require 'hexl) ;For faces.
(defgroup nhexl nil
@@ -101,7 +102,7 @@
(defun nhexl--debug-count-ols ()
(let ((i 0))
(dolist (ol (overlays-in (point-min) (point-max)))
- (when (overlay-get ol 'nhexl) (incf i)))
+ (when (overlay-get ol 'nhexl) (cl-incf i)))
i))
(defun nhexl--flush-overlays (buffer)
@@ -193,7 +194,7 @@
'display (copy-sequence "␊"))))
(while (< from to)
- (decf nhexl--overlay-counter)
+ (cl-decf nhexl--overlay-counter)
(when (and (= nhexl--overlay-counter 0)
;; If the user enabled jit-lock-stealth fontification, then
;; removing overlays is just a waste since
- [elpa] branch externals/nhexl-mode created (now 903f1b6), Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 7b18468 02/23: Commentary tweaks for csv-mode, ioccur, and nhexl-mode packages., Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode d3712d3 01/23: Add nhexl-mode., Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode cd15bed 04/23: * nhexl-mode.el: Use cl-lib,
Stefan Monnier <=
- [elpa] externals/nhexl-mode 26fe10c 06/23: * nhexl-mode.el: Add our own line-movement functions, Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 80d9a10 11/23: * nhexl-mode/nhexl-mode.el (nhexl-line-width): Allow dynamic adjust, Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 485c2c1 05/23: * nhexl-mode.el (nhexl-nibble-edit-mode): New minor mode, Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 5ae7dc1 07/23: * nhexl-mode.el (nhexl-overwrite-only-mode): New minor mode., Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 4ec0242 08/23: * nhexl-mode.el: Bump version number for new release, Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 25704c9 10/23: * nhexl-mode/nhexl-mode.el: Let isearch look for addresses as well, Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 16b716f 03/23: nhexl-mode.el: Fix last change., Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode e2450fd 09/23: * nhexl-mode.el: Hide undisplayable chars by default, Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 1082cc6 12/23: * nhexl-mode/nhexl-mode.el: Fix minor issues, Stefan Monnier, 2020/11/28
- [elpa] externals/nhexl-mode 8310ad1 13/23: * nhexl-mode/nhexl-mode.el: Improve multi-window behavior, Stefan Monnier, 2020/11/28