aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJoakim Verona2012-01-12 07:50:16 +0100
committerJoakim Verona2012-01-12 07:50:16 +0100
commit16e9a80c0c3ca5f72f802b92ff5ca1f595a07eca (patch)
tree33fb6b970b7bcb0cb813d305da2c43f3d212bbf2 /lisp/progmodes
parente4f761f1e3df7fbc7793c73c5d808b8da0b3a700 (diff)
parent403993a8a646887193dd7b8a01cf16137cd89a1e (diff)
downloademacs-16e9a80c0c3ca5f72f802b92ff5ca1f595a07eca.tar.gz
emacs-16e9a80c0c3ca5f72f802b92ff5ca1f595a07eca.zip
upstream
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/ada-xref.el2
-rw-r--r--lisp/progmodes/cc-engine.el19
-rw-r--r--lisp/progmodes/cc-fonts.el2
-rw-r--r--lisp/progmodes/etags.el2
-rw-r--r--lisp/progmodes/hideshow.el2
-rw-r--r--lisp/progmodes/idlw-shell.el2
-rw-r--r--lisp/progmodes/mixal-mode.el36
7 files changed, 34 insertions, 31 deletions
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el
index d72eef27a58..1e07ac4cf09 100644
--- a/lisp/progmodes/ada-xref.el
+++ b/lisp/progmodes/ada-xref.el
@@ -1533,7 +1533,7 @@ the project file."
1533 ;; .ali file for a spec file. If we are, go to step 3. 1533 ;; .ali file for a spec file. If we are, go to step 3.
1534 ;; 3- If the file is not found or step 2 failed: 1534 ;; 3- If the file is not found or step 2 failed:
1535 ;; find the name of the "other file", ie the body, and look 1535 ;; find the name of the "other file", ie the body, and look
1536 ;; for its associated .ali file by subtituting the extension 1536 ;; for its associated .ali file by substituting the extension
1537 ;; 1537 ;;
1538 ;; We must also handle the case of separate packages and subprograms: 1538 ;; We must also handle the case of separate packages and subprograms:
1539 ;; 4- If no ali file was found, we try to modify the file name by removing 1539 ;; 4- If no ali file was found, we try to modify the file name by removing
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 392e5d1c37c..2e0294341da 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -4211,12 +4211,14 @@ The last point calculated is cached if the cache is enabled, i.e. if
4211 4211
4212Note that this function might do hidden buffer changes. See the 4212Note that this function might do hidden buffer changes. See the
4213comment at the start of cc-engine.el for more info." 4213comment at the start of cc-engine.el for more info."
4214 (let* ((safe-place (c-state-safe-place (point))) 4214 (save-restriction
4215 (lit (c-state-pp-to-literal safe-place (point)))) 4215 (widen)
4216 (or (cadr lit) 4216 (let* ((safe-place (c-state-safe-place (point)))
4217 (and detect-cpp 4217 (lit (c-state-pp-to-literal safe-place (point))))
4218 (save-excursion (c-beginning-of-macro)) 4218 (or (cadr lit)
4219 'pound)))) 4219 (and detect-cpp
4220 (save-excursion (c-beginning-of-macro))
4221 'pound)))))
4220 4222
4221(defun c-literal-limits (&optional lim near not-in-delimiter) 4223(defun c-literal-limits (&optional lim near not-in-delimiter)
4222 "Return a cons of the beginning and end positions of the comment or 4224 "Return a cons of the beginning and end positions of the comment or
@@ -4236,9 +4238,10 @@ comment at the start of cc-engine.el for more info."
4236 (save-excursion 4238 (save-excursion
4237 (let* ((pos (point)) 4239 (let* ((pos (point))
4238 (lim (or lim (c-state-safe-place pos))) 4240 (lim (or lim (c-state-safe-place pos)))
4239 (pp-to-lit (c-state-pp-to-literal lim pos)) 4241 (pp-to-lit (save-restriction
4242 (widen)
4243 (c-state-pp-to-literal lim pos)))
4240 (state (car pp-to-lit)) 4244 (state (car pp-to-lit))
4241 (lit-type (cadr pp-to-lit))
4242 (lit-limits (car (cddr pp-to-lit)))) 4245 (lit-limits (car (cddr pp-to-lit))))
4243 4246
4244 (cond 4247 (cond
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index f52864df809..e7d00815708 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -1429,7 +1429,7 @@ casts and declarations are fontified. Used on level 2 and higher."
1429 nil) 1429 nil)
1430 1430
1431 ((and (not c-enums-contain-decls) 1431 ((and (not c-enums-contain-decls)
1432 ;; An optimisation quickly to eliminate scans of long enum 1432 ;; An optimization quickly to eliminate scans of long enum
1433 ;; declarations in the next cond arm. 1433 ;; declarations in the next cond arm.
1434 (let ((paren-state (c-parse-state))) 1434 (let ((paren-state (c-parse-state)))
1435 (and 1435 (and
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index 56f04751bda..cc5f0fef934 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -463,7 +463,7 @@ Returns non-nil if it is a valid table."
463 463
464;; Subroutine of visit-tags-table-buffer. Search the current tags tables 464;; Subroutine of visit-tags-table-buffer. Search the current tags tables
465;; for one that has tags for THIS-FILE (or that includes a table that 465;; for one that has tags for THIS-FILE (or that includes a table that
466;; does). Return the name of the first table table listing THIS-FILE; if 466;; does). Return the name of the first table listing THIS-FILE; if
467;; the table is one included by another table, it is the master table that 467;; the table is one included by another table, it is the master table that
468;; we return. If CORE-ONLY is non-nil, check only tags tables that are 468;; we return. If CORE-ONLY is non-nil, check only tags tables that are
469;; already in buffers--don't visit any new files. 469;; already in buffers--don't visit any new files.
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el
index c9ba5ef2818..0884d28ad5a 100644
--- a/lisp/progmodes/hideshow.el
+++ b/lisp/progmodes/hideshow.el
@@ -604,7 +604,7 @@ we return a list having a nil as its car and the end of comment position
604as cdr." 604as cdr."
605 (save-excursion 605 (save-excursion
606 ;; the idea is to look backwards for a comment start regexp, do a 606 ;; the idea is to look backwards for a comment start regexp, do a
607 ;; forward comment, and see if we are inside, then extend extend 607 ;; forward comment, and see if we are inside, then extend
608 ;; forward and backward as long as we have comments 608 ;; forward and backward as long as we have comments
609 (let ((q (point))) 609 (let ((q (point)))
610 (when (or (looking-at hs-c-start-regexp) 610 (when (or (looking-at hs-c-start-regexp)
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index 619b903e902..55a085fbde0 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -227,7 +227,7 @@ window, but is useful for stepping, etc."
227 "Obsolete variable. See `idlwave-shell-debug-modifiers'.") 227 "Obsolete variable. See `idlwave-shell-debug-modifiers'.")
228 228
229(defcustom idlwave-shell-use-truename nil 229(defcustom idlwave-shell-use-truename nil
230 "*Non-nil means, use use `file-truename' when looking for buffers. 230 "*Non-nil means, use `file-truename' when looking for buffers.
231If this variable is non-nil, Emacs will use the function `file-truename' to 231If this variable is non-nil, Emacs will use the function `file-truename' to
232resolve symbolic links in the file paths printed by e.g., STOP commands. 232resolve symbolic links in the file paths printed by e.g., STOP commands.
233This means, unvisited files will be loaded under their truename. 233This means, unvisited files will be loaded under their truename.
diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el
index b152f7367eb..54d857dd4b1 100644
--- a/lisp/progmodes/mixal-mode.el
+++ b/lisp/progmodes/mixal-mode.el
@@ -145,43 +145,43 @@ zeros to make a word."
145 (LD1 loading "load I1" 9 field 145 (LD1 loading "load I1" 9 field
146 "Put in rI1 the contents of cell no. M. 146 "Put in rI1 the contents of cell no. M.
147Uses a + when there is no sign in subfield. Subfield is left padded with 147Uses a + when there is no sign in subfield. Subfield is left padded with
148zeros to make a word. Index registers only have 2 bytes and a sign, Trying 148zeros to make a word. Index registers only have 2 bytes and a sign; trying
149to set anything more that that will result in undefined behavior." 149to set anything more than that will result in undefined behavior."
150 2) 150 2)
151 151
152 (LD2 loading "load I2" 10 field 152 (LD2 loading "load I2" 10 field
153 "Put in rI2 the contents of cell no. M. 153 "Put in rI2 the contents of cell no. M.
154Uses a + when there is no sign in subfield. Subfield is left padded with 154Uses a + when there is no sign in subfield. Subfield is left padded with
155zeros to make a word. Index registers only have 2 bytes and a sign, Trying 155zeros to make a word. Index registers only have 2 bytes and a sign; trying
156to set anything more that that will result in undefined behavior." 156to set anything more than that will result in undefined behavior."
157 2) 157 2)
158 158
159 (LD3 loading "load I3" 11 field 159 (LD3 loading "load I3" 11 field
160 "Put in rI3 the contents of cell no. M. 160 "Put in rI3 the contents of cell no. M.
161Uses a + when there is no sign in subfield. Subfield is left padded with 161Uses a + when there is no sign in subfield. Subfield is left padded with
162zeros to make a word. Index registers only have 2 bytes and a sign, Trying 162zeros to make a word. Index registers only have 2 bytes and a sign; trying
163to set anything more that that will result in undefined behavior." 163to set anything more than that will result in undefined behavior."
164 2) 164 2)
165 165
166 (LD4 loading "load I4" 12 field 166 (LD4 loading "load I4" 12 field
167 "Put in rI4 the contents of cell no. M. 167 "Put in rI4 the contents of cell no. M.
168Uses a + when there is no sign in subfield. Subfield is left padded with 168Uses a + when there is no sign in subfield. Subfield is left padded with
169zeros to make a word. Index registers only have 2 bytes and a sign, Trying 169zeros to make a word. Index registers only have 2 bytes and a sign; trying
170to set anything more that that will result in undefined behavior." 170to set anything more than that will result in undefined behavior."
171 2) 171 2)
172 172
173 (LD5 loading "load I5" 13 field 173 (LD5 loading "load I5" 13 field
174 "Put in rI5 the contents of cell no. M. 174 "Put in rI5 the contents of cell no. M.
175Uses a + when there is no sign in subfield. Subfield is left padded with 175Uses a + when there is no sign in subfield. Subfield is left padded with
176zeros to make a word. Index registers only have 2 bytes and a sign, Trying 176zeros to make a word. Index registers only have 2 bytes and a sign; trying
177to set anything more that that will result in undefined behavior." 177to set anything more than that will result in undefined behavior."
178 2) 178 2)
179 179
180 (LD6 loading "load I6" 14 field 180 (LD6 loading "load I6" 14 field
181 "Put in rI6 the contents of cell no. M. 181 "Put in rI6 the contents of cell no. M.
182Uses a + when there is no sign in subfield. Subfield is left padded with 182Uses a + when there is no sign in subfield. Subfield is left padded with
183zeros to make a word. Index registers only have 2 bytes and a sign, Trying 183zeros to make a word. Index registers only have 2 bytes and a sign; trying
184to set anything more that that will result in undefined behavior." 184to set anything more than that will result in undefined behavior."
185 2) 185 2)
186 186
187 (LDAN loading "load A negative" 16 field 187 (LDAN loading "load A negative" 16 field
@@ -200,7 +200,7 @@ Subfield is left padded with zeros to make a word."
200 "Put in rI1 the contents of cell no. M, with opposite sign. 200 "Put in rI1 the contents of cell no. M, with opposite sign.
201Uses a + when there is no sign in subfield, otherwise use the opposite sign. 201Uses a + when there is no sign in subfield, otherwise use the opposite sign.
202Subfield is left padded with zeros to make a word. Index registers only 202Subfield is left padded with zeros to make a word. Index registers only
203have 2 bytes and a sign, Trying to set anything more that that will result 203have 2 bytes and a sign; trying to set anything more than that will result
204in undefined behavior." 204in undefined behavior."
205 2) 205 2)
206 206
@@ -208,7 +208,7 @@ in undefined behavior."
208 "Put in rI2 the contents of cell no. M, with opposite sign. 208 "Put in rI2 the contents of cell no. M, with opposite sign.
209Uses a + when there is no sign in subfield, otherwise use the opposite sign. 209Uses a + when there is no sign in subfield, otherwise use the opposite sign.
210Subfield is left padded with zeros to make a word. Index registers only 210Subfield is left padded with zeros to make a word. Index registers only
211have 2 bytes and a sign, Trying to set anything more that that will result 211have 2 bytes and a sign; trying to set anything more than that will result
212in undefined behavior." 212in undefined behavior."
213 2) 213 2)
214 214
@@ -216,7 +216,7 @@ in undefined behavior."
216 "Put in rI3 the contents of cell no. M, with opposite sign. 216 "Put in rI3 the contents of cell no. M, with opposite sign.
217Uses a + when there is no sign in subfield, otherwise use the opposite sign. 217Uses a + when there is no sign in subfield, otherwise use the opposite sign.
218Subfield is left padded with zeros to make a word. Index registers only 218Subfield is left padded with zeros to make a word. Index registers only
219have 2 bytes and a sign, Trying to set anything more that that will result 219have 2 bytes and a sign; trying to set anything more than that will result
220in undefined behavior." 220in undefined behavior."
221 2) 221 2)
222 222
@@ -224,7 +224,7 @@ in undefined behavior."
224 "Put in rI4 the contents of cell no. M, with opposite sign. 224 "Put in rI4 the contents of cell no. M, with opposite sign.
225Uses a + when there is no sign in subfield, otherwise use the opposite sign. 225Uses a + when there is no sign in subfield, otherwise use the opposite sign.
226Subfield is left padded with zeros to make a word. Index registers only 226Subfield is left padded with zeros to make a word. Index registers only
227have 2 bytes and a sign, Trying to set anything more that that will result 227have 2 bytes and a sign; trying to set anything more than that will result
228in undefined behavior." 228in undefined behavior."
229 2) 229 2)
230 230
@@ -232,7 +232,7 @@ in undefined behavior."
232 "Put in rI5 the contents of cell no. M, with opposite sign. 232 "Put in rI5 the contents of cell no. M, with opposite sign.
233Uses a + when there is no sign in subfield, otherwise use the opposite sign. 233Uses a + when there is no sign in subfield, otherwise use the opposite sign.
234Subfield is left padded with zeros to make a word. Index registers only 234Subfield is left padded with zeros to make a word. Index registers only
235have 2 bytes and a sign, Trying to set anything more that that will result 235have 2 bytes and a sign; trying to set anything more than that will result
236in undefined behavior." 236in undefined behavior."
237 2) 237 2)
238 238
@@ -240,7 +240,7 @@ in undefined behavior."
240 "Put in rI6 the contents of cell no. M, with opposite sign. 240 "Put in rI6 the contents of cell no. M, with opposite sign.
241Uses a + when there is no sign in subfield, otherwise use the opposite sign. 241Uses a + when there is no sign in subfield, otherwise use the opposite sign.
242Subfield is left padded with zeros to make a word. Index registers only 242Subfield is left padded with zeros to make a word. Index registers only
243have 2 bytes and a sign, Trying to set anything more that that will result 243have 2 bytes and a sign; trying to set anything more than that will result
244in undefined behavior." 244in undefined behavior."
245 2) 245 2)
246 246