diff options
| author | Eli Zaretskii | 2025-04-19 09:11:57 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-19 09:11:57 +0300 |
| commit | 37b2c2fcdd9344f33f843d3fd5f9129babdf172f (patch) | |
| tree | 0ce817dd4f49be7fdbba15f1509d900d12a6e180 | |
| parent | f200b3c91060afe559945e8128a021d5b3aa3ee1 (diff) | |
| download | emacs-37b2c2fcdd9344f33f843d3fd5f9129babdf172f.tar.gz emacs-37b2c2fcdd9344f33f843d3fd5f9129babdf172f.zip | |
; Improve the documentation of a recent commit
* etc/NEWS:
* doc/lispref/frames.texi (Deleting Frames): Improve documentation
of 'frame-deletable-p'.
| -rw-r--r-- | doc/lispref/frames.texi | 7 | ||||
| -rw-r--r-- | etc/NEWS | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 197f4c17b46..73e6b6268d4 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -2839,8 +2839,11 @@ than deleted. | |||
| 2839 | @end deffn | 2839 | @end deffn |
| 2840 | 2840 | ||
| 2841 | The following function checks whether a frame can be safely deleted. It | 2841 | The following function checks whether a frame can be safely deleted. It |
| 2842 | is useful to avoid that a subsequent call of @code{delete-frame} throws | 2842 | is useful for avoiding the situation whereby a subsequent call of |
| 2843 | an error. | 2843 | @code{delete-frame} fails to delete its argument @var{frame} and/or |
| 2844 | signals an error. To that end, your Lisp program should call | ||
| 2845 | @code{delete-frame} only if the following function returns | ||
| 2846 | non-@code{nil}. | ||
| 2844 | 2847 | ||
| 2845 | @defun frame-deletable-p &optional frame | 2848 | @defun frame-deletable-p &optional frame |
| 2846 | This function returns non-@code{nil} if the frame specified by | 2849 | This function returns non-@code{nil} if the frame specified by |
| @@ -315,9 +315,10 @@ helps to restore window buffers across Emacs sessions. | |||
| 315 | 315 | ||
| 316 | +++ | 316 | +++ |
| 317 | *** New function 'frame-deletable-p'. | 317 | *** New function 'frame-deletable-p'. |
| 318 | Calling this function before 'delete-frame' is useful to avoid how the | 318 | If this function returns nil, the following call to 'delete-frame' might |
| 319 | latter function signals an error when its FRAME argument cannot be | 319 | fail to delete its argument FRAME or might signal an error. It is |
| 320 | deleted. | 320 | therefore advisable to use this function as part of a condition that |
| 321 | determines whether to call 'delete-frame'. | ||
| 321 | 322 | ||
| 322 | +++ | 323 | +++ |
| 323 | *** New value 'force' for user option 'frame-inhibit-implied-resize'. | 324 | *** New value 'force' for user option 'frame-inhibit-implied-resize'. |