[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7142b02 285/433: Fix compilation warnings
From: |
Dmitry Gutov |
Subject: |
[elpa] master 7142b02 285/433: Fix compilation warnings |
Date: |
Thu, 15 Mar 2018 19:44:21 -0400 (EDT) |
branch: master
commit 7142b026a77ef4eb4cd8a16363889f212ff98351
Author: Steve Purcell <address@hidden>
Commit: Steve Purcell <address@hidden>
Fix compilation warnings
---
mmm-auto.el | 5 ++---
mmm-cmds.el | 3 ++-
mmm-noweb.el | 3 ++-
mmm-region.el | 15 +++++++--------
mmm-sample.el | 3 ++-
mmm-utils.el | 4 ++--
6 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/mmm-auto.el b/mmm-auto.el
index e068eb4..1fd9609 100644
--- a/mmm-auto.el
+++ b/mmm-auto.el
@@ -148,8 +148,7 @@ everything in `mmm-major-mode-hook' will be run."
(remove-hook 'post-command-hook 'mmm-check-changed-buffers)
(dolist (buffer mmm-changed-buffers-list)
(when (buffer-live-p buffer)
- (save-excursion
- (set-buffer buffer)
+ (with-current-buffer buffer
(mmm-run-major-mode-hook))))
(setq mmm-changed-buffers-list '()))
@@ -176,4 +175,4 @@ This function is deprecated and may be removed in future."
(provide 'mmm-auto)
-;;; mmm-auto.el ends here
\ No newline at end of file
+;;; mmm-auto.el ends here
diff --git a/mmm-cmds.el b/mmm-cmds.el
index 893214a..fef13c8 100644
--- a/mmm-cmds.el
+++ b/mmm-cmds.el
@@ -30,6 +30,7 @@
;;; Code:
+(require 'cl)
(require 'font-lock)
(require 'mmm-compat)
(require 'mmm-vars)
@@ -443,4 +444,4 @@ NAME is a symbol naming the insertion."
(provide 'mmm-cmds)
-;;; mmm-cmds.el ends here
\ No newline at end of file
+;;; mmm-cmds.el ends here
diff --git a/mmm-noweb.el b/mmm-noweb.el
index ec0e5d3..cb59518 100644
--- a/mmm-noweb.el
+++ b/mmm-noweb.el
@@ -35,6 +35,7 @@
;;; Code:
+(require 'cl)
(require 'mmm-region)
(require 'mmm-vars)
(require 'mmm-mode)
@@ -407,4 +408,4 @@ optional NAME to determine the current region name."
(provide 'mmm-noweb)
-;;; mmm-noweb.el ends here
\ No newline at end of file
+;;; mmm-noweb.el ends here
diff --git a/mmm-region.el b/mmm-region.el
index 3a113bb..bfac6df 100644
--- a/mmm-region.el
+++ b/mmm-region.el
@@ -472,12 +472,12 @@ Does not handle delimiters. Use `mmm-make-region'."
(defun mmm-clear-overlays (&optional start stop strict)
"Clears all MMM overlays overlapping START and STOP.
If STRICT, only clear those entirely included in that region."
- (mapcar #'delete-overlay
- (if strict
- (mmm-overlays-contained-in (or start (point-min))
- (or stop (point-max)))
- (mmm-overlays-overlapping (or start (point-min))
- (or stop (point-max)))))
+ (mapc #'delete-overlay
+ (if strict
+ (mmm-overlays-contained-in (or start (point-min))
+ (or stop (point-max)))
+ (mmm-overlays-overlapping (or start (point-min))
+ (or stop (point-max)))))
(mmm-update-submode-region))
;;}}}
@@ -507,8 +507,7 @@ is non-nil, don't quit if the info is already there."
;; On errors, the temporary buffers don't get deleted, so here
;; we get rid of any old ones that may be hanging around.
(when (buffer-live-p (get-buffer mmm-temp-buffer-name))
- (save-excursion
- (set-buffer (get-buffer mmm-temp-buffer-name))
+ (with-current-buffer (get-buffer mmm-temp-buffer-name)
(set-buffer-modified-p nil)
(kill-buffer (current-buffer))))
;; Now make a new temporary buffer.
diff --git a/mmm-sample.el b/mmm-sample.el
index 04e7d0c..cda15e2 100644
--- a/mmm-sample.el
+++ b/mmm-sample.el
@@ -31,6 +31,7 @@
;;; Code:
+(require 'cl)
(require 'mmm-auto)
(require 'mmm-vars)
@@ -371,4 +372,4 @@ and MODE is a major mode function symbol.")
(provide 'mmm-sample)
-;;; mmm-sample.el ends here
\ No newline at end of file
+;;; mmm-sample.el ends here
diff --git a/mmm-utils.el b/mmm-utils.el
index 7f2eb4b..04ef1f4 100644
--- a/mmm-utils.el
+++ b/mmm-utils.el
@@ -93,7 +93,7 @@ ON-STRING, if supplied, means to use the match data from a
subexp)
(save-match-data
(while (string-match "~\\([0-9]\\)" string)
- (setq subexp (string-to-int (match-string-no-properties 1 string))
+ (setq subexp (string-to-number (match-string-no-properties 1 string))
string (replace-match
(save-match-data
(set-match-data old-data)
@@ -155,4 +155,4 @@ i.e. whether text inserted at the marker should be inside
the region."
(provide 'mmm-utils)
-;;; mmm-utils.el ends here
\ No newline at end of file
+;;; mmm-utils.el ends here
- [elpa] master b2dac24 253/433: Used match-string-no-properties (Joe Kelsey), (continued)
- [elpa] master b2dac24 253/433: Used match-string-no-properties (Joe Kelsey), Dmitry Gutov, 2018/03/15
- [elpa] master 2524d7a 208/433: Added `require's and `defvar's to eliminate compliation warnings., Dmitry Gutov, 2018/03/15
- [elpa] master c712ad4 190/433: Added flags telling which faces to use for which regions., Dmitry Gutov, 2018/03/15
- [elpa] master 23cd237 197/433: Modified CSS to use preferred mode., Dmitry Gutov, 2018/03/15
- [elpa] master c5b8993 234/433: # Updated, Dmitry Gutov, 2018/03/15
- [elpa] master 15ee310 228/433: Passed arguments to `signal'., Dmitry Gutov, 2018/03/15
- [elpa] master f156169 225/433: * mmm-cweb.el: New file., Dmitry Gutov, 2018/03/15
- [elpa] master ce6b28a 241/433: (mmm-ify-by-class): Removed duplicates from completion list., Dmitry Gutov, 2018/03/15
- [elpa] master 3c8a463 210/433: Added config.log and mmm.info-*., Dmitry Gutov, 2018/03/15
- [elpa] master a55863a 220/433: Improved instructions for turning off PSGML. (Thanks to Michael Alan, Dmitry Gutov, 2018/03/15
- [elpa] master 7142b02 285/433: Fix compilation warnings,
Dmitry Gutov <=
- [elpa] master 36bed11 280/433: Don't use obsolete 'make-local-hook function in GNU Emacs, Dmitry Gutov, 2018/03/15
- [elpa] master 3f56329 290/433: Fix references to free variables, Dmitry Gutov, 2018/03/15
- [elpa] master 612fbbd 229/433: Added cweb to autoloaded classes., Dmitry Gutov, 2018/03/15
- [elpa] master d2c692b 222/433: # Listed keyword arguments that edebug needs (in a comment), Dmitry Gutov, 2018/03/15
- [elpa] master 4b1267a 230/433: Added `sgml-dtd' submode class from Yann Dirson <address@hidden>., Dmitry Gutov, 2018/03/15
- [elpa] master 4cfee12 209/433: Updated chapter/section headings and menus., Dmitry Gutov, 2018/03/15
- [elpa] master 7511773 184/433: # Changed email address, Dmitry Gutov, 2018/03/15
- [elpa] master 4351361 191/433: Added alist to keep track of user-preferred major modes., Dmitry Gutov, 2018/03/15
- [elpa] master ea97875 231/433: Added C indentation style variables., Dmitry Gutov, 2018/03/15
- [elpa] master 80134a4 237/433: * mmm-sample.el (jsp): Added jsp-comment submode type., Dmitry Gutov, 2018/03/15