aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang.el
diff options
context:
space:
mode:
authorJohan Claesson <[email protected]>2018-09-16 21:04:35 +0200
committerDan Gudmundsson <[email protected]>2018-10-09 11:57:01 +0200
commit8e938ab671bdcadbf6571426e045de7855a5b196 (patch)
tree697d5db0771547752cdc07755019915544740a96 /lib/tools/emacs/erlang.el
parent02e3a9b162a1fe193c271cd0db7a99c326b63844 (diff)
downloadotp-8e938ab671bdcadbf6571426e045de7855a5b196.tar.gz
otp-8e938ab671bdcadbf6571426e045de7855a5b196.tar.bz2
otp-8e938ab671bdcadbf6571426e045de7855a5b196.zip
Emacs: consider case in erlang-get-identifier-at-point
Diffstat (limited to 'lib/tools/emacs/erlang.el')
-rw-r--r--lib/tools/emacs/erlang.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index fc6966c3e8..3cbe9daa60 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -3697,16 +3697,17 @@ retried without regard to module.
4. Arity - Integer in case of functions and macros if the number
of arguments could be found, otherwise nil."
(save-excursion
- (save-match-data
- (if (eq (char-syntax (following-char)) ? )
- (skip-chars-backward " \t"))
- (skip-chars-backward "[:word:]_:'")
- (cond ((looking-at erlang-module-function-regexp)
- (erlang-get-qualified-function-id-at-point))
- ((looking-at (concat erlang-atom-regexp ":"))
- (erlang-get-module-id-at-point))
- ((looking-at erlang-name-regexp)
- (erlang-get-some-other-id-at-point))))))
+ (let (case-fold-search)
+ (save-match-data
+ (if (eq (char-syntax (following-char)) ? )
+ (skip-chars-backward " \t"))
+ (skip-chars-backward "[:word:]_:'")
+ (cond ((looking-at erlang-module-function-regexp)
+ (erlang-get-qualified-function-id-at-point))
+ ((looking-at (concat erlang-atom-regexp ":"))
+ (erlang-get-module-id-at-point))
+ ((looking-at erlang-name-regexp)
+ (erlang-get-some-other-id-at-point)))))))
(defun erlang-get-qualified-function-id-at-point ()
(let ((kind 'qualified-function)