From: Eli Zaretskii Date: Thu, 17 Sep 2020 15:24:22 +0000 (+0300) Subject: Fix documentation of a recent change X-Git-Tag: emacs-28.0.90~6034 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa0859fda997962a567bba46f8388a445ed2524f;p=emacs.git Fix documentation of a recent change * src/keyboard.c (update_recent_keys): Fix commentary. (Flossage_size): Fix doc string. * etc/NEWS: Move and fix wording of the recently added entry. --- diff --git a/etc/NEWS b/etc/NEWS index 1ee86de128c..5b69e2f423b 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -85,10 +85,6 @@ useful on systems such as FreeBSD which ships only with "etc/termcap". * Changes in Emacs 28.1 -+++ -** The new command 'lossage-size' allow users to set the maximum -number of keystrokes and commands recorded. - +++ *** Emacs now defaults to UTF-8 instead of ISO-8859-1. This is only for the default, where the user has set no 'LANG' (or @@ -481,6 +477,11 @@ authentication mechanism by setting a value for the key 'smtp-auth'. +++ *** New command 'describe-keymap' describes keybindings in a keymap. ++++ +** New command 'lossage-size'. +It allows users to set the maximum number of keystrokes and commands +recorded for the purpose of 'view-lossage'. + --- *** The command 'view-lossage' can now be invoked from the menu bar. The menu-bar Help menu now has a "Show Recent Inputs" item under the diff --git a/src/keyboard.c b/src/keyboard.c index c0a41e6c4cf..d82d323f637 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -6042,7 +6042,7 @@ make_lispy_event (struct input_event *event) } #endif -#ifdef USE_FILE_NOTIFY +#ifdef USE_FILE_NO101TIFY case FILE_NOTIFY_EVENT: #ifdef HAVE_W32NOTIFY /* Make an event (file-notify (DESCRIPTOR ACTION FILE) CALLBACK). */ @@ -10414,7 +10414,8 @@ If CHECK-TIMERS is non-nil, timers that are ready to run will do so. */) ? Qt : Qnil); } -/* Reallocate recent_keys copying the keystrokes in the right order */ +/* Reallocate recent_keys copying the recorded keystrokes + in the right order. */ static void update_recent_keys (int new_size, int kept_keys) { @@ -10439,10 +10440,10 @@ update_recent_keys (int new_size, int kept_keys) DEFUN ("lossage-size", Flossage_size, Slossage_size, 0, 1, "(list (read-number \"new-size: \" (lossage-size)))", - doc: /* Return the maximum number of saved keystrokes. -Called with ARG, then set this limit to ARG and return it. + doc: /* Return or set the maximum number of keystrokes to save. +If called with a non-nil ARG, set the limit to ARG and return it. -The saved keystrokes are the records shown by `view-lossage'. */) +The saved keystrokes are shown by `view-lossage'. */) (Lisp_Object arg) { if (NILP(arg))