emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master e3e359d: * packages/num3-mode/num3-mode.el: Fix compilatio


From: Michal Nazarewicz
Subject: [elpa] master e3e359d: * packages/num3-mode/num3-mode.el: Fix compilation warnings.
Date: Tue, 14 Jun 2016 15:54:01 +0000 (UTC)

branch: master
commit e3e359d00214ab6719876659a4f5e47314fe6b78
Author: Michal Nazarewicz <address@hidden>
Commit: Michal Nazarewicz <address@hidden>

    * packages/num3-mode/num3-mode.el: Fix compilation warnings.
    
    Fixes the following warnings:
    
    In toplevel form:
    num3-mode.el:47:1:Warning: defcustom for ‘num3-group-size’ fails to specify
        type
    num3-mode.el:47:1:Warning: defcustom for ‘num3-group-size’ fails to specify
        type
    num3-mode.el:50:1:Warning: defcustom for ‘num3-threshold’ fails to specify
        type
    num3-mode.el:50:1:Warning: defcustom for ‘num3-threshold’ fails to specify
        type
    
    In num3-mode:
    num3-mode.el:95:11:Warning: ‘font-lock-fontify-buffer’ is for interactive 
use
        only; use ‘font-lock-ensure’ or ‘font-lock-flush’ instead.
---
 packages/num3-mode/num3-mode.el |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/packages/num3-mode/num3-mode.el b/packages/num3-mode/num3-mode.el
index 5026cbe..d4f12e0 100644
--- a/packages/num3-mode/num3-mode.el
+++ b/packages/num3-mode/num3-mode.el
@@ -45,10 +45,12 @@ font-lock is on."
   :group 'text)
 
 (defcustom num3-group-size 3
-  "Number of digits to group in decimal numbers.")
+  "Number of digits to group in decimal numbers."
+  :type 'integer)
 
 (defcustom num3-threshold 5
-  "Number must be at least that long to start highlighting.")
+  "Number must be at least that long to start highlighting."
+  :type 'integer)
 
 (defface num3-face-odd
   '((t))
@@ -92,7 +94,7 @@ where) decimal point (would be) is."
         (font-lock-add-keywords nil '(num3--matcher) 'append))
     (font-lock-remove-keywords nil '(num3--matcher)))
   (if (fboundp 'font-lock-flush) (font-lock-flush)
-    (when font-lock-mode (font-lock-fontify-buffer))))
+    (when font-lock-mode (with-no-warnings (font-lock-fontify-buffer)))))
 
 ;;;###autoload
 (define-globalized-minor-mode global-num3-mode num3-mode num3-mode)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]