diff options
| author | Juanma Barranquero | 2012-04-10 16:16:05 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2012-04-10 16:16:05 +0200 |
| commit | 2a8ce227d040e564ea6e7b4aecf1dcad5ca6e9c7 (patch) | |
| tree | a522ea953610f470909f0dff44cdf94c1dc81d71 /lisp | |
| parent | 8f33b5f8734810e2feb0036bd9b0b34f51f7bc17 (diff) | |
| download | emacs-2a8ce227d040e564ea6e7b4aecf1dcad5ca6e9c7.tar.gz emacs-2a8ce227d040e564ea6e7b4aecf1dcad5ca6e9c7.zip | |
Record and display absolute path of DLLs loaded (bug#10424).
* lisp/misc.el (list-dynamic-libraries--loaded): New function.
(list-dynamic-libraries--refresh): Use it.
* src/w32.c (w32_delayed_load): Record the full path of the library
being loaded.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/misc.el | 15 |
2 files changed, 20 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fee5e34942c..9d019be9796 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-04-10 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * misc.el: Display absolute path of loaded DLLs (bug#10424). | ||
| 4 | (list-dynamic-libraries--loaded): New function. | ||
| 5 | (list-dynamic-libraries--refresh): Use it. | ||
| 6 | |||
| 1 | 2012-04-10 Nathan Weizenbaum <nweiz@google.com> | 7 | 2012-04-10 Nathan Weizenbaum <nweiz@google.com> |
| 2 | 8 | ||
| 3 | * progmodes/python.el (python-fill-paragraph): Make | 9 | * progmodes/python.el (python-fill-paragraph): Make |
diff --git a/lisp/misc.el b/lisp/misc.el index 4706c918db3..cb52ecbd36e 100644 --- a/lisp/misc.el +++ b/lisp/misc.el | |||
| @@ -138,6 +138,19 @@ variation of `C-x M-c M-butterfly' from url `http://xkcd.com/378/'." | |||
| 138 | (defvar list-dynamic-libraries--loaded-only-p) | 138 | (defvar list-dynamic-libraries--loaded-only-p) |
| 139 | (make-variable-buffer-local 'list-dynamic-libraries--loaded-only-p) | 139 | (make-variable-buffer-local 'list-dynamic-libraries--loaded-only-p) |
| 140 | 140 | ||
| 141 | (defun list-dynamic-libraries--loaded (from) | ||
| 142 | "Compute the \"Loaded from\" column. | ||
| 143 | Internal use only." | ||
| 144 | (if from | ||
| 145 | (let ((name (car from)) | ||
| 146 | (path (or (cdr from) "<unknown>"))) | ||
| 147 | ;; This is a roundabout way to change the tooltip without | ||
| 148 | ;; having to replace the default printer function | ||
| 149 | (propertize name | ||
| 150 | 'display (propertize name | ||
| 151 | 'help-echo (concat "Loaded from: " path)))) | ||
| 152 | "")) | ||
| 153 | |||
| 141 | (defun list-dynamic-libraries--refresh () | 154 | (defun list-dynamic-libraries--refresh () |
| 142 | "Recompute the list of dynamic libraries. | 155 | "Recompute the list of dynamic libraries. |
| 143 | Internal use only." | 156 | Internal use only." |
| @@ -159,7 +172,7 @@ Internal use only." | |||
| 159 | (when (or from | 172 | (when (or from |
| 160 | (not list-dynamic-libraries--loaded-only-p)) | 173 | (not list-dynamic-libraries--loaded-only-p)) |
| 161 | (push (list id (vector (symbol-name id) | 174 | (push (list id (vector (symbol-name id) |
| 162 | (or from "") | 175 | (list-dynamic-libraries--loaded from) |
| 163 | (mapconcat 'identity (cdr lib) ", "))) | 176 | (mapconcat 'identity (cdr lib) ", "))) |
| 164 | tabulated-list-entries))))) | 177 | tabulated-list-entries))))) |
| 165 | 178 | ||