aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
-rw-r--r--lisp/autorevert.el5
-rw-r--r--lisp/progmodes/vhdl-mode.el27
3 files changed, 23 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index eec6ce769cd..dbb5ad27c9b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3389,9 +3389,10 @@ if test "${with_modules}" != "no"; then
3389 HAVE_MODULES=yes 3389 HAVE_MODULES=yes
3390 ;; 3390 ;;
3391 *) 3391 *)
3392 # BSD system have dlopen in the libc 3392 # BSD systems have dlopen in libc.
3393 AC_CHECK_FUNC(dlopen, [MODULES_SUFFIX=".so"] 3393 AC_CHECK_FUNC([dlopen],
3394 [HAVE_MODULES=yes], []) 3394 [MODULES_SUFFIX=".so"
3395 HAVE_MODULES=yes])
3395 ;; 3396 ;;
3396 esac 3397 esac
3397 3398
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 14e39bddd2e..bc9d58e1a00 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -680,7 +680,10 @@ This is an internal function used by Auto-Revert Mode."
680 ;; not to forget that. This gives undesirable results when 680 ;; not to forget that. This gives undesirable results when
681 ;; the file's mode changes, but that is less common. 681 ;; the file's mode changes, but that is less common.
682 (let ((buffer-read-only buffer-read-only)) 682 (let ((buffer-read-only buffer-read-only))
683 (revert-buffer 'ignore-auto 'dont-ask 'preserve-modes))) 683 ;; Bug#23276: When the file has been deleted, keep the
684 ;; buffer unchanged.
685 (ignore-errors
686 (revert-buffer 'ignore-auto 'dont-ask 'preserve-modes))))
684 (when buffer-file-name 687 (when buffer-file-name
685 (when eob (goto-char (point-max))) 688 (when eob (goto-char (point-max)))
686 (dolist (window eoblist) 689 (dolist (window eoblist)
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 27ce9fb1b30..a390494ebf5 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -13,10 +13,10 @@
13;; filed in the Emacs bug reporting system against this file, a copy 13;; filed in the Emacs bug reporting system against this file, a copy
14;; of the bug report be sent to the maintainer's email address. 14;; of the bug report be sent to the maintainer's email address.
15 15
16(defconst vhdl-version "3.37.1" 16(defconst vhdl-version "3.38.1"
17 "VHDL Mode version number.") 17 "VHDL Mode version number.")
18 18
19(defconst vhdl-time-stamp "2015-01-15" 19(defconst vhdl-time-stamp "2015-03-12"
20 "VHDL Mode time stamp for last update.") 20 "VHDL Mode time stamp for last update.")
21 21
22;; This file is part of GNU Emacs. 22;; This file is part of GNU Emacs.
@@ -4876,8 +4876,6 @@ Key bindings:
4876 (set (make-local-variable 'indent-line-function) 'vhdl-indent-line) 4876 (set (make-local-variable 'indent-line-function) 'vhdl-indent-line)
4877 (set (make-local-variable 'comment-start) "--") 4877 (set (make-local-variable 'comment-start) "--")
4878 (set (make-local-variable 'comment-end) "") 4878 (set (make-local-variable 'comment-end) "")
4879 (when vhdl-emacs-21
4880 (set (make-local-variable 'comment-padding) ""))
4881 (set (make-local-variable 'comment-column) vhdl-inline-comment-column) 4879 (set (make-local-variable 'comment-column) vhdl-inline-comment-column)
4882 (set (make-local-variable 'end-comment-column) vhdl-end-comment-column) 4880 (set (make-local-variable 'end-comment-column) vhdl-end-comment-column)
4883 (set (make-local-variable 'comment-start-skip) "--+\\s-*") 4881 (set (make-local-variable 'comment-start-skip) "--+\\s-*")
@@ -6001,6 +5999,7 @@ keyword."
6001 ;; following search list so that we don't run into 5999 ;; following search list so that we don't run into
6002 ;; semicolons in the function interface list. 6000 ;; semicolons in the function interface list.
6003 (backward-sexp) 6001 (backward-sexp)
6002 (skip-chars-forward "(")
6004 (let (foundp) 6003 (let (foundp)
6005 (while (and (not foundp) 6004 (while (and (not foundp)
6006 (re-search-backward 6005 (re-search-backward
@@ -6779,7 +6778,8 @@ statement if already at the beginning of one."
6779 ;; start point was not inside leader area 6778 ;; start point was not inside leader area
6780 ;; set stop point at word after leader 6779 ;; set stop point at word after leader
6781 (setq pos (point)))) 6780 (setq pos (point))))
6782 (forward-word-strictly 1) 6781 (unless (looking-at "\\<else\\s-+generate\\>")
6782 (forward-word-strictly 1))
6783 (vhdl-forward-syntactic-ws here) 6783 (vhdl-forward-syntactic-ws here)
6784 (setq pos (point))) 6784 (setq pos (point)))
6785 (goto-char pos) 6785 (goto-char pos)
@@ -9311,9 +9311,11 @@ a configuration declaration if not within a design unit."
9311 (let (margin) 9311 (let (margin)
9312 (vhdl-prepare-search-1 9312 (vhdl-prepare-search-1
9313 (vhdl-insert-keyword "ELSE") 9313 (vhdl-insert-keyword "ELSE")
9314 (if (and (save-excursion (vhdl-re-search-backward "\\(\\<when\\>\\|;\\)" nil t)) 9314 (if (and (save-excursion (vhdl-re-search-backward "\\(\\(\\<when\\>\\)\\|;\\)" nil t))
9315 (equal "WHEN" (upcase (match-string 1)))) 9315 (match-string 2))
9316 (insert " ") 9316 (insert " ")
9317 (unless (vhdl-sequential-statement-p)
9318 (vhdl-insert-keyword " GENERATE"))
9317 (indent-according-to-mode) 9319 (indent-according-to-mode)
9318 (setq margin (current-indentation)) 9320 (setq margin (current-indentation))
9319 (insert "\n") 9321 (insert "\n")
@@ -9325,15 +9327,16 @@ a configuration declaration if not within a design unit."
9325 (let ((start (point)) 9327 (let ((start (point))
9326 margin) 9328 margin)
9327 (vhdl-insert-keyword "ELSIF ") 9329 (vhdl-insert-keyword "ELSIF ")
9328 (when (or (vhdl-sequential-statement-p) (vhdl-standard-p 'ams))
9329 (when vhdl-conditions-in-parenthesis (insert "(")) 9330 (when vhdl-conditions-in-parenthesis (insert "("))
9330 (when (vhdl-template-field "condition" nil t start (point)) 9331 (when (vhdl-template-field "condition" nil t start (point))
9331 (when vhdl-conditions-in-parenthesis (insert ")")) 9332 (when vhdl-conditions-in-parenthesis (insert ")"))
9332 (indent-according-to-mode) 9333 (indent-according-to-mode)
9333 (setq margin (current-indentation)) 9334 (setq margin (current-indentation))
9334 (vhdl-insert-keyword 9335 (vhdl-insert-keyword
9335 (concat " " (if (vhdl-sequential-statement-p) "THEN" "USE") "\n")) 9336 (concat " " (cond ((vhdl-sequential-statement-p) "THEN")
9336 (indent-to (+ margin vhdl-basic-offset)))))) 9337 ((vhdl-standard-p 'ams) "USE")
9338 (t "GENERATE")) "\n"))
9339 (indent-to (+ margin vhdl-basic-offset)))))
9337 9340
9338(defun vhdl-template-entity () 9341(defun vhdl-template-entity ()
9339 "Insert an entity." 9342 "Insert an entity."
@@ -13001,7 +13004,7 @@ File statistics: \"%s\"\n\
13001 (let (pos) 13004 (let (pos)
13002 (save-excursion 13005 (save-excursion
13003 (while (and (setq pos (re-search-forward regexp bound noerror count)) 13006 (while (and (setq pos (re-search-forward regexp bound noerror count))
13004 (vhdl-in-literal)))) 13007 (save-match-data (vhdl-in-literal)))))
13005 (when pos (goto-char pos)) 13008 (when pos (goto-char pos))
13006 pos)) 13009 pos))
13007 13010
@@ -13010,7 +13013,7 @@ File statistics: \"%s\"\n\
13010 (let (pos) 13013 (let (pos)
13011 (save-excursion 13014 (save-excursion
13012 (while (and (setq pos (re-search-backward regexp bound noerror count)) 13015 (while (and (setq pos (re-search-backward regexp bound noerror count))
13013 (vhdl-in-literal)))) 13016 (save-match-data (vhdl-in-literal)))))
13014 (when pos (goto-char pos)) 13017 (when pos (goto-char pos))
13015 pos)) 13018 pos))
13016 13019