Skip to content

Commit 04ebabb

Browse files
committed
Fix tests for emacs 29
1 parent b58aa80 commit 04ebabb

File tree

13 files changed

+56
-31
lines changed

13 files changed

+56
-31
lines changed

lisp/ess-help.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ TITLE of the help page,
271271
HELP-TYPE to be stored in `ess-help-type' local variable,
272272
ACTION is a function with no argument (default is `ess--button-action'),
273273
HELP-ECHO if given becomes the help-echo property of the button,
274-
REG-START gives the start location from where to search linkifying, and HELP-OBJECT becomes `ess-help-object'."
274+
REG-START gives the start location from where to search linkifying,
275+
and HELP-OBJECT becomes `ess-help-object'."
275276
(let ((inhibit-modification-hooks t)
276277
(alist ess-local-customize-alist)
277278
(pname ess-local-process-name)

lisp/ess-inf.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,8 +2209,8 @@ A negative prefix argument gets the objects for that position
22092209
(ess-execute the-command invert "S objects" the-message)))
22102210

22112211
(defun ess-execute-search (invert)
2212-
"Send the `inferior-ess-search-list-command' command to the `ess-language' process.
2213-
[search(..) in S]"
2212+
"Send the `inferior-ess-search-list-command' command.
2213+
INVERT is as in `ess-execute'. E.g. search(..) in S."
22142214
(interactive "P")
22152215
(ess-execute inferior-ess-search-list-command invert "S search list"))
22162216

@@ -2246,7 +2246,8 @@ in `ess-r-post-run-hook' or `ess-S+-post-run-hook'."
22462246
(defun ess-calculate-width (opt)
22472247
"Calculate width command given OPT.
22482248
OPT can be 'window, 'frame, or an integer. Return a command
2249-
suitable to send to the inferior process (e.g. \"options(width=80, length=999999)\")."
2249+
suitable to send to the inferior process (e.g.
2250+
\"options(width=80, length=999999)\")."
22502251
(when (null ess-execute-screen-options-command)
22512252
(error "Not implemented for %s" ess-dialect))
22522253
(let (command)
@@ -2716,7 +2717,7 @@ directory in the `load-path'."
27162717
(setq ess-object-name-db temp-object-name-db)))
27172718

27182719
(defun ess-resynch nil
2719-
"Reread all directories/objects in variable `ess-search-list' to form completions."
2720+
"Reread all directories and objects in `ess-search-list' for completions."
27202721
(interactive)
27212722
(if (ess-make-buffer-current) nil
27222723
(error "Not an ESS process buffer"))

lisp/ess-julia.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ See `comint-input-sender'."
118118

119119
;;; COMPLETION
120120
(defun ess-julia-latexsub-completion ()
121-
"Complete latex input, and return format required by `completion-at-point-functions'."
121+
"Complete latex input in format required by `completion-at-point-functions'."
122122
(if (julia-latexsub) ; julia-latexsub returns nil if it performed a completion, the point otherwise
123123
nil
124124
(lambda () t) ;; bypass other completion methods
125125
))
126126

127127
(defun ess-julia-object-completion ()
128-
"Return completions at point in a format required by `completion-at-point-functions'."
128+
"Return completions in format required by `completion-at-point-functions'."
129129
(let ((proc (ess-get-next-available-process ess-dialect t))
130130
(beg (ess-symbol-start)))
131131
(if proc

lisp/ess-r-completion.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ to look up any doc strings."
145145
;;;*;;; OBJECTS
146146

147147
(defun ess-r-object-completion ()
148-
"Return completions at point in a format required by `completion-at-point-functions'."
148+
"Return completions at point as required in `completion-at-point-functions'."
149149
(if (ess-make-buffer-current)
150150
(let* ((funstart (cdr (ess--fn-name-start)))
151151
(completions (ess-r-get-rcompletions funstart))

lisp/ess-r-mode.el

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,8 @@ Returns either Name, a string, or a (Name . Path) cons, such as
839839
(\"R-2.12.1-64bit\" . \"C:/Program Files/R/R-2.12.1/bin/x64/Rterm.exe\")
840840
841841
\"R-x.y.z/bin/Rterm.exe\" will return \"R-x.y.z\", for R-2.11.x and older.
842-
\"R-x.y.z/bin/i386/Rterm.exe\" will return \"R-x.y.z-32bit\", for R-2.12.x and newer.
843-
\"R-x.y.z/bin/x64/Rterm.exe\" will return \"R-x.y.z-64bit\", for R-2.12.x and newer."
842+
\"R-x.y.z/bin/i386/Rterm.exe\" return \"R-x.y.z-32bit\", for R-2.12.x and newer.
843+
\"R-x.y.z/bin/x64/Rterm.exe\" return \"R-x.y.z-64bit\", for R-2.12.x and newer."
844844
(let* ((dir (directory-file-name (file-name-directory long-path)))
845845
(dir2 (directory-file-name (file-name-directory dir)))
846846
(v-1up (file-name-nondirectory dir));; one level up
@@ -896,7 +896,8 @@ as `ess-r-created-runners' upon ESS initialization."
896896

897897
(defun ess-r-redefine-runners (&optional verbose)
898898
"Regenerate runners, i.e. `M-x R-*` possibilities.
899-
Call `fmakunbound' on all elements of `ess-r-created-runners', then define new runners."
899+
Call `fmakunbound' on all elements of `ess-r-created-runners',
900+
then define new runners."
900901
(interactive "P")
901902
(dolist (f ess-r-created-runners)
902903
(fmakunbound (intern f)))
@@ -2112,14 +2113,12 @@ Returns nil if line starts inside a string, t if in a comment."
21122113
;; Unroll arguments to a single line until closing marker is found.
21132114
(defun ess-fill--unroll-lines (bounds &optional jump-cont)
21142115
(let* ((last-pos (point-min))
2115-
(containing-sexp (ess-containing-sexp-position))
2116-
prefix-break)
2116+
(containing-sexp (ess-containing-sexp-position)))
21172117
(goto-char (car bounds))
21182118
(goto-char (ess-code-end-position))
21192119
(while (and (/= (point) last-pos)
21202120
(< (line-end-position)
2121-
(cadr bounds))
2122-
(not prefix-break))
2121+
(cadr bounds)))
21232122
(setq last-pos (point))
21242123
;; Check whether we ended up in a sub call. In this case, jump
21252124
;; over it, otherwise, join lines.
@@ -2415,8 +2414,8 @@ state.")
24152414
(setq comint-get-old-input #'inferior-ess-get-old-input)
24162415
(add-hook 'comint-input-filter-functions 'ess-search-path-tracker nil 'local))
24172416

2418-
24192417

2418+
24202419
;;;*;;; R Help mode
24212420

24222421
(defvar ess-r-help-mode-map

lisp/ess-r-package.el

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,13 @@ is searched from that directory instead of `default-directory'."
104104
(when (car pkg-info)
105105
(cons 'ess-r-package (plist-get pkg-info :root)))))
106106

107-
(cl-defmethod project-roots ((project (head ess-r-package)))
108-
"Return the project root for ESS R packages"
109-
(list (cdr project)))
107+
108+
;; FIXME: remove when emacs 27 is dropped
109+
(unless (eval-when-compile
110+
(get 'project-roots 'byte-obsolete-info))
111+
(cl-defmethod project-roots ((project (head ess-r-package)))
112+
"Return the project root for ESS R packages"
113+
(list (cdr project))))
110114

111115
(cl-defmethod project-root ((project (head ess-r-package)))
112116
"Return the project root for ESS R packages"

lisp/ess-r-xref.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ srcrefs point to temporary locations."
8787
(read (current-buffer)))))))
8888

8989
(defun ess-r-xref--pkg-srcfile (symbol src-file &optional default-pkg)
90-
"Look in the source directory of the R package containing symbol SYMBOL for SRC-FILE.
90+
"Search the R package containing symbol SYMBOL for file SRC-FILE.
9191
DEFAULT-PKG is the name of the package where presumably SYMBOL is located."
9292
(let* ((pkgs (delq nil
9393
(delete-dups

lisp/ess-s-lang.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ Optional argument VERBOSE gives more verbose output."
262262

263263
(defun ess-fix-dot (before-chars &optional dont-query verbose)
264264
"Remove trailing decimal '.' (\"dot\"), before BEFORE-CHARS.
265-
Optional argument DONT-QUERY and VERBOSE get passed to `ess-replace-regexp-dump-to-src'."
265+
Optional argument DONT-QUERY and VERBOSE get passed to
266+
`ess-replace-regexp-dump-to-src'."
266267
;; typically, before-chars = "]:" or more
267268
(ess-replace-regexp-dump-to-src
268269
(concat "\\([0-9]\\)\\.\\( *[" before-chars "]\\)")

lisp/ess-sas-d.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,9 @@ Better logic needed! (see 2 uses, in this file).")
256256

257257
;; rmh Jul 10 2003
258258
(defun ess-electric-run-semicolon (arg)
259-
"Insert character. If the line contains \"run;\" or \"quit;\" and nothing else then indent line."
259+
"Insert character.
260+
If the line contains \"run;\" or \"quit;\" and nothing else then
261+
indent line."
260262
(interactive "P")
261263
(if ess-sas-edit-keys-toggle (insert ";") (let (insertpos)
262264
(if (and (not arg)

lisp/ess-tracebug.el

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,8 @@ The action list is in `ess-debug-error-action-alist'."
949949
(move-marker ess--dbg-current-debug-position (point-at-bol)))
950950

951951
(defun ess--dbg-deactivate-overlays ()
952-
"Deletes markers and overlays. Overlay arrow remains to indicate the last debug position."
952+
"Delete debugger markers and overlays.
953+
Overlay arrow remains to indicate the last debug position."
953954
(delete-overlay ess--dbg-current-debug-overlay)
954955
(set-marker ess--dbg-current-debug-position nil))
955956

@@ -1533,7 +1534,7 @@ the output into *ess.dbg* buffer."
15331534
:keymap ess-debug-minor-mode-map)
15341535

15351536
(defun ess--dbg-goto-last-ref-and-mark (dbuff &optional other-window)
1536-
"Open the most recent debug reference, and set all the necessary marks and overlays.
1537+
"Open the most recent debug reference and set the necessary marks and overlays.
15371538
It's called from `inferior-ess-tracebug-output-filter'. DBUFF
15381539
must be the *ess.dbg* buffer associated with the process. If
15391540
OTHER-WINDOW is non nil, attempt to open the location in a
@@ -2467,8 +2468,10 @@ string giving the actual R expression."
24672468
wal)))
24682469

24692470
(defun ess-watch--parse-assoc (al)
2470-
"Return a string of the form 'assign(\".ess_watch_expressions\", list(a = parse(expr_a), b= parse(expr_b)), envir = .GlobalEnv)'
2471-
ready to be send to R process. AL is an association list as return by `ess-watch--make-alist'"
2471+
"Return a string command ready to be passed to R process.
2472+
The command is of the form 'assign(\".ess_watch_expressions\",
2473+
list(a = parse(expr_a), b= parse(expr_b)), envir = .GlobalEnv)'.
2474+
AL is an association list as return by `ess-watch--make-alist'"
24722475
(concat ".ess_watch_assign_expressions(list("
24732476
(mapconcat (lambda (el)
24742477
(if (> (length (cadr el) ) 0)
@@ -2574,7 +2577,7 @@ Optional N if supplied gives the number of backward steps."
25742577
(ess-watch-refresh-buffer-visibly (current-buffer))))
25752578

25762579
(defun ess-watch-add ()
2577-
"Ask for new R expression and name and append it to the end of the list of watch expressions."
2580+
"Ask for new R expression and append to the current list of watch expressions."
25782581
(interactive)
25792582
(let (nr expr name)
25802583
(goto-char (point-max))

0 commit comments

Comments
 (0)