Mercurial > emacs
comparison etc/NEWS @ 27385:f7b7fdb0f3f4
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 21 Jan 2000 03:42:21 +0000 |
parents | 622e861dce48 |
children | d0a7127b33e5 |
comparison
equal
deleted
inserted
replaced
27384:a10a13dd0670 | 27385:f7b7fdb0f3f4 |
---|---|
909 so I will know I still need to look at it -- rms. | 909 so I will know I still need to look at it -- rms. |
910 | 910 |
911 ** The function `clear-this-command-keys' now also clears the vector | 911 ** The function `clear-this-command-keys' now also clears the vector |
912 returned by function `recent-keys'. | 912 returned by function `recent-keys'. |
913 | 913 |
914 ** New function `keyword-p' is an efficient type predicate for keyword | 914 +++ |
915 symbols. | 915 ** Variables `beginning-of-defun-function' and `end-of-defun-function' |
916 | 916 can be used to define handlers for the functions that find defuns. |
917 ** Variables `beginning-of-defun' and `end-of-defun', can be used to | 917 Major modes can define these locally instead of rebinding M-C-a |
918 define handlers for the functions of the same names. Major modes can | 918 etc. if the normal conventions for defuns are not appropriate for the |
919 define these locally instead of rebinding M-C-a etc. if the normal | 919 mode. |
920 definitions of the functions are not appropriate for the mode. | 920 |
921 | 921 +++ |
922 ** easy-mmode-define-minor-mode now takes an additional BODY argument | 922 ** easy-mmode-define-minor-mode now takes an additional BODY argument |
923 and is renamed `define-minor-mode'. | 923 and is renamed `define-minor-mode'. |
924 | 924 |
925 ** If an abbrev has only a hook, and that hook has a non-nil | 925 +++ |
926 `no-self-insert' property, the return value of the hook specifies | 926 ** If an abbrev has a hook function which is a symbol, and that symbol |
927 whether an expansion has been done or not. If it returns nil, no | 927 has a non-nil `no-self-insert' property, the return value of the hook |
928 expansion has been performed. The character leading to the call of | 928 function specifies whether an expansion has been done or not. If it |
929 the hook will then be self-inserted. | 929 returns nil, abbrev-expand also returns nil, meaning "no expansion has |
930 | 930 been performed." |
931 | |
932 When abbrev expansion is done by typing a self-inserting character, | |
933 and the abbrev has a hook with the `no-self-insert' property, and the | |
934 hook function returns non-nil meaning expansion has been done, | |
935 then the self-inserting character is not inserted. | |
936 | |
937 +++ | |
931 ** The function `intern-soft' now accepts a symbol as first argument. | 938 ** The function `intern-soft' now accepts a symbol as first argument. |
932 In this case, that exact symbol is looked up in the specified obarray, | 939 In this case, that exact symbol is looked up in the specified obarray, |
933 and the function's value is nil if it is not found. | 940 and the function's value is nil if it is not found. |
934 | 941 |
942 +++ | |
935 ** The new macro `with-syntax-table' can be used to evaluate forms | 943 ** The new macro `with-syntax-table' can be used to evaluate forms |
936 with the syntax table of the current buffer temporarily set to a | 944 with the syntax table of the current buffer temporarily set to a |
937 specified table. | 945 specified table. |
938 | 946 |
939 (with-syntax-table TABLE &rest BODY) | 947 (with-syntax-table TABLE &rest BODY) |
941 Evaluate BODY with syntax table of current buffer set to a copy of | 949 Evaluate BODY with syntax table of current buffer set to a copy of |
942 TABLE. The current syntax table is saved, BODY is evaluated, and the | 950 TABLE. The current syntax table is saved, BODY is evaluated, and the |
943 saved table is restored, even in case of an abnormal exit. Value is | 951 saved table is restored, even in case of an abnormal exit. Value is |
944 what BODY returns. | 952 what BODY returns. |
945 | 953 |
954 +++ | |
946 ** Regular expressions now support Perl's non-greedy *? +? and ?? | 955 ** Regular expressions now support Perl's non-greedy *? +? and ?? |
947 operators. | 956 operators. |
948 | 957 |
958 +++ | |
949 ** The optional argument BUFFER of function file-local-copy has been | 959 ** The optional argument BUFFER of function file-local-copy has been |
950 removed since it wasn't used by anything. | 960 removed since it wasn't used by anything. |
951 | 961 |
962 +++ | |
952 ** The file name argument of function `file-locked-p' is now required | 963 ** The file name argument of function `file-locked-p' is now required |
953 instead of being optional. | 964 instead of being optional. |
954 | 965 |
966 +++ | |
955 ** The new built-in error `text-read-only' is signaled when trying to | 967 ** The new built-in error `text-read-only' is signaled when trying to |
956 modify read-only text. | 968 modify read-only text. |
957 | 969 |
970 +++ | |
958 ** New functions and variables for locales. | 971 ** New functions and variables for locales. |
959 | 972 |
960 The new variable `locale-coding-system' specifies how to encode and | 973 The new variable `locale-coding-system' specifies how to encode and |
961 decode strings passed to low-level message functions like strerror and | 974 decode strings passed to low-level message functions like strerror and |
962 time functions like strftime. The new variables | 975 time functions like strftime. The new variables |
969 environment variables. Normally, it is invoked during startup and need | 982 environment variables. Normally, it is invoked during startup and need |
970 not be invoked thereafter. It uses the new variables | 983 not be invoked thereafter. It uses the new variables |
971 `locale-language-names', `locale-charset-language-names', and | 984 `locale-language-names', `locale-charset-language-names', and |
972 `locale-preferred-coding-systems' to make its decisions. | 985 `locale-preferred-coding-systems' to make its decisions. |
973 | 986 |
987 +++ | |
974 ** syntax tables now understand nested comments. | 988 ** syntax tables now understand nested comments. |
975 To declare a comment syntax as allowing nesting, just add an `n' | 989 To declare a comment syntax as allowing nesting, just add an `n' |
976 modifier to either of the characters of the comment end and the comment | 990 modifier to either of the characters of the comment end and the comment |
977 start sequences. | 991 start sequences. |
978 | 992 |
993 +++ | |
979 ** The function `pixmap-spec-p' has been renamed `bitmap-spec-p' | 994 ** The function `pixmap-spec-p' has been renamed `bitmap-spec-p' |
980 because `bitmap' is more in line with the usual X terminology. | 995 because `bitmap' is more in line with the usual X terminology. |
981 | 996 |
997 +++ | |
982 ** New function `propertize' | 998 ** New function `propertize' |
983 | 999 |
984 The new function `propertize' can be used to conveniently construct | 1000 The new function `propertize' can be used to conveniently construct |
985 strings with text properties. | 1001 strings with text properties. |
986 | 1002 |
994 (propertize "foo" 'face 'bold 'read-only t) | 1010 (propertize "foo" 'face 'bold 'read-only t) |
995 | 1011 |
996 +++ | 1012 +++ |
997 ** push and pop macros. | 1013 ** push and pop macros. |
998 | 1014 |
999 A simple version of the push and pop macros of Common Lisp | 1015 Simple versions of the push and pop macros of Common Lisp |
1000 is now defined in Emacs Lisp. These macros allow only symbols | 1016 are now defined in Emacs Lisp. These macros allow only symbols |
1001 as the place that holds the list to be changed. | 1017 as the place that holds the list to be changed. |
1002 | 1018 |
1003 (push NEWELT LISTNAME) add NEWELT to the front of LISTNAME's value. | 1019 (push NEWELT LISTNAME) add NEWELT to the front of LISTNAME's value. |
1004 (pop LISTNAME) return first elt of LISTNAME, and remove it | 1020 (pop LISTNAME) return first elt of LISTNAME, and remove it |
1005 (thus altering the value of LISTNAME). | 1021 (thus altering the value of LISTNAME). |
1022 | |
1023 ** New dolist and dotimes macros. | |
1024 | |
1025 The dolist and dotimes macros of Common Lisp are now available. | |
1026 | |
1027 (dolist (VAR LIST [RESULT]) BODY...) | |
1028 Execute body once for each element of LIST, | |
1029 using the variable VAR to hold the current element. | |
1030 Then return the value of RESULT, or nil if RESULT is omitted. | |
1031 | |
1032 (dotimes (VAR COUNT [RESULT]) BODY...) | |
1033 Execute BODY with VAR bound to successive integers running from 0, | |
1034 inclusive, to COUNT, exclusive. | |
1035 Then return the value of RESULT, or nil if RESULT is omitted. | |
1006 | 1036 |
1007 +++ | 1037 +++ |
1008 ** Regular expressions now support Posix character classes such | 1038 ** Regular expressions now support Posix character classes such |
1009 as [:alpha:], [:space:] and so on. | 1039 as [:alpha:], [:space:] and so on. |
1010 | 1040 |