From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#38736: 26.3; ellipsis in `*Messages*', doc of `format' etc. Date: Wed, 25 Dec 2019 12:54:54 -0800 (PST) Message-ID: <4a9b955a-ac97-41d9-a373-fc37b37581a4@default> References: <<<006e6244-dd0a-46a8-8c61-36744b3216de@default>>> <<<83pngcv5ha.fsf@gnu.org>>> <<32378b4e-d158-48d5-a48c-7afde59f5d32@default>> <<83d0ccuxoe.fsf@gnu.org>> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="179324"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38736-done@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 25 21:56:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ikDhS-000kV5-I6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Dec 2019 21:56:10 +0100 Original-Received: from localhost ([::1]:49146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikDhQ-0005uP-OK for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Dec 2019 15:56:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48010) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikDhL-0005t3-7Y for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 15:56:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ikDhK-0005Rq-0A for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 15:56:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48731) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ikDhJ-0005Rj-TW for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 15:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ikDhJ-0001qe-Qj for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2019 15:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Dec 2019 20:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38736 X-GNU-PR-Package: emacs Original-Received: via spool by 38736-done@debbugs.gnu.org id=D38736.15773073066942 (code D ref 38736); Wed, 25 Dec 2019 20:56:01 +0000 Original-Received: (at 38736-done) by debbugs.gnu.org; 25 Dec 2019 20:55:06 +0000 Original-Received: from localhost ([127.0.0.1]:54704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ikDgP-0001nr-N6 for submit@debbugs.gnu.org; Wed, 25 Dec 2019 15:55:06 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:32892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ikDgN-0001n5-ME for 38736-done@debbugs.gnu.org; Wed, 25 Dec 2019 15:55:04 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBPKnNRP171234; Wed, 25 Dec 2019 20:54:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=WQeOgeJKGMFwGbKl4JMZo/8bAh6Knc8H9/eBUOgwjO8=; b=aBHCkpC1cSN71wI1U+Tu6Pi7ecWOcKeXFJDivMZ8OMkDpVQtH9/qq1zyZ9p7LuxYweBq q3l7rd5K+esXEfxt8oRlgL7/Jp1fDO9pYFBpasYW2d4upKtKP0fb1THC6gi6aFn0H7c4 EwRkQTZfCfug4dWK1okllQ5imgS2pYQr9NrWS8bHvRPazMf59Xw7UP5XSjnjf04e9CqY TtZ/2IgRiMf6yPJO3c887Ivew9xto18Vm5Eiseel5RZeOj8H3BUSQGkSyhHV0nbcn9SA p1tZI1pT2ansN8fqiN8Aej2LyCyxVDXrX4civyAcZIUIo5Xr3nETnAqLKuv3uljLfjor Mg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2x1c1qyvv2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Dec 2019 20:54:57 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBPKm8A6101934; Wed, 25 Dec 2019 20:54:56 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2x37tfcwcu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Dec 2019 20:54:56 +0000 Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id xBPKstO3025427; Wed, 25 Dec 2019 20:54:56 GMT In-Reply-To: <<83d0ccuxoe.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4939.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9481 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912250182 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9481 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912250182 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173763 Archived-At: > > > How did you get the ellipsis in *Messages*? > > > > By a call (message "Result: %S" result), where > > the value of `result' is a long list. >=20 > That's not a "call", that's evaluation. Huh? It's in code, in a function body. But of course, code (source/byte-compiled) is evaluated (interpreted, executed, whatever term you prefer). Executing that code means evaluating that sexp, yes. And? It's not clear what hairs you are trying to split, here. > And using %S is a prerequisite, AFAIK; you won't > get the ellipsis with other formats. Correct, which is why I said (message "%S"), and not just calling `message'. > Like I said: eval's doc string documents this > feature, I see nothing in the doc string of `eval' that tells you `%S' in the `message' format string is controlled by `print-length'. Or even anything close to it. eval is a built-in function in 'C source code'. (eval FORM &optional LEXICAL) Evaluate FORM and return its value. If LEXICAL is t, evaluate using lexical scoping. LEXICAL can also be an actual lexical environment, in the form of an alist mapping symbols to their value. Pointing to `eval' here seems like a very red herring. > you just looked for the documentation in the > wrong place `C-h f eval' is the right place? How so? How does it help? > (and still found it, albeit through a long path). Exactly what I reported. A long road to get to info about a commonly used construct. (Or do you still maintain that %S is rarely used with `message'?) And note that if you try to find it in the Elisp manual, starting with `message' (node `Displaying Messages') and linking to node `Formatting Strings', then what you find for %S is this: '%S' Replace the specification with the printed representation of the object, made with quoting (that is, using 'prin1'-*note Output Functions::). Thus, strings are enclosed in '"' characters, and '\' characters appear where necessary before special characters. Then you need to follow the `Output Functions' link to read about `prin1'. Again, several links to follow. Even in `Formatting Strings' it would make sense to not give the impression that `prin1' is only about "quoting". "quoting (that is, using `prin1'" `prin1's use of variables `print-length' etc. have nothing to do with "quoting". > So I see nothing to be done here, and I'm > closing this bug report. Too bad, once again.