Mercurial > emacs
comparison etc/NEWS @ 31858:269d69b69fe4
Update hideshow.el section.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Sat, 23 Sep 2000 02:46:19 +0000 |
parents | 7c50babd3f4f |
children | 9bb38b47a241 |
comparison
equal
deleted
inserted
replaced
31857:0ab2663baf76 | 31858:269d69b69fe4 |
---|---|
45 (setq nnmail-use-procmail t) | 45 (setq nnmail-use-procmail t) |
46 (setq nnmail-spool-file 'procmail) | 46 (setq nnmail-spool-file 'procmail) |
47 (setq nnmail-procmail-directory "~/mail/incoming/") | 47 (setq nnmail-procmail-directory "~/mail/incoming/") |
48 (setq nnmail-procmail-suffix "\\.in") | 48 (setq nnmail-procmail-suffix "\\.in") |
49 | 49 |
50 this now has changed to | 50 this now has changed to |
51 | 51 |
52 (setq mail-sources | 52 (setq mail-sources |
53 '((directory :path "~/mail/incoming/" | 53 '((directory :path "~/mail/incoming/" |
54 :suffix ".in"))) | 54 :suffix ".in"))) |
55 | 55 |
347 | 347 |
348 There is now support for Imenu to index headings. A new command | 348 There is now support for Imenu to index headings. A new command |
349 `outline-headers-as-kill' copies the visible headings in the region to | 349 `outline-headers-as-kill' copies the visible headings in the region to |
350 the kill ring, e.g. to produce a table of contents. | 350 the kill ring, e.g. to produce a table of contents. |
351 | 351 |
352 ** Changes to Emacs Server | 352 ** Changes to Emacs Server |
353 | 353 |
354 +++ | 354 +++ |
355 *** The new option `server-kill-new-buffers' specifies what to do | 355 *** The new option `server-kill-new-buffers' specifies what to do |
356 with buffers when done with them. If non-nil, the default, buffers | 356 with buffers when done with them. If non-nil, the default, buffers |
357 are killed, unless they were already present before visiting them with | 357 are killed, unless they were already present before visiting them with |
695 ** The command `Info-search' now uses a search history. | 695 ** The command `Info-search' now uses a search history. |
696 | 696 |
697 ** Changes to hideshow.el | 697 ** Changes to hideshow.el |
698 | 698 |
699 Hideshow is now at version 5.x. It uses a new algorithms for block | 699 Hideshow is now at version 5.x. It uses a new algorithms for block |
700 selection and traversal and includes more isearch support. | 700 selection and traversal, includes more isearch support, and has more |
701 conventional keybindings. | |
701 | 702 |
702 *** Generalized block selection and traversal | 703 *** Generalized block selection and traversal |
703 | 704 |
704 A block is now recognized by three things: its start and end regexps | 705 A block is now recognized by three things: its start and end regexps |
705 (both strings), and a match-data selector (an integer) specifying | 706 (both strings), and a match-data selector (an integer) specifying |
725 something like this in your .emacs. | 726 something like this in your .emacs. |
726 | 727 |
727 (add-hook 'hs-minor-mode-hook | 728 (add-hook 'hs-minor-mode-hook |
728 (lambda () | 729 (lambda () |
729 (add-to-list 'mode-line-format 'hs-headline))) | 730 (add-to-list 'mode-line-format 'hs-headline))) |
731 | |
732 *** New customization var: `hs-hide-all-non-comment-function' | |
733 | |
734 Normally, `hs-hide-all' hides everything, leaving only the | |
735 header lines of top-level forms (and comments, unless var | |
736 `hs-hide-comments-when-hiding-all' is non-nil). It does this by | |
737 moving point to each top-level block beginning and hiding the | |
738 block there. In some major modes (for example, Java), this | |
739 behavior results in few blocks left visible, which may not be so | |
740 useful. | |
741 | |
742 You can now set var `hs-hide-all-non-comment-function' to a | |
743 function to be called at each top-level block beginning, instead | |
744 of the normal block-hiding function. For example, the following | |
745 code defines a function to hide one level down and move point | |
746 appropriately, and then tells hideshow to use the new function. | |
747 | |
748 (defun ttn-hs-hide-level-1 () | |
749 (hs-hide-level 1) | |
750 (forward-sexp 1)) | |
751 (setq hs-hide-all-non-comment-function 'ttn-hs-hide-level-1) | |
752 | |
753 The name `hs-hide-all-non-comment-function' was chosen to | |
754 emphasize that this function is not called for comment blocks, | |
755 only for code blocks. | |
756 | |
757 *** Command deleted: `hs-show-region' | |
758 | |
759 Historical Note: This command was added to handle "unbalanced | |
760 parentheses" emergencies back when hideshow.el used selective | |
761 display for implementation. | |
762 | |
763 *** Commands rebound to more conventional keys | |
764 | |
765 The hideshow commands used to be bound to keys of the form "C-c | |
766 LETTER". This is contrary to the Emacs keybinding convention, | |
767 which reserves that space for user modification. Here are the | |
768 new bindings (which includes the addition of `hs-toggle-hiding'): | |
769 | |
770 hs-hide-block C-c C-h | |
771 hs-show-block C-c C-s | |
772 hs-hide-all C-c C-M-h | |
773 hs-show-all C-c C-M-s | |
774 hs-hide-level C-c C-l | |
775 hs-toggle-hiding C-c C-c | |
776 hs-mouse-toggle-hiding [(shift button-2)] | |
777 | |
778 These were chosen to roughly imitate those used by Outline mode. | |
730 | 779 |
731 ** Changes to Change Log mode and Add-Log functions | 780 ** Changes to Change Log mode and Add-Log functions |
732 | 781 |
733 +++ | 782 +++ |
734 *** If you invoke `add-change-log-entry' from a backup file, it makes | 783 *** If you invoke `add-change-log-entry' from a backup file, it makes |
1332 *** General Changes | 1381 *** General Changes |
1333 | 1382 |
1334 The variable `vc-checkout-carefully' is obsolete: the corresponding | 1383 The variable `vc-checkout-carefully' is obsolete: the corresponding |
1335 checks are always done now. | 1384 checks are always done now. |
1336 | 1385 |
1337 VC Dired buffers are now kept up-to-date during all version control | 1386 VC Dired buffers are now kept up-to-date during all version control |
1338 operations. | 1387 operations. |
1339 | 1388 |
1340 *** Changes for CVS | 1389 *** Changes for CVS |
1341 | 1390 |
1342 There is a new user option, `vc-cvs-stay-local'. If it is `t' (the | 1391 There is a new user option, `vc-cvs-stay-local'. If it is `t' (the |
3116 The resulting pixel is computed from the color intensity of the color | 3165 The resulting pixel is computed from the color intensity of the color |
3117 resulting from summing up the RGB values of surrounding pixels, | 3166 resulting from summing up the RGB values of surrounding pixels, |
3118 multiplied by the specified factors, and dividing that sum by the sum | 3167 multiplied by the specified factors, and dividing that sum by the sum |
3119 of the factors' absolute values. | 3168 of the factors' absolute values. |
3120 | 3169 |
3121 Laplace edge-detection currently uses a matrix of | 3170 Laplace edge-detection currently uses a matrix of |
3122 | 3171 |
3123 (1 0 0 | 3172 (1 0 0 |
3124 0 0 0 | 3173 0 0 0 |
3125 9 9 -1) | 3174 9 9 -1) |
3126 | 3175 |