From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#6224: 23.1; last-command docstring "multiple displays" info node link Date: Thu, 20 May 2010 10:32:45 +1000 Message-ID: <87zkzvtnte.fsf@blah.blah> References: <87pr0rv4u4.fsf@blah.blah> <87aarv778e.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274317050 7765 80.91.229.12 (20 May 2010 00:57:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 00:57:30 +0000 (UTC) Cc: 6224@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 20 02:57:29 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OEu4g-0001FS-QJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 May 2010 02:57:23 +0200 Original-Received: from localhost ([127.0.0.1]:50179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEu4g-0000aw-3f for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 May 2010 20:57:22 -0400 Original-Received: from [140.186.70.92] (port=60230 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEu4R-0000We-Ij for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 20:57:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEu4N-00048y-KU for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 20:57:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53945) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEu4N-00048u-Ic for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 20:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OEti5-0007jw-O2; Wed, 19 May 2010 20:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Ryde Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 May 2010 00:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 6224-submit@debbugs.gnu.org id=B6224.127431559229741 (code B ref 6224); Thu, 20 May 2010 00:34:01 +0000 Original-Received: (at 6224) by debbugs.gnu.org; 20 May 2010 00:33:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEthI-0007je-69 for submit@debbugs.gnu.org; Wed, 19 May 2010 20:33:12 -0400 Original-Received: from mailout2-1.pacific.net.au ([61.8.2.224] helo=mailout2.pacific.net.au) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEthE-0007jR-LG for 6224@debbugs.gnu.org; Wed, 19 May 2010 20:33:10 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id B0C0B1DB703; Thu, 20 May 2010 10:33:02 +1000 (EST) Original-Received: from blah.blah (ppp2699.dyn.pacific.net.au [61.8.38.153]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 7C5698C0C; Thu, 20 May 2010 10:33:01 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.71) (envelope-from ) id 1OEtgr-00044l-K4; Thu, 20 May 2010 10:32:45 +1000 In-Reply-To: <87aarv778e.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 20 May 2010 03:21:51 +0300") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 19 May 2010 20:34:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37068 Archived-At: Juri Linkov writes: > > BTW, do you have a command that automatically checks for broken links > in docstrings? :-) I threw down a couple of lines the other day (defun my-emacs-info-xref-docstrings (filename-list) (require 'info-xref) (require 'lisp-mnt) (require 'help-mode) (dolist (filename filename-list) (lm-with-file filename (goto-char (point-min)) (while (re-search-forward help-xref-info-regexp nil t) (let ((match (match-string 0)) (node (match-string 2))) (save-match-data ;; for the while loop (unless (string-match "\\`(" node) (setq node (concat "(emacs)" node))) (setq match (replace-regexp-in-string "\n" " " match)) (setq node (replace-regexp-in-string "\n" " " node)) (unless (or (string-match "%" node) (info-xref-goto-node-p node)) (lwarn 'emacs-info-xref-docstrings 'warning "\n %s:\n no such node: %S" filename match)))))))) to be used as say (my-emacs-info-xref-docstrings (file-expand-wildcards "/down/emacs/src/*.c")) or on your whole load-path (progn (kill-buffer (get-buffer-create "*Warnings*")) (require 'cl) (dolist (dir load-path) (let ((lst (file-expand-wildcards (concat dir "/*.elc")))) (dolist (el (file-expand-wildcards (concat dir "/*.el"))) (setq lst (remove (concat el "c") lst)) (push el lst)) (my-emacs-info-xref-docstrings lst)))) It picked up a typo in one of my own files. I'm thinking of working it up into a presentable form and adding to my info-xref.el (which is in emacs). I started with mapatoms and getting each `documentation', but a grep through the .el doesn't load up lots of strings and can be applied to packages without loading them.