[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: require basic stuff from specific packages

From: Emanuel Berg
Subject: Re: require basic stuff from specific packages
Date: Thu, 14 Jul 2016 03:35:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

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

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:
(defun files-as-list (file-regexp)
      (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 ....
Emacs Gnus Blogomatic .........
                   - so far: 57 Blogomatic articles -                   

reply via email to

[Prev in Thread] Current Thread [Next in Thread]