Kim F. Storm [Tue, 20 Apr 2004 22:19:09 +0000 (22:19 +0000)]
(Qslice): New variable.
(syms_of_xdisp): Intern and staticpro it.
(pos_visible_p): Return pixel position in new x and y args.
(init_iterator): Reset it->slice info.
(handle_display_prop): Parse (slice ...) property.
(push_it, pop_it): Save/restore slice info.
(make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
force repositioning of tall row if window is vscrolled, as that
would reset vscroll.
(append_space): Set it->constrain_row_ascent_descent_p to avoid
increasing row height if row is non-empty.
(fill_image_glyph_string): Copy slice info.
(take_vertical_position_into_account): Simplify.
(produce_image_glyph): Handle iterator slice info, setup glyph
slice info. Do not force minimum line height.
(x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
do not increase height (ascent/descent) of non-empty row when
adding normal character glyph; instead reduce glyph ascent/descent
appropriately; if row is higher than current glyph, adjust glyph
descent/ascent to reposition glyph within the existing row.
Likewise, when char is newline, only set ascent/descent if row is
currently empty.
(note_mouse_highlight): Handle hotspots with sliced image.
Kim F. Storm [Tue, 20 Apr 2004 22:18:33 +0000 (22:18 +0000)]
(Fpos_visible_in_window_p): Return pixel position if
PARTIALLY arg is non-nil. Simplify. Doc fix.
(Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
to return/set vscroll in pixels.
Kim F. Storm [Tue, 20 Apr 2004 22:16:19 +0000 (22:16 +0000)]
(buffer_posn_from_coords): Return full image width
and height even for image slices (posn is relative to full image).
(marginal_area_string): Adjust x0,y0 for image slice.
Kim F. Storm [Tue, 20 Apr 2004 22:16:07 +0000 (22:16 +0000)]
(struct glyph_slice): New struct.
(struct glyph): New member slice.
(GLYPH_SLICE_EQUAL_P): New macro.
(GLYPH_EQUAL_P): Use it.
(struct glyph_string): New member slice.
(struct it_slice): New struct.
(struct it): New member slice, add member to stack too.
New member constrain_row_ascent_descent_p.
(image_ascent): Add prototype.
Stefan Monnier [Tue, 20 Apr 2004 20:36:43 +0000 (20:36 +0000)]
(compilation-error-properties): Split in two.
(compilation-internal-error-properties): New one.
(compilation-compat-error-properties): Use it to fix the non-marker case.
(quail-lookup-key): New optional arg
NOT-RESET-INDICES.
(quail-get-translations): Call quail-lookup-key with
NOT-RESET-INDICES t.
(quail-completion): Likewise.
(quail-lookup-map-and-concat): Likewise.
Eli Zaretskii [Mon, 19 Apr 2004 18:06:51 +0000 (18:06 +0000)]
(rmail-convert-to-babyl-format): Don't remove ^M
characters left after base64 decoding.
(rmail-decode-region): Use -dos variety of `coding', to remove any
^M characters left after qp or base64 decoding.
Juri Linkov [Sun, 18 Apr 2004 22:08:03 +0000 (22:08 +0000)]
(sentence-end) <function>: New fun with default value taken
from the variable `sentence-end'.
(sentence-end) <defcustom>: Set default to nil. Doc fix.
Add nil const to :type.
(sentence-end-without-period, sentence-end-double-space)
(sentence-end-without-space): Doc fix.
(forward-sentence): Use function `sentence-end' instead of
variable `sentence-end'.
Juri Linkov [Sun, 18 Apr 2004 15:28:19 +0000 (15:28 +0000)]
(Info-find-file, Info-find-node-2): Add history and toc.
(Info-find-node-2): Simplify error message.
(Info-insert-dir): Use Info-following-node-name.
(Info-goto-node): Remove *info-history* and *info-toc*.
(Info-history): Create a node of the virtual history file.
(Info-toc): Create a node of the virtual toc file.
(Info-insert-toc): New arg `curr-file' for reference file names.
(info-apropos): Remove redundant var binding for temp-file.
(Info-index, Info-index-next, Info-mode): Doc fix.
(Info-goto-emacs-command-node): Don't jump to *info* from
non-*info* Info buffers.
(Info-fontify-node): Don't show the file name of external
references if `Info-hide-note-references' is `hide'. Don't hide
newlines at the end of paragraphs.
Nick Roberts [Sat, 17 Apr 2004 23:14:17 +0000 (23:14 +0000)]
(gdb-goto-info): Require 'info.
(gdb-info-breakpoints-custom): Revert previous change.
(gdb-view-assembler): Update assembler if necessary.
(gdb-frame-handler): Parse correctly for gdb-current-frame.
(gdb-display-source-buffer): Update properly when both source and
assembler are visible.
John Wiegley [Sat, 17 Apr 2004 22:04:04 +0000 (22:04 +0000)]
2004-04-17 John Wiegley <johnw@newartisans.com>
* iswitchb.el (iswitchb-max-to-show): Added a new config variable
which optionally limits the number of names shown in the
minibuffer. Off by default.
(iswitchb-completions): Use `iswitchb-max-to-show'. This speeds
up iswitchb for users with a multitude of open buffers, by showing
only the first and last N/2 buffers in the completion list (which
is enough for C-s/C-r, and to know that more characters need to be
typed to refine the completion list).
(locate-file-completion): Handle nil in path-and-suffixes.
(file-truename): Expand all ~ constructs directly.
(insert-directory): Delete any error msg output by the
`insert-directory-program'.
(allout-mode-exposure-menu, allout-mode-editing-menu):
(allout-mode-navigation-menu, allout-mode-misc-menu): New defvars.
(allout-prior-bindings, allout-added-bindings): Defvars deleted.
(allout-init): Use find-file-hook, not find-file-hooks.
(allout-mode): Eliminate Emacs 18 support.
Use write-contents-functions, not local-write-file-hooks.
Stefan Monnier [Fri, 16 Apr 2004 23:22:07 +0000 (23:22 +0000)]
Doc fixes.
(compilation-error-regexp-alist-alist)
(compilation-mode-font-lock-keywords): Allow non-ASCII where possible.
(compilation-assq): Wrap in eval-when-compile.
(compilation-mode-font-lock-keywords): Don't use list*.
(compilation-start): Avoid warning.
(compilation-compat-error-properties)
(compilation-directory-properties): Add keymap property.
(compilation-parsing-end): Make it a marker for better compatibility.
Kim F. Storm [Fri, 16 Apr 2004 21:16:33 +0000 (21:16 +0000)]
(Fkey_description): Add optional PREFIX arg.
Combine prefix with KEYS to make up the full key sequence to describe.
Correlate meta_prefix_char and following (simple) key to describe
as meta modifier. All callers changed.
(describe_map): Rename arg `keys' to `prefix'. Remove local
`elt_prefix' var. Use Fkey_description with prefix instead of
elt_prefix combined with Fsingle_key_description.
(describe_vector): Declare static. Replace arg `elt_prefix' with
`prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
if !KEYMAP_P. Use Fkey_description with prefix instead of
Fsingle_key_description.