From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brady Montz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57772: icomplete-mode's docstring causes documentation function to fail Date: Tue, 13 Sep 2022 06:17:32 -0700 Message-ID: <29143475-9753-4F72-B47B-9BCF7B8C7FA1@mac.com> Reply-To: Brady Montz Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1913"; mail-complaints-to="usenet@ciao.gmane.io" To: 57772@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 16:12:39 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY6eU-0000JJ-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 16:12:38 +0200 Original-Received: from localhost ([::1]:48980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY6eT-0005dx-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 10:12:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY6c2-0002S1-Hi for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 10:10:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35357) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY6bz-0003nG-O2 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 10:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oY6bz-0003vb-IO for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 10:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Brady Montz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2022 14:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57772 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166307819015058 (code B ref -1); Tue, 13 Sep 2022 14:10:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2022 14:09:50 +0000 Original-Received: from localhost ([127.0.0.1]:52287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY6bl-0003un-Vx for submit@debbugs.gnu.org; Tue, 13 Sep 2022 10:09:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY5nL-0003f8-2n for submit@debbugs.gnu.org; Tue, 13 Sep 2022 09:17:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY5nK-0001TN-Td for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 09:17:42 -0400 Original-Received: from pv50p00im-ztdg10012101.me.com ([17.58.6.49]:45512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY5nF-0002pT-1x for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 09:17:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1663075054; bh=UIv0JVCjfhEzmWglir2hkMEp3siZC7KPFKJ5OQszviA=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=A8o4rnCRiA4Rx60CO7w+0jRF0Zzw2oI5tAfWk1Z4mOpcZWvll1ksAMpvFHSElFqb8 t4o8pOlbY96/wBK5zULNXxeSIFUGoRhXT2WfX2jtnPN5hpZbdUC/kx3Y0vARwIyJHA mA9Ohpw7grnFitsWICje+/7bOrS/nNESXFQoYtBe9JB+kFlNOTmZiY7Jjx288Z7QDp ceTnA/wTp9ZVg05seHthSMlpN+4tLDC3II/VtKWzPYSz1iqw4IRwdSLUti9/t/cw+X icZmzUr5RWjOVjrF5lkkf2q+ZTEz3q+09t/UZB+00N+o07c2RUUEoE3LzlXyfrA5AS IE0w6z4Wf7h9Q== Original-Received: from smtpclient.apple (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10012101.me.com (Postfix) with ESMTPSA id 46DC17405DB for ; Tue, 13 Sep 2022 13:17:33 +0000 (UTC) X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Proofpoint-ORIG-GUID: ocdkylHVjGuNU9vD3qsSU6MuaH6wiPWG X-Proofpoint-GUID: ocdkylHVjGuNU9vD3qsSU6MuaH6wiPWG X-Proofpoint-Virus-Version: vendor=fsecure engine=1.1.170-22c6f66c430a71ce266a39bfe25bc2903e8d5c8f:6.0.517, 18.0.572, 17.11.64.514.0000000 definitions=2022-06-21_01:2022-06-21_01, 2020-02-14_11, 2022-02-23_01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2209130060 Received-SPF: pass client-ip=17.58.6.49; envelope-from=bradymontz@mac.com; helo=pv50p00im-ztdg10012101.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 13 Sep 2022 10:09:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242379 Archived-At: Hi, I noticed that when I have icomplete-mode enabled, the describe-mode = function doesn't work in any buffer. It throws this error: describe-map-tree: Wrong number of arguments: (lambda (map) "Display = binding for MAP which must be a quoted keymap variable" (interactive = (list (intern (completing-read "Key map: " obarray 'keymap-test 1)))) = (let ((val (symbol-value map))) (or (keymapp val) (error "%s is not a = keymap !" (symbol-name map))) (let* ((old-dir default-directory) (buf = (save-current-buffer (set-buffer (get-buffer-create "*Help*")) (prog1 = (current-buffer) (kill-all-local-variables) (setq default-directory = old-dir) (setq buffer-read-only nil) (setq buffer-file-name nil) (setq = buffer-undo-list t) (let ((inhibit-read-only t) = (inhibit-modification-hooks t)) (erase-buffer) (run-hooks = 'temp-buffer-setup-hook))))) (standard-output buf)) (prog1 (progn (princ = (format "Binding for keymap %s is: " (symbol-name map))) (princ (substitute-command-keys "\\{val}")) = (print-help-return-message)) (internal-temp-output-buffer-show buf))))), = 7 I did some debugging and traced it down to the icomplete-mode docstring.=20= Repro: in scratch buffer, run: (documentation 'icomplete-mode) and I get the = same error.=20 If I remove the last line of icomplete-mode's docstring = ("\\{icomplete-minibuffer-map}"), then the documentation function = successfully returns the doc string. Finally, icomplete-minibuffer-map has the value (keymap (67108908 . = icomplete-backward-completions) (67108910 . = icomplete-forward-completions) (10 . icomplete-force-complete-and-exit) = (remap keymap (minibuffer-complete-and-exit . icomplete-ret)) (27 keymap = (9 . icomplete-force-complete))) after I=E2=80=99ve loaded it up.=20 Unfortunately, describe-mode still doesn't work, so something else has a = similar problem that I haven=E2=80=99t found yet, but likely this helps.=20= Using emacs version "GNU Emacs 28.1 (build 1, x86_64-apple-darwin18.7.0, = NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2022-05-11" built by homebrew, with the icomplete-mode that's = included in that version.=20 =E2=80=94 Brady Montz bradymontz@mac.com=