From f6e4e77d23d0be79be83ef41c3ea9acd5c983af2 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 25 Jul 2023 16:49:18 +0300 Subject: [PATCH] ; Minor documentation fixes * src/character.c (Fstring_width): Doc fix. * doc/emacs/trouble.texi (Understanding Bug Reporting): Fix typo (bug#64854). --- doc/emacs/trouble.texi | 2 +- src/character.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi index bccdea72b19..d2e8ac3452a 100644 --- a/doc/emacs/trouble.texi +++ b/doc/emacs/trouble.texi @@ -706,7 +706,7 @@ produced by typing those commands. for the detailed raw data. Reporting the facts is straightforward, but many people strain to posit explanations and report them instead of the facts. If the explanations are based on guesses about how -Emacs is implemented, they night not be useful; meanwhile, lacking the +Emacs is implemented, they might not be useful; meanwhile, lacking the facts, we will have no real information about the bug. If you want to actually @emph{debug} the problem, and report explanations that are more than guesses, that is useful---but please include the raw facts diff --git a/src/character.c b/src/character.c index ae153a579d6..9389e1c0098 100644 --- a/src/character.c +++ b/src/character.c @@ -470,7 +470,7 @@ used for non-Latin and other unusual characters (such as emoji) is ignored as well, as are display properties and invisible text. For these reasons, the results are not generally reliable; for accurate dimensions of text as it will be displayed, -use `window-text-pixel-size' instead. +use `string-pixel-width' or `window-text-pixel-size' instead. usage: (string-width STRING &optional FROM TO) */) (Lisp_Object str, Lisp_Object from, Lisp_Object to) { -- 2.39.2