From f41a594bf35e9403852f042b5c716f1cba188734 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 15 Jan 2026 11:12:07 +0000 Subject: [PATCH] ; Improve docs for last change. --- etc/NEWS | 9 +++++---- lisp/ielm.el | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index fd73f26033e..17a6a6c68b0 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2061,11 +2061,12 @@ saved to the file specified by 'ielm-history-file-name', just like when you exit the Emacs session or kill the IELM buffer. --- -*** New value 'point' for user option 'ielm-dynamic-return' +*** New value 'point' for user option 'ielm-dynamic-return'. When 'ielm-dynamic-return' is set to 'point', typing RET has dynamic -behavior based on if point is inside an sexp. While the point is inside -an sexp typing RET inserts a newline, otherwise the sexp is evaluated. -This is useful when the mode 'electric-pair-mode' is enabled. +behavior based on whether point is inside an sexp. While point is +inside an sexp typing RET inserts a newline, and otherwise Emacs +proceeds with evaluating the expression. This is useful when +'electric-pair-mode', or a similar automatic pairing mode, is enabled. ** DocView diff --git a/lisp/ielm.el b/lisp/ielm.el index 09a92f3f74a..67d01e8217b 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el @@ -102,7 +102,7 @@ If nil, always insert newlines. If `point', insert newline if the point is in the middle of an sexp, otherwise evaluate input. This is useful if you have -`electric-pair-mode' enabled. +`electric-pair-mode', or a similar mode, enabled. If any other non-nil value, insert newline for incomplete sexp input and evaluate input for complete sexps. This is similar to the behavior in