aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorPaul Eggert2011-11-13 20:35:22 -0800
committerPaul Eggert2011-11-13 20:35:22 -0800
commitc3ca24d48c10fb771ee02eb58f7d49bd82d6306e (patch)
treee707b79a846623490feea39a4dceb86dd218eb4d /lisp/progmodes
parent6a0bf43d7c5961297aa5024aec534e5bab73c8af (diff)
parent56632ce4cd8616f0613e8734d62ec5e2f833c7dc (diff)
downloademacs-c3ca24d48c10fb771ee02eb58f7d49bd82d6306e.tar.gz
emacs-c3ca24d48c10fb771ee02eb58f7d49bd82d6306e.zip
Merge from trunk.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cc-fonts.el2
-rw-r--r--lisp/progmodes/ebnf2ps.el2
-rw-r--r--lisp/progmodes/executable.el16
-rw-r--r--lisp/progmodes/gud.el2
-rw-r--r--lisp/progmodes/idlw-shell.el4
-rw-r--r--lisp/progmodes/idlwave.el2
-rw-r--r--lisp/progmodes/modula2.el2
-rw-r--r--lisp/progmodes/pascal.el2
-rw-r--r--lisp/progmodes/ps-mode.el2
9 files changed, 19 insertions, 15 deletions
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index 9a83d5196db..2028a7c4675 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -317,7 +317,7 @@
317 (match-beginning ,(car highlight)) 317 (match-beginning ,(car highlight))
318 (match-end ,(car highlight)) 318 (match-end ,(car highlight))
319 ,(elt highlight 1)))) 319 ,(elt highlight 1))))
320 ;; highlight is an "ANCHORED HIGHLIGHER" of the form 320 ;; highlight is an "ANCHORED HIGHLIGHTER" of the form
321 ;; (ANCHORED-MATCHER PRE-FORM POST-FORM SUBEXP-HIGHLIGHTERS...) 321 ;; (ANCHORED-MATCHER PRE-FORM POST-FORM SUBEXP-HIGHLIGHTERS...)
322 (when (nth 3 highlight) 322 (when (nth 3 highlight)
323 (error "Match highlights currently not supported in %s" 323 (error "Match highlights currently not supported in %s"
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el
index f7965d2cd01..c027b2b7454 100644
--- a/lisp/progmodes/ebnf2ps.el
+++ b/lisp/progmodes/ebnf2ps.el
@@ -4007,7 +4007,7 @@ See documentation for `ebnf-terminal-shape', `ebnf-non-terminal-shape' and
4007/#ebnf2ps#dict 230 dict def 4007/#ebnf2ps#dict 230 dict def
4008#ebnf2ps#dict begin 4008#ebnf2ps#dict begin
4009 4009
4010% Initiliaze variables to avoid name-conflicting with document variables. 4010% Initialize variables to avoid name-conflicting with document variables.
4011% This is the case when using `bind' operator. 4011% This is the case when using `bind' operator.
4012/-fillp- 0 def /h 0 def 4012/-fillp- 0 def /h 0 def
4013/-ox- 0 def /half 0 def 4013/-ox- 0 def /half 0 def
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el
index d8133cb6b90..281fa3cef72 100644
--- a/lisp/progmodes/executable.el
+++ b/lisp/progmodes/executable.el
@@ -268,12 +268,16 @@ file modes."
268 (save-restriction 268 (save-restriction
269 (widen) 269 (widen)
270 (string= "#!" (buffer-substring (point-min) (+ 2 (point-min))))) 270 (string= "#!" (buffer-substring (point-min) (+ 2 (point-min)))))
271 (let* ((current-mode (file-modes (buffer-file-name))) 271 (condition-case nil
272 (add-mode (logand ?\111 (default-file-modes)))) 272 (let* ((current-mode (file-modes (buffer-file-name)))
273 (or (/= (logand ?\111 current-mode) 0) 273 (add-mode (logand ?\111 (default-file-modes))))
274 (zerop add-mode) 274 (or (/= (logand ?\111 current-mode) 0)
275 (set-file-modes (buffer-file-name) 275 (zerop add-mode)
276 (logior current-mode add-mode)))))) 276 (set-file-modes (buffer-file-name)
277 (logior current-mode add-mode))))
278 ;; Eg file-modes can return nil (bug#9879). It should not,
279 ;; in this context, but we should handle it all the same.
280 (error (message "Unable to make file executable")))))
277 281
278(provide 'executable) 282(provide 'executable)
279 283
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 944a412fb63..543539421fe 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -2016,7 +2016,7 @@ extension EXTN. Normally EXTN is given as the regular expression
2016 ((looking-at "final") 2016 ((looking-at "final")
2017 (forward-char 5)) 2017 (forward-char 5))
2018 2018
2019 ;; Move point past a ClassDeclaraction, but save the class 2019 ;; Move point past a ClassDeclaration, but save the class
2020 ;; Identifier. 2020 ;; Identifier.
2021 ((looking-at "class") 2021 ((looking-at "class")
2022 (forward-char 5) 2022 (forward-char 5)
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index 18f47d14a3f..453badfa46b 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -959,7 +959,7 @@ IDL has currently stepped.")
959 ;; Can not use history expansion because "!" is used for system variables. 959 ;; Can not use history expansion because "!" is used for system variables.
960 (setq comint-input-autoexpand nil) 960 (setq comint-input-autoexpand nil)
961 ;; (setq comint-input-ring-size 64) 961 ;; (setq comint-input-ring-size 64)
962 962
963 (set (make-local-variable 'completion-ignore-case) t) 963 (set (make-local-variable 'completion-ignore-case) t)
964 (set (make-local-variable 'comint-completion-addsuffix) '("/" . "")) 964 (set (make-local-variable 'comint-completion-addsuffix) '("/" . ""))
965 (setq comint-input-ignoredups t) 965 (setq comint-input-ignoredups t)
@@ -3707,7 +3707,7 @@ Existing overlays are recycled, in order to minimize consumption."
3707(defun idlwave-shell-make-new-bp-overlay (&optional type disabled) 3707(defun idlwave-shell-make-new-bp-overlay (&optional type disabled)
3708 "Make a new overlay for highlighting breakpoints. 3708 "Make a new overlay for highlighting breakpoints.
3709 3709
3710This stuff is strongly dependant upon the version of Emacs. If TYPE 3710This stuff is strongly dependent upon the version of Emacs. If TYPE
3711is passed, make an overlay of that type ('bp or 'bp-cond, currently 3711is passed, make an overlay of that type ('bp or 'bp-cond, currently
3712only for glyphs)." 3712only for glyphs)."
3713 (let ((ov (make-overlay 1 1)) 3713 (let ((ov (make-overlay 1 1))
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index c77ee4b76a9..95f67a6bf66 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -8961,7 +8961,7 @@ This expects NAME TYPE IDLWAVE-TWIN-CLASS to be bound to the right values."
8961 (nth 1 source))) 8961 (nth 1 source)))
8962 8962
8963(defun idlwave-downcase-safe (string) 8963(defun idlwave-downcase-safe (string)
8964 "Donwcase if string, else return unchanged." 8964 "Downcase if string, else return unchanged."
8965 (if (stringp string) 8965 (if (stringp string)
8966 (downcase string) 8966 (downcase string)
8967 string)) 8967 string))
diff --git a/lisp/progmodes/modula2.el b/lisp/progmodes/modula2.el
index f0b8f7cbca7..0c43a3ed354 100644
--- a/lisp/progmodes/modula2.el
+++ b/lisp/progmodes/modula2.el
@@ -466,7 +466,7 @@ followed by the first character of the construct.
466 '(m2-var) \n _ \n \n 466 '(m2-var) \n _ \n \n
467 '(m2-begin) 467 '(m2-begin)
468 '(m2-begin-comment) 468 '(m2-begin-comment)
469 " Module " str " Initialisation Code " 469 " Module " str " Initialization Code "
470 '(m2-end-comment) 470 '(m2-end-comment)
471 \n \n "END " str "." > \n) 471 \n \n "END " str "." > \n)
472 472
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el
index 57ed13969b4..67e3c4a18b4 100644
--- a/lisp/progmodes/pascal.el
+++ b/lisp/progmodes/pascal.el
@@ -227,7 +227,7 @@ will do all lineups."
227 :type '(set :extra-offset 8 227 :type '(set :extra-offset 8
228 (const :tag "Everything" all) 228 (const :tag "Everything" all)
229 (const :tag "Parameter lists" paramlist) 229 (const :tag "Parameter lists" paramlist)
230 (const :tag "Decalrations" declaration) 230 (const :tag "Declarations" declaration)
231 (const :tag "Case statements" case)) 231 (const :tag "Case statements" case))
232 :group 'pascal) 232 :group 'pascal)
233 233
diff --git a/lisp/progmodes/ps-mode.el b/lisp/progmodes/ps-mode.el
index d60e7513651..94d55ee3f61 100644
--- a/lisp/progmodes/ps-mode.el
+++ b/lisp/progmodes/ps-mode.el
@@ -624,7 +624,7 @@ Typing \\<ps-run-mode-map>\\[ps-run-goto-error] when the cursor is at the number
624(defun ps-mode-target-column () 624(defun ps-mode-target-column ()
625 "To what column should text on current line be indented? 625 "To what column should text on current line be indented?
626 626
627Identation is increased if the last token on the current line 627Indentation is increased if the last token on the current line
628defines the beginning of a group. These tokens are: { [ <<" 628defines the beginning of a group. These tokens are: { [ <<"
629 (save-excursion 629 (save-excursion
630 (beginning-of-line) 630 (beginning-of-line)