Mercurial > emacs
comparison lisp/progmodes/cperl-mode.el @ 41351:d103d22e5b4f
(cperl-problems, cperl-tips, cperl-non-problems, cperl-praise): Doc fixes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 21 Nov 2001 11:15:46 +0000 |
parents | 8c4c4027c7bd |
children | 7662f312caf2 |
comparison
equal
deleted
inserted
replaced
41350:4959437122c7 | 41351:d103d22e5b4f |
---|---|
601 Subdirectory `cperl-mode' may contain yet newer development releases and/or | 601 Subdirectory `cperl-mode' may contain yet newer development releases and/or |
602 patches to related files. | 602 patches to related files. |
603 | 603 |
604 For best results apply to an older Emacs the patches from | 604 For best results apply to an older Emacs the patches from |
605 ftp://ftp.math.ohio-state.edu/pub/users/ilya/cperl-mode/patches | 605 ftp://ftp.math.ohio-state.edu/pub/users/ilya/cperl-mode/patches |
606 \(this upgrades syntax-parsing abilities of RMS Emaxen v19.34 and | 606 \(this upgrades syntax-parsing abilities of Emaxen v19.34 and |
607 v20.2 up to the level of RMS Emacs v20.3 - a must for a good Perl | 607 v20.2 up to the level of Emacs v20.3 - a must for a good Perl |
608 mode.) You will not get much from XEmacs, it's syntax abilities are | 608 mode.) |
609 too primitive. | |
610 | 609 |
611 Get support packages choose-color.el (or font-lock-extra.el before | 610 Get support packages choose-color.el (or font-lock-extra.el before |
612 19.30), imenu-go.el from the same place. \(Look for other files there | 611 19.30), imenu-go.el from the same place. \(Look for other files there |
613 too... ;-). Get a patch for imenu.el in 19.29. Note that for 19.30 and | 612 too... ;-). Get a patch for imenu.el in 19.29. Note that for 19.30 and |
614 later you should use choose-color.el *instead* of font-lock-extra.el | 613 later you should use choose-color.el *instead* of font-lock-extra.el |
660 | 659 |
661 `fill-paragraph' on a comment may leave the point behind the | 660 `fill-paragraph' on a comment may leave the point behind the |
662 paragraph. Parsing of lines with several <<EOF is not implemented | 661 paragraph. Parsing of lines with several <<EOF is not implemented |
663 yet. | 662 yet. |
664 | 663 |
665 Emacs had a _very_ restricted syntax parsing engine until RMS's Emacs | 664 Emacs had a _very_ restricted syntax parsing engine until version |
666 20.1. Most problems below are corrected starting from this version of | 665 20.1. Most problems below are corrected starting from this version of |
667 Emacs, and all of them should go with RMS's version 20.3. (Or apply | 666 Emacs, and all of them should be fixed in version 20.3. (Or apply |
668 patches to Emacs 19.33/34 - see tips.) XEmacs is very backward in | 667 patches to Emacs 19.33/34 - see tips.) |
669 this respect. | |
670 | 668 |
671 Note that even with newer Emacsen in some very rare cases the details | 669 Note that even with newer Emacsen in some very rare cases the details |
672 of interaction of `font-lock' and syntaxification may be not cleaned | 670 of interaction of `font-lock' and syntaxification may be not cleaned |
673 up yet. You may get slightly different colors basing on the order of | 671 up yet. You may get slightly different colors basing on the order of |
674 fontification and syntaxification. Say, the initial faces is correct, | 672 fontification and syntaxification. Say, the initial faces is correct, |
693 | 691 |
694 Similar problems arise in regexps, when /(\\s|$)/ should be rewritten | 692 Similar problems arise in regexps, when /(\\s|$)/ should be rewritten |
695 as /($|\\s)/. Note that such a transposition is not always possible. | 693 as /($|\\s)/. Note that such a transposition is not always possible. |
696 | 694 |
697 The solution is to upgrade your Emacs or patch an older one. Note | 695 The solution is to upgrade your Emacs or patch an older one. Note |
698 that RMS's 20.2 has some bugs related to `syntax-table' text | 696 that Emacs 20.2 has some bugs related to `syntax-table' text |
699 properties. Patches are available on the main CPerl download site, | 697 properties. Patches are available on the main CPerl download site, |
700 and on CPAN. | 698 and on CPAN. |
701 | 699 |
702 If these bugs cannot be fixed on your machine (say, you have an inferior | 700 If these bugs cannot be fixed on your machine (say, you have an inferior |
703 environment and cannot recompile), you may still disable all the fancy stuff | 701 environment and cannot recompile), you may still disable all the fancy stuff |
704 via `cperl-use-syntax-table-text-property'." ) | 702 via `cperl-use-syntax-table-text-property'." ) |
705 | 703 |
706 (defvar cperl-non-problems 'please-ignore-this-line | 704 (defvar cperl-non-problems 'please-ignore-this-line |
707 "As you know from `problems' section, Perl syntax is too hard for CPerl on | 705 "As you know from `problems' section, Perl syntax is too hard for CPerl on |
708 older Emacsen. Here is what you can do if you cannot upgrade, or if | 706 older Emacsen. Here is what you can do if you cannot upgrade, or if |
709 you want to switch off these capabilities on RMS Emacs 20.2 (+patches) or 20.3 | 707 you want to switch off these capabilities on Emacs 20.2 (+patches) or 20.3 |
710 or better. Please skip this docs if you run a capable Emacs already. | 708 or better. Please skip this docs if you run a capable Emacs already. |
711 | 709 |
712 Most of the time, if you write your own code, you may find an equivalent | 710 Most of the time, if you write your own code, you may find an equivalent |
713 \(and almost as readable) expression (what is discussed below is usually | 711 \(and almost as readable) expression (what is discussed below is usually |
714 not relevant on newer Emacsen, since they can do it automatically). | 712 not relevant on newer Emacsen, since they can do it automatically). |
759 A lot of things on XEmacs may be broken too, judging by bug reports I | 757 A lot of things on XEmacs may be broken too, judging by bug reports I |
760 receive. Note that some releases of XEmacs are better than the others | 758 receive. Note that some releases of XEmacs are better than the others |
761 as far as bugs reports I see are concerned.") | 759 as far as bugs reports I see are concerned.") |
762 | 760 |
763 (defvar cperl-praise 'please-ignore-this-line | 761 (defvar cperl-praise 'please-ignore-this-line |
764 "RMS asked me to list good things about CPerl. Here they go: | 762 "Advantages of CPerl mode. |
765 | 763 |
766 0) It uses the newest `syntax-table' property ;-); | 764 0) It uses the newest `syntax-table' property ;-); |
767 | 765 |
768 1) It does 99% of Perl syntax correct (as opposed to 80-90% in Perl | 766 1) It does 99% of Perl syntax correct (as opposed to 80-90% in Perl |
769 mode - but the latter number may have improved too in last years) even | 767 mode - but the latter number may have improved too in last years) even |