I have leazrned a lot in xemacs and emacs by looking at the elisp source code. what would be really helpful to me (but I lack the knowledge so far to write myself) is an entry on the help menu that would search all the elisp source code for some text and give me a list of lines showing the name of the source code file, line number and a link to it, So I can study the examples and any documentation that is often in the source code. Maybe search just .el files or maybe search .el files and C source files.
I could have used this when looking for examples of defface and could use this now as I am currently trying to understand defining a menu item to set a menu item to toggle a major mode. code follows, evaluates, but doesn't fully work any ideas on making a help function like I am describing?
[menu-bar cnc-menu switch-to-gcode-mode]
'(menu-item "Start gcode-mode" enable-gcode-mode
:button (:toggle .
(if (bound-and-true-p gcode-mode)
(setq major-mode fundamental-mode)
:help "Toggle Gcode Mode"))
You are busy, but if something is glaringly wrong in this code, I'd be grateful for help with the commandp wrontg argument type or any assistance with the source code search that would help me search out ansers myself.