comparison lisp/ChangeLog @ 502:7039e6323819

[xemacs-hg @ 2001-05-04 22:41:46 by ben] ----------------------- byte-comp warning fixes ----------------- New functions for cleanly eliminating byte-compiler warnings. Their definitions require no changes at all in bytecomp.el, meaning that any package that wants to use them and be compatible with older versions of XEmacs need only copy the code and rename the functions (i.e. prefix them with the package name). Eliminate byte-compiler warnings using the new functions in bytecomp-runtime.el. Move coding-system-put,get,category, since they're not Mule-specific and are used in prefer-coding-system. font.el was incredibly ugly. Clean it up. Avoid using defsubst for any exported functions, to avoid possible compatibility problems if we later change the internal interface. (It happened before, with face accessors, between 19.8 and 19.9). Fix tons of warnings. Clean up (new function gpm-is-supported-p eliminates duplicate code in gpm-create/delete-device-hook) and eliminate warnings. ---------- make byte-recompile-directory work in the --------- core `lisp' dir, even in the absence of a Mule XEmacs (i.e. make it skip the Mule files rather than trying to compile them). now you should be able to do `touch *.el' in the `lisp' dir, then M-x byte-recompile-directory, and get no warnings. Avoid trying to compile Mule files in byte-recompile-directory when we're not in a Mule XEmacs, since we're highly likely to get syntax errors. Add a coding-system cookie to all Mule files so that byte-recompile-directory ignores them. Magic cookie function moved to files.el from code-files.el (for use by bytecomp even in a non-coding-system XEmacs), and changed names and semantics for use by bytecomp. NOTE: IMO this is an internal function that we can change as we like (and there is absolutely no code anywhere else using the function). ---------------- GUI improvements: menus, help ------------------- Rearrange order of keymap declarations to be alphabetical. Improve help on help to include all bindings, and group by category. Add bindings for new Info commands. Remove warnings. Use command-hyper-apropos in place of command-apropos. Add a function to do the equivalent of command-apropos. Evals its help-text argument so you can put expressions there. Used now by help-for-help. Add binding to continue text searches. Expand index searches to work over multiple info documents. Add commands to search text/index in User and Lispref. Add new entry, "Uncomment Region" (parallels "Comment Out Region"). Redo Help menu; add bindings for new Info commands to search the index or text of the User and Lispref manuals. Add command for mark-paragraph, activate-region. Make Edit->R accelerator be rectangle, not register (more commonly used), and put rectangle first. Fix the Edit Init File entry to never load the .elc file. Simplify the default-popup-menu. Add Cmds->Tabs menu. Use kp-left not kp_left, etc. ---------------- Miscellaneous bug fixes/cleanup ------------------- byte-compiler-options: Correct doc string. easy-menu-do-define: fix extra quote. fill-paragraph-or-region:Rewrite to be more correct -- use call-interactively so that we always get exactly the same behavior as if the functions were called directly. No need to fiddle with zmacs-region-stays, now that bogus clearing of it (2001-04-28 src/ChangeLog) is removed. Put dialog titles back in -- this time correctly. Fix various other problems with leaks and such. key-sequence-list-description: Clean up fun to always correctly canonicalize. Clean up Kinsoku comments, synch comment-region with FSF 20.7. * simple.el (region-exists-p): * simple.el (region-active-p): Add comment about which one is correct to use in menu specs. * sound.el (load-sound-file): Minor code clean up. * startup.el: * startup.el (command-line-early): * startup.el (initial-scratch-message): Comment changes. Add info about sample.init.el to splash screen. Improve initial-scratch-message and clarify purpose of Scratch buffer. Fix byte-compile warning. ------------------------ Added features ------------------------- Add new variable to control whether etags checks all parent directories for tag files. (On by default.) * hash-table.el: New file, useful utility functions. * dumped-lisp.el (preloaded-file-list): Dump hash-table.el. ------------ notable bug fix: Windows event code -------------- Get critical quit working. ------------ notable bug fix and new feature: regex code -------------- Shy groups were implemented in a horrible, half-assed way that would cause them to screw up regex searching in most cases. Fixed to work correctly. Also extended back-reference syntax past 9. Only is recognized as such if there are at least that many non-shy groups; and optionally will warn about such uses, to catch old code that might be using them differently. (Added variable to control this in search.c -- `warn-about-possibly-incompatible-back- references', on by default for the moment. Declared in lisp.h. ---------------- process/SIGIO improvements ------------------- define USE_GETADDRINFO to replace more complex conditional, and use it. the code conditionalized on this in unix_open_network_stream had *serious* problems handling errors. it's now fixed, and major amounts of duplicate code between the two versions were combined. don't disable SIGIO and other interrupts unless CONNECT_NEEDS_SLOWED_INTERRUPTS is defined -- don't penalize OS's without bugs. similarly for a freebsd bug that was affecting all OS's. * s\ultrix.h: define CONNECT_NEEDS_SLOWED_INTERRUPTS, since that's the OS mentioned as having a kernel bug. * sysdep.c (request_sigio_on_device): * sysdep.c (unrequest_sigio_on_device): fix SIGIO problems on Linux. add check for O_ASYNC in case it's defined and FASYNC isn't. add comment about other ways to do SIGIO on Linux. * callproc.c (Fold_call_process_internal): * process.c (Fstart_process_internal): Deal with the possibility that `default-directory' doesn't have terminating slash. Correct comments about vfork. ---------------- Miscellaneous bug fixes/cleanup ------------------- * callint.c (Finteractive): Add lots of documentation -- exactly what the Lisp equivalents of all the interactive specs are. * console.h (struct console): change type of quit_char to Emchar. * event-msw.c (lstream_type_create_mswindows_selectable): spacing change. Eliminate events-mod.h and combine into events.h. * emacs.c: * emacs.c (make_arg_list_1): * emacs.c (main_1): A couple of char->Extbyte changes, add a comment. * glyphs-msw.c: Correct indentation of function defns to not exceed 80 cols. Try (sort of) to fix some code that sets the colors of the progress gauge. (Commented out) * keymap.c (syms_of_keymap): use DEFSYMBOL. * process.c (read_process_output): No need to fiddle with zmacs_region_stays, now that bogus clearing of it (see below) is removed. * search.c (Freplace_match): warning fix.
author ben
date Fri, 04 May 2001 22:42:35 +0000
parents 0a255b32b157
children 98fb34b6fbe9
comparison
equal deleted inserted replaced
501:0a255b32b157 502:7039e6323819
1 2001-04-22 Ben Wing <ben@xemacs.org>
2
3 ----------------------- byte-comp warning fixes -----------------
4
5 * bytecomp-runtime.el:
6 * bytecomp-runtime.el (with-boundp): New.
7 * bytecomp-runtime.el (if-boundp): New.
8 * bytecomp-runtime.el (declare-boundp): New.
9 * bytecomp-runtime.el (globally-declare-boundp): New.
10 * bytecomp-runtime.el (byte-compile-with-fboundp): New.
11 * bytecomp-runtime.el ('with-fboundp-1): New.
12 * bytecomp-runtime.el (with-fboundp): New.
13 * bytecomp-runtime.el (if-fboundp): New.
14 * bytecomp-runtime.el (declare-fboundp): New.
15 * bytecomp-runtime.el (globally-declare-fboundp): New.
16 * bytecomp-runtime.el (byte-compile-with-byte-compiler-warnings-suppressed): New.
17 * bytecomp-runtime.el ('with-byte-compiler-warnings-suppressed-1): New.
18 * bytecomp-runtime.el (with-byte-compiler-warnings-suppressed): New.
19 * bytecomp-runtime.el (with-obsolete-variable): New.
20 * bytecomp-runtime.el (with-obsolete-function): New.
21 New functions for cleanly eliminating byte-compiler warnings.
22 Their definitions require no changes at all in bytecomp.el,
23 meaning that any package that wants to use them and be compatible
24 with older versions of XEmacs need only copy the code and rename
25 the functions (i.e. prefix them with the package name).
26
27 * apropos.el (apropos-symbol-face):
28 * apropos.el (apropos-keybinding-face):
29 * apropos.el (apropos-label-face):
30 * apropos.el (apropos-property-face):
31 * cl-extra.el (cl-map-overlays):
32 * coding.el:
33 * coding.el (set-keyboard-coding-system):
34 * coding.el (set-terminal-coding-system):
35 * console.el (resume-pid-console):
36 * dialog-gtk.el:
37 * dialog-gtk.el (popup-builtin-open-dialog):
38 * dialog-gtk.el (popup-builtin-color-dialog):
39 * dragdrop.el (experimental-dragdrop-drop-mime-default):
40 * dragdrop.el (gtk-start-drag):
41 * dragdrop.el (gtk-start-drag-region):
42 * faces.el (init-face-from-resources):
43 * faces.el (init-device-faces):
44 * faces.el (init-frame-faces):
45 * faces.el (init-global-faces):
46 * faces.el (set-face-stipple):
47 * files.el (set-visited-file-name):
48 * files.el (basic-save-buffer):
49 * files.el (save-some-buffers-1):
50 * files.el (file-remote-p):
51 * fill.el (fill-move-forward-to-break-point):
52 * fill.el (find-space-insertable-point):
53 * font-lock.el:
54 * frame.el (suspend-or-iconify-emacs):
55 * frame.el (suspend-emacs-or-iconify-frame):
56 * gdk.el:
57 * generic-widgets.el:
58 * generic-widgets.el (build-ui::radio-group):
59 * generic-widgets.el (build-ui::button):
60 * glade.el:
61 * gnome-widgets.el:
62 * gnome.el:
63 * gtk-extra.el:
64 * gtk-faces.el (gtk-choose-font):
65 * gtk-file-dialog.el:
66 * gtk-file-dialog.el (gtk-file-dialog-fill-file-list):
67 * gtk-file-dialog.el (gtk-file-dialog-fill-directory-list):
68 * gtk-file-dialog.el (gtk-file-dialog-new):
69 * gtk-font-menu.el:
70 * gtk-font-menu.el (gtk-reset-device-font-menus):
71 * gtk-init.el:
72 * gtk-init.el (gtk-initialize-compose):
73 * gtk-package.el:
74 * gtk-password-dialog.el:
75 * gtk-widget-accessors.el:
76 * gtk-widgets.el:
77 * gtk.el:
78 * isearch-mode.el (isearch-help-or-delete-char):
79 * ldap.el:
80 * lib-complete.el (read-library-internal):
81 * lib-complete.el (read-library):
82 * lib-complete.el (read-library-name):
83 * lisp-mnt.el (lm-report-bug):
84 * minibuf.el (minibuffer-smart-mouse-tracker):
85 * minibuf.el (minibuffer-smart-select-kludge-filename):
86 * minibuf.el (read-file-name-internal-1):
87 * minibuf.el (read-color-completion-table):
88 * modeline.el (modeline-toggle-read-only):
89 * mouse.el (mouse-consolidated-yank):
90 * mouse.el (default-mouse-track-maybe-own-selection):
91 * msw-font-menu.el (mswindows-reset-device-font-menus):
92 * multicast.el (open-multicast-group):
93 * mwheel.el:
94 * package-get.el (package-get-update-base-from-buffer):
95 * scrollbar.el (init-scrollbar-from-resources):
96 * symbols.el:
97 * syntax.el (describe-syntax-table):
98 * toolbar.el (init-toolbar-from-resources):
99 * toolbar-items.el (toolbar):
100 * toolbar-items.el (toolbar-paste):
101 * tty-init.el (init-pre-tty-win):
102 * tty-init.el (init-post-tty-win):
103 * wid-browse.el (widget-browse-sexp):
104 * widgets-gtk.el:
105 * x-faces.el:
106 * x-font-menu.el:
107 * x-font-menu.el (x-font-menu-font-data):
108 * x-init.el:
109 * x-misc.el:
110 * x-mouse.el:
111 * x-scrollbar.el:
112 * x-select.el:
113 * x-win-sun.el:
114 * x-win-xfree86.el:
115 Eliminate byte-compiler warnings using the new functions in
116 bytecomp-runtime.el.
117
118 * coding.el (coding-system-get): New.
119 * coding.el (coding-system-put): New.
120 * coding.el (coding-system-category): New.
121 * mule\mule-misc.el (coding-system-get): Removed.
122 * mule\mule-misc.el (coding-system-put): Removed.
123 * mule\mule-misc.el (coding-system-category): Removed.
124 Move these functions, since they're not Mule-specific and
125 are used in prefer-coding-system.
126
127 * font.el:
128 * font.el (cl):
129 * font.el (set-font-family):
130 * font.el (set-font-weight):
131 * font.el (set-font-style):
132 * font.el (set-font-size):
133 * font.el (set-font-registry):
134 * font.el (set-font-encoding):
135 * font.el (font-family):
136 * font.el (font-weight):
137 * font.el (font-style):
138 * font.el (font-size):
139 * font.el (font-registry):
140 * font.el (font-encoding):
141 * font.el (set-font-style-by-keywords):
142 * font.el (font-properties-from-style):
143 * font.el (font-combine-fonts-internal):
144 * font.el (font-x-font-regexp):
145 * font.el (x-font-create-object):
146 * font.el (x-font-create-name):
147 * font.el (ns-font-create-name):
148 * font.el (mswindows-font-create-name):
149 * font.el (font-update-device-fonts):
150 * font.el (font-update-one-face):
151 * font.el (font-rgb-color-p):
152 * font.el (font-rgb-color-red):
153 * font.el (font-tty-compute-color-delta):
154 * font.el (font-normalize-color):
155 This file was incredibly ugly. Clean it up. Avoid using defsubst
156 for any exported functions, to avoid possible compatibility
157 problems if we later change the internal interface. (It happened
158 before, with face accessors, between 19.8 and 19.9). Fix tons
159 of warnings.
160
161 * gpm.el:
162 * gpm.el (gpm-is-supported-p): New.
163 * gpm.el (gpm-delete-device-hook):
164 Clean up (new function gpm-is-supported-p eliminates duplicate
165 code in gpm-create/delete-device-hook) and eliminate warnings.
166
167 ---------- make byte-recompile-directory work in the ---------
168 core `lisp' dir, even in the absence of
169 a Mule XEmacs (i.e. make it skip the Mule
170 files rather than trying to compile them).
171 now you should be able to do `touch *.el'
172 in the `lisp' dir, then
173 M-x byte-recompile-directory, and get no
174 warnings.
175
176 * bytecomp.el:
177 * bytecomp.el (byte-recompile-ignore-uncompilable-mule-files): New.
178 * bytecomp.el (byte-compile-inbuffer):
179 * bytecomp.el (byte-compile-inbuffer)): New.
180 * bytecomp.el (byte-compile-outbuffer)): New.
181 * bytecomp.el (byte-compile-warn):
182 * bytecomp.el (byte-recompile-directory):
183 * bytecomp.el (byte-recompile-file):
184 Avoid trying to compile Mule files in byte-recompile-directory
185 when we're not in a Mule XEmacs, since we're highly likely to get
186 syntax errors.
187
188 * mule\arabic.el:
189 * mule\canna-leim.el:
190 * mule\english.el:
191 * mule\greek.el:
192 * mule\kinsoku.el:
193 * mule\latin.el:
194 * mule\misc-lang.el:
195 * mule\mule-category.el:
196 * mule\mule-ccl.el:
197 * mule\mule-charset.el:
198 * mule\mule-cmds.el:
199 * mule\mule-coding.el:
200 * mule\mule-help.el:
201 * mule\mule-init.el:
202 * mule\mule-misc.el:
203 * mule\mule-tty-init.el:
204 * mule\mule-x-init.el:
205 * mule\thai-xtis-chars.el:
206 * mule\viet-chars.el:
207 Add a coding-system cookie to all Mule files so that
208 byte-recompile-directory ignores them.
209
210 * code-files.el (load):
211 * code-files.el (find-coding-system-magic-cookie): Removed.
212 * files.el:
213 * files.el (find-coding-system-magic-cookie-in-file): New.
214 Magic cookie function moved to files.el from code-files.el (for
215 use by bytecomp even in a non-coding-system XEmacs), and changed
216 names and semantics for use by bytecomp. NOTE: IMO this is an
217 internal function that we can change as we like (and there is
218 absolutely no code anywhere else using the function).
219
220 ---------------- GUI improvements: menus, help -------------------
221
222 * help.el:
223 * help.el (help-map): Removed.
224 * help.el (help-for-help):
225 * help.el (Help-princ-face):
226 * help.el (Help-prin1-face):
227 * help.el (describe-function-1):
228 * help.el (describe-variable):
229 Rearrange order of keymap declarations to be alphabetical.
230 Improve help on help to include all bindings, and group by
231 category. Add bindings for new Info commands. Remove
232 warnings. Use command-hyper-apropos in place of command-apropos.
233
234 * hyper-apropos.el:
235 * hyper-apropos.el (hyper-apropos-programming-apropos):
236 * hyper-apropos.el (command-hyper-apropos): New.
237 Add a function to do the equivalent of command-apropos.
238
239 * help-macro.el (make-help-screen):
240 Evals its help-text argument so you can put expressions there.
241 Used now by help-for-help.
242
243 * info.el:
244 * info.el (Info-search):
245 * info.el (Info-search-next): New.
246 * info.el (Info-index): Removed.
247 * info.el (Info-find-index-alternatives): New.
248 * info.el (Info-read-search-text-regexp): New.
249 * info.el (Info-search-text-in-lispref): New.
250 * info.el (Info-search-text-in-xemacs): New.
251 * info.el (Info-search-index-in-lispref): New.
252 * info.el (Info-search-index-in-xemacs-and-lispref): New.
253 * info.el (Info-mode-map):
254 Add binding to continue text searches. Expand index searches to
255 work over multiple info documents. Add commands to search
256 text/index in User and Lispref.
257
258 * lisp-mode.el (construct-lisp-mode-menu):
259 Add new entry, "Uncomment Region" (parallels "Comment Out Region").
260
261 * menubar-items.el (default-menubar):
262 * menubar-items.el (default-popup-menu):
263 Redo Help menu; add bindings for new Info commands to search the
264 index or text of the User and Lispref manuals. Add command for
265 mark-paragraph, activate-region. Make Edit->R accelerator be
266 rectangle, not register (more commonly used), and put rectangle
267 first. Fix the Edit Init File entry to never load the .elc file.
268 Simplify the default-popup-menu. Add Cmds->Tabs menu.
269
270 * menubar.el (popup-buffer-menu): Doc fix.
271 * menubar.el ((boundp 'menu-accelerator-map)):
272 Use kp-left not kp_left, etc.
273
274 ---------------- Miscellaneous bug fixes/cleanup -------------------
275
276 * bytecomp-runtime.el (byte-compiler-options):
277 Correct doc string.
278
279 * easymenu.el (easy-menu-do-define): fix extra quote.
280
281 * fill.el (fill-paragraph-or-region):
282 Rewrite to be more correct -- use call-interactively so that
283 we always get exactly the same behavior as if the functions
284 were called directly.
285
286 * font-lock.el (font-lock-fontify-pending-extents):
287 * gutter-items.el (clear-progress-feedback):
288 * gutter-items.el (abort-progress-feedback):
289 * gutter-items.el (raw-append-progress-feedback):
290 * simple.el (clear-message):
291 * simple.el (raw-append-message):
292 No need to fiddle with zmacs-region-stays, now that bogus
293 clearing of it (2001-04-28 src/ChangeLog) is removed.
294
295 * dialog.el (make-dialog-box):
296 Put dialog titles back in -- this time correctly. Fix various
297 other problems with leaks and such.
298
299 * keymap.el (key-sequence-list-description):
300 Clean up fun to always correctly canonicalize.
301
302 * simple.el:
303 * simple.el (delete-forward-p):
304 * simple.el (comment-padding): New.
305 * simple.el (comment-region):
306 * simple.el (do-auto-fill):
307 * simple.el (indent-new-comment-line):
308 Clean up Kinsoku comments, synch comment-region with FSF 20.7.
309
310 * simple.el (region-exists-p):
311 * simple.el (region-active-p):
312 Add comment about which one is correct to use in menu specs.
313
314 * sound.el (load-sound-file):
315 Minor code clean up.
316
317 * startup.el:
318 * startup.el (command-line-early):
319 * startup.el (initial-scratch-message):
320 Comment changes. Add info about sample.init.el to splash screen.
321 Improve initial-scratch-message and clarify purpose of Scratch
322 buffer. Fix byte-compile warning.
323
324 ------------------------ Added features -------------------------
325
326 * etags.el:
327 * etags.el (tags-check-parent-directories-for-tag-files): New.
328 * etags.el (buffer-tag-table-list):
329 Add new variable to control whether etags checks all parent
330 directories for tag files. (On by default.)
331
332 * hash-table.el: New file, useful utility functions.
333 * dumped-lisp.el (preloaded-file-list): Dump hash-table.el.
334
1 2001-05-03 Adrian Aichner <adrian@xemacs.org> 335 2001-05-03 Adrian Aichner <adrian@xemacs.org>
2 336
3 * build-report.el: Remove CVS keywords since this file has been in 337 * build-report.el: Remove CVS keywords since this file has been in
4 core lisp for a while now. 338 core lisp for a while now.
5 * build-report.el (build-report-make-output-files): Fix typo. 339 * build-report.el (build-report-make-output-files): Fix typo.