Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs 29.1 tests #112

Merged
merged 3 commits into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- 26.3
- 27.2
- 28.2
# - 29.1
- 29.1
fail-fast: false

steps:
Expand Down
17 changes: 9 additions & 8 deletions electric-operator.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
(defcustom electric-operator-c-pointer-type-style 'variable
"Defines how C/C++ mode pointer and reference types are spaced.

If set to 'variable' then the operator is touching the variable
If set to \\='variable then the operator is touching the variable
name, as in `int *x'.

If set to 'type' then the operator is touching the type name , as
If set to \\='type then the operator is touching the type name, as
in `int* x'."
:group 'electricity
:type 'symbol
Expand All @@ -52,7 +52,7 @@ in `int* x'."
"Defines whether = in R named function arguments should be
spaced.

Setting the value to 'spaced' results in f(foo = 1), 'unspaced'
Setting the value to \\='spaced results in f(foo = 1), \\='unspaced
results in f(foo=1)."
:group 'electricity
:type 'symbol
Expand Down Expand Up @@ -190,7 +190,7 @@ from point) as the key."
(defun electric-operator-rule-regex-with-whitespace (op)
"Construct regex matching operator and any whitespace before/inside/after.

For example for the operator '+=' we allow '+=', ' +=', '+ ='. etc.
For example for the operator `+=' we allow `+=', ` +=', `+ ='. etc.

Whitespace before the operator is captured for possible use later.
"
Expand Down Expand Up @@ -629,7 +629,7 @@ Any better ideas would be welcomed."
"_t"
"Regex used in looking-back-locally to check for C types

For now we just assume that anything ending in '_t' is a type.
For now we just assume that anything ending in \"_t\" is a type.
I'm not sure if we can do any better by default.

You could add your own type names to this if needed. Send pull
Expand Down Expand Up @@ -793,7 +793,7 @@ Also handles C++ lambda capture by reference."

(defun electric-operator-c-mode-** ()
"C pointer to pointer or multiplication by pointer dereference.
e.g. `res = a * *b;`'"
e.g. `res = a * *b;'"
(if (or (electric-operator-c-after-type?) (electric-operator-c-is-function-or-class-definition?))
(electric-operator-c-space-pointer-type "**")
" * *"))
Expand Down Expand Up @@ -1502,8 +1502,9 @@ Also handles C++ lambda capture by reference."
(t " * ")))

(defun electric-operator-f90-mode-/()
"Handle (/ /) style implicit array declaration."
"Currently fails for fractions in implict declaration."
"Handle (/ /) style implicit array declaration.

Currently fails for fractions in implict declaration."
(cond
;; We do this instead of having separate (/ and /) operators so that it works
;; with electric pairs. TODO: find a way to make this work more generally.
Expand Down
Loading