Kim F. Storm [Sun, 23 Nov 2003 20:56:10 +0000 (20:56 +0000)]
* progmodes/grep.el: New file with grep code from compile.el.
(grep): New defcustom group.
(grep-window-height): New defcustom, like compilation-window-height.
(grep-auto-highlight): New defcustom, like compile-auto-highlight.
(grep-scroll-output): New defcustom, like compilation-scroll-output.
(grep-command, grep-use-null-device, grep-find-command)
(grep-tree-files-aliases, grep-tree-ignore-case)
(grep-tree-ignore-CVS-directories): Move to grep custom group.
(grep-setup-hook): New hook variable.
(grep-mode-map): New keymap for grep commands. Add Grep menu.
(grep-use-compilation-buffer): New defcustom.
(grep-last-buffer): New defvar, override compilation-last-buffer.
(grep): Add optional arg HIGHLIGHT-REGEXP. Doc fix.
Call compile-internal with args highlight-regexp and grep-mode-map.
Kim F. Storm [Sun, 23 Nov 2003 00:59:23 +0000 (00:59 +0000)]
(Click Events): Describe enhancements to event
position lists, including new text-pos and (col . row) items.
Mention left-fringe and right-fringe area events.
(Accessing Events): New functions posn-area, posn-object, and
posn-actual-col-row. Mention posn-timestamp. Mention that
posn-point in non-text area still returns buffer position.
Clarify posn-col-row.
Kim F. Storm [Sun, 23 Nov 2003 00:27:27 +0000 (00:27 +0000)]
Bind mouse-1 on left-fringe and right-fringe to mouse-set-point so
that hscroll still works now that clicks on fringes generate specific
mouse events.
(mouse-set-point): Note that it now works in fringes and margins
too due to new semantics of posn-point in fringes and margins.
Kim F. Storm [Sun, 23 Nov 2003 00:27:03 +0000 (00:27 +0000)]
(event-start, event-end): Doc fix.
(posn-window, posn-x-y, posn-timestamp): Simplify doc.
(posn-area, posn-actual-col-row, posn-object): New defuns.
(posn-col-row): Simplify doc. Rewrite to use cond.
(posn-point): Also return buffer position for events outside text
area (that info is now present in the event position).
Kim F. Storm [Sun, 23 Nov 2003 00:09:39 +0000 (00:09 +0000)]
(make_lispy_position): New function for generating
mouse click positions from frame and pixel coordinates.
Enhanced to return buffer position and actual row/column for
events outside the text area using updated mode_line_string and
marginal_area_string functions.
Return left-fringe and right-fringe clicks as such, rather than
clicks in text area.
(make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
pixel_to_glyph_coords, as we never use the results.
(make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
Eliminate unused code in WHEEL_EVENT handling.
(make_lispy_movement): Use make_lispy_position.
Kim F. Storm [Sun, 23 Nov 2003 00:09:19 +0000 (00:09 +0000)]
(buffer_posn_from_coords): Return actual row/column
for glyph clicked on, rather than (unused) pixel positions.
(mode_line_string, marginal_area_string): Change X and Y args to
pointers for returning actual row/column for glyph clicked on.
Simplify and optimize loops.
Lars Hansen [Fri, 21 Nov 2003 18:27:51 +0000 (18:27 +0000)]
(Ffile_attributes): Parameter ID-FORMAT added and included in call to file
name handler. Numeric UID and GID optionally translated to strings. Docstring updated.
(directory_files_internal): Parameter ID-FORMAT added.
(Fdirectory_files_and_attributes): Parameter ID-FORMAT added and included in call to
file name handler and call to directory_files_internal. Docstring updated.
(Fdirectory_files): Dummy parameter added in call to directory_files_internal.
Kim F. Storm [Wed, 19 Nov 2003 23:40:17 +0000 (23:40 +0000)]
(gud-gdba-command-name): Find gdb command via PATH.
(breakpoint-xpm-data, breakpoint-enabled-pbm-data): Make smoother.
(breakpoint-enabled-icon, breakpoint-disabled-icon): Set :ascent
to 100 for icons to avoid increasing line height when shown.
In node defvar and asterisk, following suggestions by Juri Linkov
<juri@jurta.org>, describe using the set-variable command to set
values temporarily and to show a list of variables by using
completion.
Kim F. Storm [Tue, 18 Nov 2003 23:44:11 +0000 (23:44 +0000)]
(init_iterator): Initialize it->start to position
before reseating (in case start position is invisible).
(init_to_row_start): Set it->start to row-start.
(redisplay_window): Accept optional_new_start if start position
is invisible (in which case IT_CHARPOS overshoots PT).
(display_line): Setup row->start from it->start (rather than
it->current which is wrong if first char on line is invisible).
When done, reseat it->start to it->current (= start of next row).
(expose_area): Fix exposure of text area when first char (e.g. TAB)
is only partially visible.
Stefan Monnier [Tue, 18 Nov 2003 00:39:13 +0000 (00:39 +0000)]
(make_float, Fcons): Clear the markbit at init time.
(make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
of block_index outside of the macro call.
(Fgarbage_collect): Remove null code.
Stefan Monnier [Mon, 17 Nov 2003 23:30:28 +0000 (23:30 +0000)]
(hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
(sxhash_string, sxhash): Use INTMASK instead of VALMASK.
(maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
Stefan Monnier [Mon, 17 Nov 2003 23:29:30 +0000 (23:29 +0000)]
(VALMASK): Only define for non-union type.
(MARKBIT): Remove.
(ARRAY_MARK_FLAG): Use previous value of MARKBIT.
(XTYPE): Define unconditionally.
(XSETTYPE): Remove one more remnant.
(EQ): Define differently for the union and non-union cases.
(INTMASK): New bit mask.
(struct Lisp_Marker): Move down to prepare for upcoming patch.
(GC_EQ): Delegate to EQ.
John Wiegley [Mon, 17 Nov 2003 00:24:06 +0000 (00:24 +0000)]
(eshell-ls-file): There are times with size-width is nil and
uncomputed (when directories are created in dired, for example); in
this case, 4 is reasonable default value, although it may caused
skewed new entries (which could be avoided by returning the original
value of 8 in all cases, but 99% of the time this is a waste of
whitespace).
Kim F. Storm [Sun, 16 Nov 2003 23:44:22 +0000 (23:44 +0000)]
(start_display): Set it->first_vpos.
(try_window_id): Use first_vpos to start display in first _text_
line if no reusable lines at start of window with header line.
On behalf of Kevin Ryde <user42@zip.com.au>: Corrections
to cross references, (Interactive Options):
elisp "interactive" -> "Using Interactive".
(defvar and asterisk): Remove emacs "Edit Options" reference,
edit-options is no longer described in the emacs manual.
(Lists diagrammed): elisp "List Type" -> "Cons Cell Type".
Thien-Thi Nguyen [Fri, 14 Nov 2003 16:18:01 +0000 (16:18 +0000)]
(easy-mmode-define-navigation): Take additional
optional arg NARROWFUN. For the generated functions: Add local var
`was-narrowed-p'. Also, if NARROWFUN is specified, include frags that
arrange to check for and save narrowing state before the move and then
conditionally call NARROWFUN after the move.
Kenichi Handa [Thu, 13 Nov 2003 01:47:41 +0000 (01:47 +0000)]
(select_frame_for_redisplay): New function.
(redisplay_internal): Record also selected_frame for
unwind_redisplay. Call select_frame_for_redisplay before
redrawing each frame.
(unwind_redisplay): Argument changed to a cons.
Luc Teirlinck [Tue, 11 Nov 2003 03:58:26 +0000 (03:58 +0000)]
(Creating Markers): Specify insertion type of created markers. Add
xref to `Marker Insertion Types'. Second argument to `copy-marker' is
optional.
(Marker Insertion Types): Mention that most markers are created with
insertion type nil.
(The Mark): Correctly describe when `mark' signals an error.
(The Region): Correctly describe when `region-beginning' and
`region-end' signal an error.