Difference between revisions of "Troubleshooting"

From WikEmacs
Jump to: navigation, search
(Created page with "'''Troubleshooting''' tips from long time Emacs users. = Locate library file = ; {{Command|locate-library}} : Use this to debug load-path issues. Try {{Command|locate-lib...")
 
(Add find-function entry)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
'''Troubleshooting''' tips from long time Emacs users.
 
'''Troubleshooting''' tips from long time Emacs users.
 +
 +
= Find where a function is defined =
 +
 +
; {{Command|find-function}}
 +
: This command finds the source file containing the definition of the function near point.
 +
 +
; {{Command|find-function-on-key}}
 +
: This finds the source file containing the definition of the function bound to that key.
 +
 +
However, some functions are implemented in C rather than Lisp.  To find these functions, download the C source files and add the following to your init file:
 +
 +
 +
<source lang="lisp">
 +
(setq find-function-C-source-directory "/path/to/C-source-directory")
 +
</source>
 +
 
= Locate library file =
 
= Locate library file =
  
Line 5: Line 21:
 
: Use this to debug [[load-path]] issues. Try {{Command|locate-library RET org RET}} now.
 
: Use this to debug [[load-path]] issues. Try {{Command|locate-library RET org RET}} now.
  
= Debug conflicting installations =
+
I just got this issue but only on ESXi cluster. I changed the das.failuredetectiontime value on 4 cluster (1 full ESXi's and 3 full ESX's) and only the ESXi cluster didn't update the value.
; {{Command|list-load-path-shadows}}
+
 
: You are setup is hoaxed because you don't know what you are doing?
+
= Looking at Emacs Lisp files =
 +
 
 +
When installing new packages, you would want to hear some words of wisdom from the author of the library file.
 +
 
 +
; {{Command|find-library}}
 +
: Try {{Command|find-library RET mediawiki RET}} to see whether you have installed [[Mediawiki.el]]. If it works, look at the ''Commentary'' section to see the author's notes.
  
  
 
[[Category:Beginner]][[Category:Intermediate]][[Category:Troubleshoot]]
 
[[Category:Beginner]][[Category:Intermediate]][[Category:Troubleshoot]]

Latest revision as of 05:44, 19 October 2013

Troubleshooting tips from long time Emacs users.

Find where a function is defined[edit]

M-x find-function
This command finds the source file containing the definition of the function near point.
M-x find-function-on-key
This finds the source file containing the definition of the function bound to that key.

However, some functions are implemented in C rather than Lisp. To find these functions, download the C source files and add the following to your init file:


(setq find-function-C-source-directory "/path/to/C-source-directory")

Locate library file[edit]

M-x locate-library
Use this to debug load-path issues. Try M-x locate-library RET org RET now.

I just got this issue but only on ESXi cluster. I changed the das.failuredetectiontime value on 4 cluster (1 full ESXi's and 3 full ESX's) and only the ESXi cluster didn't update the value.

Looking at Emacs Lisp files[edit]

When installing new packages, you would want to hear some words of wisdom from the author of the library file.

M-x find-library
Try M-x find-library RET mediawiki RET to see whether you have installed Mediawiki.el. If it works, look at the Commentary section to see the author's notes.