Kim F. Storm [Tue, 17 Feb 2004 00:29:13 +0000 (00:29 +0000)]
(in_read_avail_input): New static variable to handle re-entrancy.
(read_avail_input): Change buf to pinter to read_avail_input_buf.
Use in_read_avail_input to handle re-entrance; when re-entered,
fully initialize and use tmp_buf array instead of read_avail_input_buf.
Kim F. Storm [Mon, 16 Feb 2004 23:13:13 +0000 (23:13 +0000)]
Rework previous change; it didn't consider that the
buf array was allocated on the stack.
(prev_read): Remove variable.
(read_avail_input_buf): New static event buffer array.
(in_read_avail_input): New static variable to avoid re-entrancy.
(read_avail_input): Change buf to pinter to read_avail_input_buf.
Use in_read_avail_input to guard against re-entry.
Do not initialize read_avail_input_buf here; instead assume it
is always cleared on entry. To ensure that, we clear (just) the
entries that were used before we return.
(init_keyboard): Initialize read_avail_input_buf here.
Eli Zaretskii [Mon, 16 Feb 2004 18:06:23 +0000 (18:06 +0000)]
(vm-use-spam-filter)
(rsf-min-region-length-added-to-spam-list): New variables.
(rsf-bbdb-auto-delete-spam-bbdb-entries): Renamed from
rmail-bbdb-auto-delete-spam-entries. Added cc: to recipients for
spam testing. Don't delete spam message if automatic deletion
after output via variable rmail-delete-after-output is turned on.
(rsf-bbdb-dont-create-entries-for-deleted-messages): Renamed from
rsf-bbdb-dont-create-entries-for-spam.
(check-field): New function, extracted from code in
rmail-spam-filter to ease addition of header fields like
content-type.
(message-content-type): New variable to check the content-type:
field added, also in defcustom of rsf-definitions-alist.
(rmail-spam-filter): Replace repeated test code for header fields
by calls to check-field; change the call to
rmail-output-to-rmail-file such that rmail-current-message stays
the same to avoid wrong deletion of unseen flags.
(rsf-add-contents-type): New function to convert old format
of rmail-spam-definitions-alist into new one.
Changed prefixes of all variables and functions from
rmail-spam-filter- or spam-filter- or rmail-spam- to rsf-.
Eli Zaretskii [Mon, 16 Feb 2004 13:59:46 +0000 (13:59 +0000)]
Autorevert: Add support for VC controlled files.
(eval-when-compile): Defvar dired-directory and vc-mode.
(auto-revert-vc-cvs-file-version, auto-revert-vc-buffer-p)
(auto-revert-handler-vc): New functions.
Eli Zaretskii [Mon, 16 Feb 2004 12:53:25 +0000 (12:53 +0000)]
(compilation-directory): New defvar.
(compile): Save current directory in compilation-directory.
(recompile): Bind default-directory to compilation-directory if
that is non-nil.
Eli Zaretskii [Mon, 16 Feb 2004 12:37:21 +0000 (12:37 +0000)]
(comment-insert-comment-function, comment-region-function,
uncomment-region-function): New functions.
(comment-indent): Use comment-insert-comment-function.
(uncomment-region): Use uncomment-region-function.
(comment-region): Use comment-region-function.
Steven Tamm [Sun, 15 Feb 2004 17:16:18 +0000 (17:16 +0000)]
(Vmac_emulate_three_button_mouse): New variable for
controlling emulation of a three button mouse with option and
command keys.
(Qreverse, mac_get_enumlated_btn): Handle the emulation
(mac_event_to_emacs_modifiers, XTread_socket): Ditto
Paul Eggert [Sun, 15 Feb 2004 07:41:58 +0000 (07:41 +0000)]
Work correctly if CVSROOT specifies :fork: or
:local: methods, or omits the colon between the hostname
and the path. Allow :/ in repository path, since CVS does.
Fix typo: "pository" should be set from $CVSROOT, not $repository.
This fixes a bug reported by Wolfgang Scherer in
<http://mail.gnu.org/archive/html/bug-gnu-emacs/2004-02/msg00085.html>,
along with some related bugs I discovered by inspecting how
CVS itself parses $CVSROOT.
Jonathan Yavner [Sat, 14 Feb 2004 23:56:51 +0000 (23:56 +0000)]
Delete function ses-build-load-map and distribute its functions to
defconst's for the three maps. Add menus. Use "ses--" prefixes for
buffer-local variables. Use (point-min) instead of 1, even when we know the
buffer is unnarrowed. New function ses-read-number duplicates some code
from interactive "N" spec.
Kim F. Storm [Fri, 13 Feb 2004 23:29:58 +0000 (23:29 +0000)]
(struct draw_fringe_bitmap_params): Change member
bits from char to short to facilitate wider bitmaps.
(struct redisplay_interface): Fix prototype of define_fringe_bitmap
member.
Kim F. Storm [Fri, 13 Feb 2004 23:28:52 +0000 (23:28 +0000)]
(struct fringe_bitmap): Change member bits from char to
short to facilitate 16 bits wide bitmaps. Modify all standard
bitmaps accordingly.
(BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
(FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
(draw_fringe_bitmap): Ditto.
(init_fringe_bitmap) [MAC_OS]: Don't bitswap.
(init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
handle up to 16 bits wide bitmaps.
(Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
Kim F. Storm [Fri, 13 Feb 2004 23:28:32 +0000 (23:28 +0000)]
(mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
(x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
Stefan Monnier [Wed, 11 Feb 2004 06:06:24 +0000 (06:06 +0000)]
Don't use compile any more, use diff-mode instead.
(diff-regexp-alist, diff-old-file, diff-new-file)
(diff-parse-differences, diff-process-setup): Remove.
(diff-sentinel): New fun.
(diff): Use it. Run the process ourselves.
Use diff-mode for the rest of the processing.
Stefan Monnier [Tue, 10 Feb 2004 21:37:35 +0000 (21:37 +0000)]
(diff-switches): New fun.
(diff, diff-backup): Use it.
(diff): Clean up the args construction. Use backquote.
Use listp instead of consp to avoid putting a nil arg.