From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: require basic stuff from specific packages Date: Thu, 14 Jul 2016 03:35:23 +0200 Organization: Aioe.org NNTP Server Message-ID: <86poqhf1d0.fsf@student.uu.se> References: <864m8671sy.fsf@student.uu.se> <86y45glxpy.fsf@student.uu.se> <86lh16i94u.fsf@student.uu.se> <86vb09hd10.fsf@student.uu.se> <86mvllh68i.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468460439 28392 80.91.229.3 (14 Jul 2016 01:40:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 01:40:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 03:40:31 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bNVdf-000468-40 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 03:40:31 +0200 Original-Received: from localhost ([::1]:50888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNVda-00088z-O0 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 21:40:26 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!news.unit0.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: EoOtCC1fCYcttx6jjhWUlA.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:cw/HGCKeJ7xdKXvM0jv5qLIhxZk= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:218516 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110827 Archived-At: Here is another approach. First, you `require' everything - *then* you do the `apropos'. Yes, it works: `string-trim' is there! See the path to the Emacs source - set that to whatever you have on your disk. Also, '**/*' is a zsh feature not found in bash, so change that if need be (or change to zsh). This is a bit far out but one can think of it as a prototype to show the idea in action, not a tool to rely upon for everyday use ;) ;; from: http://user.it.uu.se/~embe8573/conf/emacs-init/search-regexp-in-files.el (defun files-as-list (file-regexp) (split-string (with-temp-buffer (call-process-shell-command (format "ls %s" file-regexp) nil t) ; no INFILE, temp BUFFER (buffer-substring (point-min) (point-max)) ))) ;; nowhere but here (when nil (let ((all-elisp-files (files-as-list (format "~/sw/**/*.el")))) (dolist (f all-elisp-files) (condition-case nil (require (intern f)) (error nil) ))) ; <- eval here ) ; now do `M-x apropos trim RET' and search for "string"! -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 57 Blogomatic articles -