aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStefan Monnier2026-03-09 10:34:05 -0400
committerStefan Monnier2026-03-09 10:34:05 -0400
commit0487d68ab9992be4fa70cfd908909001f71e66af (patch)
tree8c93da3b94717d184f88277e277de949ecb2fb9c /lisp/progmodes
parent798dceb467d4ead092979822f24090c8378f8320 (diff)
downloademacs-scratch/error-API.tar.gz
emacs-scratch/error-API.zip
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/ebrowse.el26
-rw-r--r--lisp/progmodes/eglot.el2
-rw-r--r--lisp/progmodes/js.el2
-rw-r--r--lisp/progmodes/octave.el2
4 files changed, 8 insertions, 24 deletions
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el
index 2d0ab0fdeaf..466b76d2bb3 100644
--- a/lisp/progmodes/ebrowse.el
+++ b/lisp/progmodes/ebrowse.el
@@ -1936,10 +1936,10 @@ COLLAPSE non-nil means collapse the branch."
1936Don't let it move into the title lines. 1936Don't let it move into the title lines.
1937See `Electric-command-loop' for a description of STATE and CONDITION." 1937See `Electric-command-loop' for a description of STATE and CONDITION."
1938 (cond ((and condition 1938 (cond ((and condition
1939 (not (memq (car condition) 1939 (not (or (error-has-type-p condition 'buffer-read-only)
1940 '(buffer-read-only end-of-buffer 1940 (error-has-type-p condition 'end-of-buffer)
1941 beginning-of-buffer)))) 1941 (error-has-type-p condition 'beginning-of-buffer))))
1942 (signal (car condition) (cdr condition))) 1942 (signal condition))
1943 ((< (point) (car state)) 1943 ((< (point) (car state))
1944 (goto-char (point-min)) 1944 (goto-char (point-min))
1945 (forward-line 2)) 1945 (forward-line 2))
@@ -3879,23 +3879,7 @@ Runs the hook `ebrowse-electric-position-mode-hook'."
3879 (kill-buffer buffer))) 3879 (kill-buffer buffer)))
3880 3880
3881 3881
3882(defun ebrowse-electric-position-looper (state condition) 3882(defalias 'ebrowse-electric-position-looper #'ebrowse-electric-list-looper)
3883 "Prevent moving point on invalid lines.
3884Called from `Electric-command-loop'. See there for the meaning
3885of STATE and CONDITION."
3886 (cond ((and condition
3887 (not (memq (car condition) '(buffer-read-only
3888 end-of-buffer
3889 beginning-of-buffer))))
3890 (signal (car condition) (cdr condition)))
3891 ((< (point) (car state))
3892 (goto-char (point-min))
3893 (forward-line 2))
3894 ((> (point) (cdr state))
3895 (goto-char (point-max))
3896 (forward-line -1)
3897 (if (pos-visible-in-window-p (point-max))
3898 (recenter -1)))))
3899 3883
3900 3884
3901(defun ebrowse-electric-position-undefined () 3885(defun ebrowse-electric-position-undefined ()
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index a4f076a6197..b0de857c4d2 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -2874,7 +2874,7 @@ THINGS are either registrations or unregisterations (sic)."
2874 (if (cdr oops) (format " (%s)" (cdr oops)) ""))))) 2874 (if (cdr oops) (format " (%s)" (cdr oops)) "")))))
2875 (t 2875 (t
2876 ;; resignal (unfortunately like this) 2876 ;; resignal (unfortunately like this)
2877 (signal (car oops) (cdr oops))))) 2877 (signal oops))))
2878 2878
2879(cl-defmethod eglot-handle-request 2879(cl-defmethod eglot-handle-request
2880 (server (_method (eql workspace/workspaceFolders))) 2880 (server (_method (eql workspace/workspaceFolders)))
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 44c54a60757..a5e1d8ac023 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -849,7 +849,7 @@ macro as normal text."
849 (search-failed 849 (search-failed
850 (goto-char saved-point) 850 (goto-char saved-point)
851 (unless noerror 851 (unless noerror
852 (signal (car err) (cdr err))))))) 852 (signal err))))))
853 853
854 854
855(defun js--re-search-backward-inner (regexp &optional bound count) 855(defun js--re-search-backward-inner (regexp &optional bound count)
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index d5e1dc39790..18800e29aa5 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -995,7 +995,7 @@ directory and makes this the current buffer's default directory."
995 (progn 995 (progn
996 (cd (car inferior-octave-output-list)) 996 (cd (car inferior-octave-output-list))
997 t) 997 t)
998 (error (unless noerror (signal (car err) (cdr err)))))) 998 (error (unless noerror (signal err)))))
999 999
1000(defcustom inferior-octave-minimal-columns 80 1000(defcustom inferior-octave-minimal-columns 80
1001 "The minimal column width for the inferior Octave process." 1001 "The minimal column width for the inferior Octave process."