[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] externals/caml 9b0544f 154/197: fix whitespace and over-long li
From: |
Stefan Monnier |
Subject: |
[nongnu] externals/caml 9b0544f 154/197: fix whitespace and over-long lines |
Date: |
Sat, 21 Nov 2020 01:19:57 -0500 (EST) |
branch: externals/caml
commit 9b0544fb43a0fc3d72c3d7111b7879d1dd7532e1
Author: Damien Doligez <damien.doligez-inria.fr>
Commit: Damien Doligez <damien.doligez-inria.fr>
fix whitespace and over-long lines
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13428
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
caml-font.el | 10 +++++++---
caml.el | 4 +++-
camldebug.el | 10 ++++++----
inf-caml.el | 3 ++-
4 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/caml-font.el b/caml-font.el
index 0f35655..40bee0a 100644
--- a/caml-font.el
+++ b/caml-font.el
@@ -140,11 +140,13 @@
(defconst caml-font-ident-re
-
"[A-Za-z_\300-\326\330-\366\370-\377][A-Za-z_\300-\326\330-\366\370-\377'0-9]*"
+ (concat "[A-Za-z_\300-\326\330-\366\370-\377]"
+ "[A-Za-z_\300-\326\330-\366\370-\377'0-9]*")
)
(defconst caml-font-int-re
-
"\\(0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\\|0[oO][0-7][0-7_]*\\|0[bB][01][01_]*\\)[lLn]?"
+ (concat "\\(0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\\|0[oO][0-7][0-7_]*"
+ "\\|0[bB][01][01_]*\\)[lLn]?")
)
; decimal integers are folded into the RE for floats to get longest-match
@@ -160,7 +162,9 @@
; match any char token
(defconst caml-font-char-re
- "'\\(\015\012\\|[^\\']\\|\\(\\\\\\([\\'\"ntbr
]\\|[0-9][0-9][0-9]\\|x[0-9A-Fa-f][0-9A-Fa-f]\\)\\)\\)'"
+ (concat "'\\(\015\012\\|[^\\']\\|"
+ "\\(\\\\\\([\\'\"ntbr ]\\|[0-9][0-9][0-9]"
+ "\\|x[0-9A-Fa-f][0-9A-Fa-f]\\)\\)\\)'")
)
; match a quote followed by a newline
diff --git a/caml.el b/caml.el
index ea2e8ab..76ea852 100644
--- a/caml.el
+++ b/caml.el
@@ -788,6 +788,7 @@ variable caml-mode-indentation."
;; In Emacs 19, the regexps in compilation-error-regexp-alist do not
;; match the error messages when the language is not English.
;; Hence we add a regexp.
+;; FIXME do we (still) have i18n of error messages ???
(defconst caml-error-regexp
"^[ A-\377]+ \"\\([^\"\n]+\\)\", [A-\377]+ \\([0-9]+\\)[-,:]"
@@ -797,7 +798,8 @@ variable caml-mode-indentation."
;; We will adapt OCaml to output error messages in a compatible format.
;; In the meantime we add the new format here in addition to the old one.
(defconst caml-error-regexp-newstyle
- "^[ A-\377]+ \"\\([^\"\n]+\\)\", line \\([0-9]+\\), char \\([0-9]+\\) to
line \\([0-9]+\\), char \\([0-9]+\\):"
+ (concat "^[ A-\377]+ \"\\([^\"\n]+\\)\", line \\([0-9]+\\),"
+ "char \\([0-9]+\\) to line \\([0-9]+\\), char \\([0-9]+\\):")
"Regular expression matching the error messages produced by
ocamlc/ocamlopt.")
(if (boundp 'compilation-error-regexp-alist)
diff --git a/camldebug.el b/camldebug.el
index 74f096c..6e83bac 100644
--- a/camldebug.el
+++ b/camldebug.el
@@ -96,8 +96,8 @@ The following commands are available:
\\[camldebug-display-frame] displays in the other window
the last line referred to in the camldebug buffer.
-\\[camldebug-step], \\[camldebug-back] and \\[camldebug-next], in the
camldebug window,
-call camldebug to step, backstep or next and then update the other window
+\\[camldebug-step], \\[camldebug-back] and \\[camldebug-next], in the camldebug
+window,call camldebug to step, backstep or next and then update the other
window
with the current file and position.
If you are in a source file, you may select a point to break
@@ -250,7 +250,8 @@ representation is simply concatenated with the COMMAND."
camldebug-goto-position
"-[0-9]+[ \t]*\\(before\\).*\n")
camldebug-filter-accumulator)
- (string-match (concat "\\(\n\\|\\`\\)[ \t]*\\([0-9]+\\)[
\t]+[0-9]+-"
+ (string-match (concat "\\(\n\\|\\`\\)[ \t]*\\([0-9]+\\)"
+ "[ \t]+[0-9]+-"
camldebug-goto-position
"[ \t]*\\(after\\).*\n")
camldebug-filter-accumulator)))
@@ -710,7 +711,8 @@ Obeying it means displaying in another window the specified
file and line."
;;; Miscellaneous.
(defun camldebug-module-name (filename)
- (substring filename (string-match "\\([^/]*\\)\\.ml$" filename) (match-end
1)))
+ (substring filename (string-match "\\([^/]*\\)\\.ml$" filename)
+ (match-end 1)))
;;; The camldebug-call function must do the right thing whether its
;;; invoking keystroke is from the camldebug buffer itself (via
diff --git a/inf-caml.el b/inf-caml.el
index 7f16611..8a77577 100644
--- a/inf-caml.el
+++ b/inf-caml.el
@@ -280,7 +280,8 @@ should lies."
(column (- (match-end 3) (match-beginning 3)))
(width (- (match-end 2) (match-end 3))))
(if (string-match "^\\(.*\\)[<]EOF[>]$" expr)
- (setq expr (substring expr (match-beginning 1)
(match-end 1))))
+ (setq expr (substring expr (match-beginning 1)
+ (match-end 1))))
(switch-to-buffer buf)
(re-search-backward
(concat "^" (regexp-quote expr) "$")
- [nongnu] externals/caml 111e6db 109/197: nettoyage, (continued)
- [nongnu] externals/caml 111e6db 109/197: nettoyage, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml e32742a 111/197: ajout des annotations pour variables et appels terminaux, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 5f8dd3f 113/197: PR#4440 added function to skip warnings and jump to error, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml a688081 114/197: PR#4469 enhanced caml-set-compile-command, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 99e7ea3 119/197: merge changes from 3.10.2merged to 3.11.0, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 51b6e03 120/197: merge changes from release/3.11.1 to release/3.11.2, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml d1fc793 125/197: Added save-excursion to ocaml-link-activate., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 97316f7 130/197: renaming of Objective Caml to OCaml and cleanup of copyright headers, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 42d2eda 126/197: Fixed caml-help (would loose the position of the symbol search for)., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 49653b2 148/197: remove all $Id keywords, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 9b0544f 154/197: fix whitespace and over-long lines,
Stefan Monnier <=
- [nongnu] externals/caml da654aa 179/197: Emacs: Modernise font face definitions, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml cd1142f 187/197: Change camlc → ocamlc, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 3fb0de6 188/197: Add octal character literals, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 6e0e050 134/197: PR#5455: .emacs instructions, add lines to recognize ocaml scripts, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 56e93b6 151/197: fix a few problems with whitespace and over-long lines, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml f4c7308 168/197: caml.el: Reduce byte-compilation warnings, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml a0d389f 058/197: skip structs in let module ... in, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 442bd24 059/197: prepare snapshot, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml ac2a0b2 064/197: ajout option -stypes; depend, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml faa1c81 065/197: ajout choses a faire, Stefan Monnier, 2020/11/21