Difference between revisions of "Troubleshooting"

From WikEmacs
Jump to: navigation, search
m (Reverted edits by 131.175.88.93 (talk) to last revision by 23.21.64.122)
(Add find-function entry)
 
(One intermediate revision by one other user 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.
  
I just got this issue but only on ESXi cluster. I chenagd 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.
+
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 =
 
= Looking at Emacs Lisp files =

Latest revision as of 05:44, 19 October 2013

Troubleshooting tips from long time Emacs users.

Find where a function is defined

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

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

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.