Skip to content

Commit cd85d1e

Browse files
itkonenmmaechler
authored andcommitted
Fix call to search() with base namespace to avoid masking
ESS previously called `search()` without namespace qualification, which can cause errors when user-defined or package-defined functions override the base `search()`.
1 parent cf5c97b commit cd85d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/ess-r-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ To be used as part of `font-lock-defaults' keywords."
476476
(ess-smart-operators . ess-r-smart-operators)
477477
(inferior-ess-program . inferior-ess-r-program)
478478
(inferior-ess-objects-command . inferior-ess-r-objects-command)
479-
(inferior-ess-search-list-command . "search()\n")
479+
(inferior-ess-search-list-command . "base::search()\n")
480480
(inferior-ess-help-command . inferior-ess-r-help-command)
481481
(inferior-ess-exit-command . "q()")
482482
(ess-error-regexp-alist . ess-r-error-regexp-alist)

0 commit comments

Comments
 (0)