aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorGlenn Morris2011-02-27 17:07:29 -0800
committerGlenn Morris2011-02-27 17:07:29 -0800
commit2b0c7330457b8ca42375c92ada7dc7cefb0fa9fb (patch)
treeb924eb1c22ab3bce643676162ef039f250782661 /lisp/progmodes
parentdf7f0d0b10ce31a6f1a8b7e979e120c695699d5a (diff)
parentd1f61aaf6f0b6a2cf2bbb7eaf5631f8b580568d4 (diff)
downloademacs-2b0c7330457b8ca42375c92ada7dc7cefb0fa9fb.tar.gz
emacs-2b0c7330457b8ca42375c92ada7dc7cefb0fa9fb.zip
Merge from emacs-23; up to 2010-06-03T05:41:49Z!rgm@gnu.org.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cperl-mode.el16
-rw-r--r--lisp/progmodes/idlwave.el4
-rw-r--r--lisp/progmodes/vhdl-mode.el8
3 files changed, 14 insertions, 14 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 7c634d14e6a..f6d497569ba 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -2769,7 +2769,7 @@ Will not look before LIM."
2769 (goto-char (cperl-beginning-of-property p look-prop)) 2769 (goto-char (cperl-beginning-of-property p look-prop))
2770 (beginning-of-line) 2770 (beginning-of-line)
2771 (setq pre-indent-point (point))))) 2771 (setq pre-indent-point (point)))))
2772 (goto-char pre-indent-point) ; Orig line skipping preceeding pod/etc 2772 (goto-char pre-indent-point) ; Orig line skipping preceding pod/etc
2773 (let* ((case-fold-search nil) 2773 (let* ((case-fold-search nil)
2774 (s-s (cperl-get-state (car parse-data) (nth 1 parse-data))) 2774 (s-s (cperl-get-state (car parse-data) (nth 1 parse-data)))
2775 (start (or (nth 2 parse-data) ; last complete sexp terminated 2775 (start (or (nth 2 parse-data) ; last complete sexp terminated
@@ -2796,8 +2796,8 @@ Will not look before LIM."
2796 (cperl-1+ char-after-pos) 'indentable) 2796 (cperl-1+ char-after-pos) 'indentable)
2797 p (1+ (cperl-beginning-of-property 2797 p (1+ (cperl-beginning-of-property
2798 (point) 'indentable)) 2798 (point) 'indentable))
2799 is-block ; misused for: preceeding line in REx 2799 is-block ; misused for: preceding line in REx
2800 (save-excursion ; Find preceeding line 2800 (save-excursion ; Find preceding line
2801 (cperl-backward-to-noncomment p) 2801 (cperl-backward-to-noncomment p)
2802 (beginning-of-line) 2802 (beginning-of-line)
2803 (if (<= (point) p) 2803 (if (<= (point) p)
@@ -2813,10 +2813,10 @@ Will not look before LIM."
2813 prop (parse-partial-sexp p char-after-pos)) 2813 prop (parse-partial-sexp p char-after-pos))
2814 (cond ((not delim) ; End the REx, ignore is-block 2814 (cond ((not delim) ; End the REx, ignore is-block
2815 (vector 'indentable 'terminator p is-block)) 2815 (vector 'indentable 'terminator p is-block))
2816 (is-block ; Indent w.r.t. preceeding line 2816 (is-block ; Indent w.r.t. preceding line
2817 (vector 'indentable 'cont-line char-after-pos 2817 (vector 'indentable 'cont-line char-after-pos
2818 is-block char-after p)) 2818 is-block char-after p))
2819 (t ; No preceeding line... 2819 (t ; No preceding line...
2820 (vector 'indentable 'first-line p)))) 2820 (vector 'indentable 'first-line p))))
2821 ((get-text-property char-after-pos 'REx-part2) 2821 ((get-text-property char-after-pos 'REx-part2)
2822 (vector 'REx-part2 (point))) 2822 (vector 'REx-part2 (point)))
@@ -2897,7 +2897,7 @@ Will not look before LIM."
2897 (cperl-backward-to-start-of-continued-exp containing-sexp)) 2897 (cperl-backward-to-start-of-continued-exp containing-sexp))
2898 (beginning-of-line) 2898 (beginning-of-line)
2899 (cperl-backward-to-noncomment containing-sexp)) 2899 (cperl-backward-to-noncomment containing-sexp))
2900 ;; Now we get non-label preceeding the indent point 2900 ;; Now we get non-label preceding the indent point
2901 (if (not (or (eq (1- (point)) containing-sexp) 2901 (if (not (or (eq (1- (point)) containing-sexp)
2902 (memq (preceding-char) 2902 (memq (preceding-char)
2903 (append (if is-block " ;{" " ,;{") '(nil))) 2903 (append (if is-block " ;{" " ,;{") '(nil)))
@@ -4835,7 +4835,7 @@ the sections using `cperl-pod-head-face', `cperl-pod-face',
4835;;; Moreover, one takes positive approach (looks for else,grep etc) 4835;;; Moreover, one takes positive approach (looks for else,grep etc)
4836;;; another negative (looks for bless,tr etc) 4836;;; another negative (looks for bless,tr etc)
4837(defun cperl-after-block-p (lim &optional pre-block) 4837(defun cperl-after-block-p (lim &optional pre-block)
4838 "Return true if the preceeding } (if PRE-BLOCK, following {) delimits a block. 4838 "Return true if the preceding } (if PRE-BLOCK, following {) delimits a block.
4839Would not look before LIM. Assumes that LIM is a good place to begin a 4839Would not look before LIM. Assumes that LIM is a good place to begin a
4840statement. The kind of block we treat here is one after which a new 4840statement. The kind of block we treat here is one after which a new
4841statement would start; thus the block in ${func()} does not count." 4841statement would start; thus the block in ${func()} does not count."
@@ -4864,7 +4864,7 @@ statement would start; thus the block in ${func()} does not count."
4864 (progn 4864 (progn
4865 (forward-sexp -1) 4865 (forward-sexp -1)
4866 (looking-at "sub[ \t\n\f#]")))))) 4866 (looking-at "sub[ \t\n\f#]"))))))
4867 ;; What preceeds is not word... XXXX Last statement in sub??? 4867 ;; What precedes is not word... XXXX Last statement in sub???
4868 (cperl-after-expr-p lim)))) 4868 (cperl-after-expr-p lim))))
4869 (error nil)))) 4869 (error nil))))
4870 4870
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 30d9fc21867..5b7e07a5aad 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -428,7 +428,7 @@ path \(the value of !PATH). However, under Windows and MacOS
428variable can be set to specify the paths where IDLWAVE can find PRO 428variable can be set to specify the paths where IDLWAVE can find PRO
429files. The shell will only be asked for a list of paths when this 429files. The shell will only be asked for a list of paths when this
430variable is nil. The value is a list of directories. A directory 430variable is nil. The value is a list of directories. A directory
431preceeded by a `+' will be searched recursively. If you set this 431preceded by a `+' will be searched recursively. If you set this
432variable on a UNIX system, the shell will not be queried. See also 432variable on a UNIX system, the shell will not be queried. See also
433`idlwave-system-directory'." 433`idlwave-system-directory'."
434 :group 'idlwave-routine-info 434 :group 'idlwave-routine-info
@@ -1197,7 +1197,7 @@ As a user, you should not set this to t.")
1197 (2 font-lock-function-name-face))) 1197 (2 font-lock-function-name-face)))
1198 1198
1199 ;; Keyword parameters, like /xlog or ,xrange=[] 1199 ;; Keyword parameters, like /xlog or ,xrange=[]
1200 ;; This is anchored to the comma preceeding the keyword. 1200 ;; This is anchored to the comma preceding the keyword.
1201 ;; Treats continuation lines, works only during whole buffer 1201 ;; Treats continuation lines, works only during whole buffer
1202 ;; fontification. Slow, use it only in fancy fontification. 1202 ;; fontification. Slow, use it only in fancy fontification.
1203 (keyword-parameters 1203 (keyword-parameters
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index cb1d3c24a94..75b706b74ec 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -1775,7 +1775,7 @@ NOTE: Activate the new setting by restarting Emacs.
1775 1775
1776(defcustom vhdl-intelligent-tab t 1776(defcustom vhdl-intelligent-tab t
1777 "*Non-nil means `TAB' does indentation, word completion and tab insertion. 1777 "*Non-nil means `TAB' does indentation, word completion and tab insertion.
1778That is, if preceeding character is part of a word then complete word, 1778That is, if preceding character is part of a word then complete word,
1779else if not at beginning of line then insert tab, 1779else if not at beginning of line then insert tab,
1780else if last command was a `TAB' or `RET' then dedent one step, 1780else if last command was a `TAB' or `RET' then dedent one step,
1781else indent current line (i.e. `TAB' is bound to `vhdl-electric-tab'). 1781else indent current line (i.e. `TAB' is bound to `vhdl-electric-tab').
@@ -6946,7 +6946,7 @@ only-lines."
6946;; Indentation commands 6946;; Indentation commands
6947 6947
6948(defun vhdl-electric-tab (&optional prefix-arg) 6948(defun vhdl-electric-tab (&optional prefix-arg)
6949 "If preceeding character is part of a word or a paren then hippie-expand, 6949 "If preceding character is part of a word or a paren then hippie-expand,
6950else if right of non whitespace on line then insert tab, 6950else if right of non whitespace on line then insert tab,
6951else if last command was a tab or return then dedent one step or if a comment 6951else if last command was a tab or return then dedent one step or if a comment
6952toggle between normal indent and inline comment indent, 6952toggle between normal indent and inline comment indent,
@@ -10396,7 +10396,7 @@ with double-quotes is to be inserted. DEFAULT specifies a default string."
10396 (if vhdl-upper-case-keywords (upcase-word num) (downcase-word num))) 10396 (if vhdl-upper-case-keywords (upcase-word num) (downcase-word num)))
10397 10397
10398(defun vhdl-minibuffer-tab (&optional prefix-arg) 10398(defun vhdl-minibuffer-tab (&optional prefix-arg)
10399 "If preceeding character is part of a word or a paren then hippie-expand, 10399 "If preceding character is part of a word or a paren then hippie-expand,
10400else insert tab (used for word completion in VHDL minibuffer)." 10400else insert tab (used for word completion in VHDL minibuffer)."
10401 (interactive "P") 10401 (interactive "P")
10402 (cond 10402 (cond
@@ -13056,7 +13056,7 @@ hierarchy otherwise.")
13056;; Scan functions 13056;; Scan functions
13057 13057
13058(defun vhdl-scan-context-clause () 13058(defun vhdl-scan-context-clause ()
13059 "Scan the context clause that preceeds a design unit." 13059 "Scan the context clause that precedes a design unit."
13060 (let (lib-alist) 13060 (let (lib-alist)
13061 (save-excursion 13061 (save-excursion
13062 (when (re-search-backward "^[ \t]*\\(architecture\\|configuration\\|entity\\|package\\)\\>" nil t) 13062 (when (re-search-backward "^[ \t]*\\(architecture\\|configuration\\|entity\\|package\\)\\>" nil t)