Colin Walters [Sun, 14 Apr 2002 01:50:57 +0000 (01:50 +0000)]
(ibuffer-forward-line): Just skip header if we're
only moving one line forward.
(ibuffer-map-lines): Preserve point position even if we delete
lines. Only call mapping functions with buffer and mark
arguments; the other two were unused.
(ibuffer-redisplay, ibuffer-update): Always skip special areas.
Colin Walters [Sat, 13 Apr 2002 20:26:36 +0000 (20:26 +0000)]
(gamegrid-add-score-with-update-game-score): Renamed from `gamegrid-add-score'.
(gamegrid-add-score-insecure): Restored from the old `update-game-score'.
(gamegrid-add-score): Just dispatch on `system-type' to one of the
previous two functions.
(sync_frame_with_window_matrix_rows): Don't give frame
rows marginal areas.
(Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
(syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
Stefan Monnier [Fri, 12 Apr 2002 05:50:15 +0000 (05:50 +0000)]
(command_loop_1): Turn off transient-mark-mode rather
than deactivating the mark if tmm is set to `lambda'.
(gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
Use a single event for HELP_EVENT.
(Fexecute_extended_command): Save last_point_position.
Stefan Monnier [Thu, 11 Apr 2002 23:44:06 +0000 (23:44 +0000)]
(line-move): Use memq rather than or.
(transpose-sexps): Don't presume as much of forward-sexp's behavior.
(do-auto-fill): Use fill-move-to-break-point.
(syntax-code-table): Remove.
Stefan Monnier [Thu, 11 Apr 2002 22:00:07 +0000 (22:00 +0000)]
(canonically-space-region): Obey sentence-end.
Don't add spaces at end of sentences at end of line.
(fill-move-to-break-point): Make sure the result is always greater
than linebeg, so we ensure forward progress.
(fill-region-as-paragraph): Compare to `to' rather than eobp.
(fill-paragraph): Don't rebind fill-paragraph-function.
Stefan Monnier [Wed, 10 Apr 2002 21:21:12 +0000 (21:21 +0000)]
(adaptive-fill-regexp): Add ! and %.
(fill-delete-prefix): Remove indentation while removing prefix.
(fill-delete-newlines): Obey sentence-end.
(fill-move-to-break-point, fill-newline): New functions extracted
from fill-region-as-paragraph.
(fill-region-as-paragraph): Use them.
Don't fiddle with fill-indent-according-to-mode.
Colin Walters [Wed, 10 Apr 2002 19:11:45 +0000 (19:11 +0000)]
(ibuffer-canonicalize-state-list): Delete unused function.
(ibuffer-current-buffers-with-marks): Don't call `buffer-list'
ourselves; take it as an argument. Caller updated.
(ibuffer-mode): Make mode-class special.
Colin Walters [Wed, 10 Apr 2002 19:10:23 +0000 (19:10 +0000)]
(toplevel): Include stdarg.h.
(MAX_DATA_LEN, MAX_SCORES): New.
(SCORE_FILE_PREFIX): If HAVE_SHARED_GAME_DIR is not defined,
default to ~/.emacs.d/games.
(get_user_id): Don't zero uid in the case where we can't get the
username.
(lose): New function.
(main): Actually use `max', and default it to MAX_SCORES.
Correctly handle new default for SCORE_FILE_PREFIX. Use `lose'
function.
(read_score): Handle the case of reading unamelen characters, then
finishing. Use mktemp if mkstemp isn't available.
(lock_file, unlock_file): Delete unused versions.
(lock_file): Always sleep, even if we unlinked the lock file.
Stefan Monnier [Tue, 9 Apr 2002 19:28:42 +0000 (19:28 +0000)]
(read_minibuf): Use empty_string.
(Ftry_completion): Allow lambda forms and lists of strings for `alist'.
Short-circuit the search as soon as it "failed".
(Fall_completions): Allow lambda forms and lists of strings for alist.
(Fcompleting_read): Set Qminibuffer_completion_confirm to nil
when require_match is nil.
(Ftest_completion): Rename from `test_completion' and export to elisp.
Call the predicate also when alist is a list.
Obey Vcompletion_regexp_list.
(do_completion, Fminibuffer_complete_and_exit): Use it.
(Fassoc_string): Rename from `assoc_for_completion'.
Allow list of strings as well and export to elisp.