comparison lisp/progmodes/cperl-mode.el @ 22392:7300e6ab99d2

(cperl-problems): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Mon, 08 Jun 1998 00:02:30 +0000
parents 680733ae3334
children cbeef33dd242
comparison
equal deleted inserted replaced
22391:680733ae3334 22392:7300e6ab99d2
453 (defvar cperl-problems 'please-ignore-this-line 453 (defvar cperl-problems 'please-ignore-this-line
454 "Some faces will not be shown on some versions of Emacs unless you 454 "Some faces will not be shown on some versions of Emacs unless you
455 install choose-color.el, available from 455 install choose-color.el, available from
456 ftp://ftp.math.ohio-state.edu/pub/users/ilya/emacs/ 456 ftp://ftp.math.ohio-state.edu/pub/users/ilya/emacs/
457 457
458 Emacs had a _very_ restricted syntax parsing engine until RMS's Emacs 458 Even with newer Emacsen interaction of `font-lock' and
459 20.1. Most problems below are corrected starting from this version of
460 Emacs, and all of them should go with (future) RMS's version 20.3.
461
462 Note that even with newer Emacsen interaction of `font-lock' and
463 syntaxification is not cleaned up. You may get slightly different 459 syntaxification is not cleaned up. You may get slightly different
464 colors basing on the order of fontification and syntaxification. This 460 colors basing on the order of fontification and syntaxification. This
465 might be corrected by setting `cperl-syntaxify-by-font-lock' to t, but 461 might be corrected by setting `cperl-syntaxify-by-font-lock' to t, but
466 the corresponding code is still extremely buggy. 462 the corresponding code is still extremely buggy.
467 463
483 to insert it as $ {aaa} (legal in perl5, not in perl4). 479 to insert it as $ {aaa} (legal in perl5, not in perl4).
484 480
485 Similar problems arise in regexps, when /(\\s|$)/ should be rewritten 481 Similar problems arise in regexps, when /(\\s|$)/ should be rewritten
486 as /($|\\s)/. Note that such a transposition is not always possible. 482 as /($|\\s)/. Note that such a transposition is not always possible.
487 483
488 The solution is to upgrade your Emacs. Note that RMS's 20.2 has some 484 The solution is to upgrade your Emacs. Note that Emacs 20.2 has some
489 bugs related to `syntax-table' text properties. Patches are available 485 bugs related to `syntax-table' text properties. Patches are available
490 on the main CPerl download site, and on CPAN. 486 on the main CPerl download site, and on CPAN.
491 487
492 If these bugs cannot be fixed on your machine (say, you have an inferior 488 If these bugs cannot be fixed on your machine (say, you have an inferior
493 environment and cannot recompile), you may still disable all the fancy stuff 489 environment and cannot recompile), you may still disable all the fancy stuff
1305 (font-lock-mode 1)))) 1301 (font-lock-mode 1))))
1306 (and (boundp 'msb-menu-cond) 1302 (and (boundp 'msb-menu-cond)
1307 (not cperl-msb-fixed) 1303 (not cperl-msb-fixed)
1308 (cperl-msb-fix)) 1304 (cperl-msb-fix))
1309 (if (featurep 'easymenu) 1305 (if (featurep 'easymenu)
1310 (easy-menu-add cperl-menu)) ; A NOP in RMS Emacs. 1306 (easy-menu-add cperl-menu)) ; A NOP in Emacs.
1311 (run-hooks 'cperl-mode-hook) 1307 (run-hooks 'cperl-mode-hook)
1312 ;; After hooks since fontification will break this 1308 ;; After hooks since fontification will break this
1313 (if cperl-pod-here-scan 1309 (if cperl-pod-here-scan
1314 (or (and (boundp 'font-lock-mode) 1310 (or (and (boundp 'font-lock-mode)
1315 (eval 'font-lock-mode) ; Avoid warning 1311 (eval 'font-lock-mode) ; Avoid warning