comparison lisp/help-fns.el @ 90200:f9a65d7ebd29

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-68 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 459-473) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 86-87) - Update from CVS
author Miles Bader <miles@gnu.org>
date Thu, 07 Jul 2005 12:43:14 +0000
parents 01137c1fdbe9 6fb026ad601f
children 187d6a1f84f7
comparison
equal deleted inserted replaced
90199:bb71c6cf2009 90200:f9a65d7ebd29
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details. 19 ;; GNU General Public License for more details.
20 20
21 ;; You should have received a copy of the GNU General Public License 21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the 22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 ;; Boston, MA 02111-1307, USA. 24 ;; Boston, MA 02110-1301, USA.
25 25
26 ;;; Commentary: 26 ;;; Commentary:
27 27
28 ;; This file contains those help commands which are complicated, and 28 ;; This file contains those help commands which are complicated, and
29 ;; which may not be used in every session. For example 29 ;; which may not be used in every session. For example
273 (let ((arg (prog1 (car args) (setq args (cdr args))))) 273 (let ((arg (prog1 (car args) (setq args (cdr args)))))
274 (setq doc (replace-regexp-in-string 274 (setq doc (replace-regexp-in-string
275 ;; This is heuristic, but covers all common cases 275 ;; This is heuristic, but covers all common cases
276 ;; except ARG1-ARG2 276 ;; except ARG1-ARG2
277 (concat "\\<" ; beginning of word 277 (concat "\\<" ; beginning of word
278 "\\(?:[a-z-]+-\\)?" ; for xxx-ARG 278 "\\(?:[a-z-]*-\\)?" ; for xxx-ARG
279 "\\(" 279 "\\("
280 arg 280 (regexp-quote arg)
281 "\\)" 281 "\\)"
282 "\\(?:es\\|s\\|th\\)?" ; for ARGth, ARGs 282 "\\(?:es\\|s\\|th\\)?" ; for ARGth, ARGs
283 "\\(?:-[a-z-]+\\)?" ; for ARG-xxx 283 "\\(?:-[a-z-]+\\)?" ; for ARG-xxx
284 "\\>") ; end of word 284 "\\>") ; end of word
285 (help-default-arg-highlight arg) 285 (help-default-arg-highlight arg)