Eshel Yaron writes: > reopen 71374 > quit > > Hi Philip, > > Philip Kaludercic writes: > >> I hadn't pushed the change, have done so now. Closing the report. >> Thanks for the reminder. > > I'm reopening this (hope you don't mind) to keep track of the minor > regressions I mentioned here: > > https://lists.gnu.org/archive/html/emacs-devel/2024-07/msg01202.html Thanks, and my apologies for the late reply. The issue seems to be that (thing-at-point 'sexp) returns nil if inside a s-expression looking at whitespace: (1 2 3 4 5) ^ M-: (thing-at-point 'sexp) ;=> nil One idea is to fall back on a defun at point, if no sexp is found: