2007-03-10 Kim F. Storm <storm@cua.dk>
* xdisp.c (redisplay_window): Don't automatically select a new window
- start for a contination line during mouse-click.
+ start for a continuation line during mouse-click.
2007-03-09 Jan Djärv <jan.h.d@swipnet.se>
* Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
- * keymap.c: include "window.h".
+ * keymap.c: Include "window.h".
(Fcommand_remapping): New optional POSITION argument.
(Fkey_binding): New optional POSITION argument. Completely rework
handling of mouse clicks to get the same order of keymaps as
2006-07-04 Kim F. Storm <storm@cua.dk>
- * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
+ * xterm.c (x_delete_display): Don't free or dereference NULL pointers.
2006-07-04 Kenichi Handa <handa@m17n.org>
2006-07-02 Kim F. Storm <storm@cua.dk>
* xdisp.c (display_tool_bar_line): Skip glyphs which are too big
- to ever fit the tool-bar,
+ to ever fit the tool-bar.
(MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
(tool_bar_lines_needed): Use unused mode-line row as temp_row.
(redisplay_tool_bar): Only clear desired matrix if we actually
2006-06-16 Kim F. Storm <storm@cua.dk>
* dispextern.h (struct it): Add union to iterator stack to save
- image, composition, and stretch specific paramters.
+ image, composition, and stretch specific parameters.
* xdisp.c (next_overlay_string): Fix assert.
(push_it, pop_it): Handle composition and stretch specific values.
Only handle it->slice in image (for now).
(back_to_previous_visible_line_start): Continue search if newline is
- part of a compisition. Simplify.
+ part of a composition. Simplify.
(reseat_1): Set it->object to buffer.
(set_iterator_to_next): Set it->object to string or buffer, when
setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
* image.c: Include "charset.h" and "coding.h".
(x_find_image_file): Return an encoded file name.
-2006-04-01 Eli Zaretskii <eliz@gnu.org>
-
- * configure: Regenerated.
-
2006-03-31 Kenichi Handa <handa@m17n.org>
* xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
* frame.h (struct frame): New member n_tool_bar_rows.
- * xdisp.c: Minimize the unpleasent visual impact of the requirement
+ * xdisp.c: Minimize the unpleasant visual impact of the requirement
that non-toolkit tool-bars must occupy an integral number of screen
lines, by distributing the rows evenly over the tool-bar screen area.
(Vtool_bar_border): New variable.
2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
- * keyboard.h: extern last_point_position_window.
+ * keyboard.h: Extern last_point_position_window.
- * undo.c: include keyboard.h.
+ * undo.c: Include keyboard.h.
* Makefile.in (undo.o): Depend on keyboard.h.
(XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
New macros.
(struct MacFontStruct): Add member `bounds'. Remove member
- `per_char'. All uses for QuichDraw Text fonts are changed to
+ `per_char'. All uses for QuickDraw Text fonts are changed to
`bounds.per_char'. ATSUI font bounds are represented as an array
`bounds.rows' of XCharStructRow's, each of which consists of a
bitmap of valid entries and an array of char bounds.
(parse_single_submenu, digest_single_submenu): New functions.
(single_submenu): Function deleted, replaced by those two.
(install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
- or dispose of EventHandlerUPP. Install hander to all submenus.
+ or dispose of EventHandlerUPP. Install handler to all submenus.
(mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
instead of ENCODE_SYSTEM.
(free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
2005-07-19 Juanma Barranquero <lekktu@gmail.com>
- * eval.c (Fprog2, Fcalled_interactively_p),
+ * eval.c (Fprog2, Fcalled_interactively_p)
(syms_of_eval) <debug-on-quit>: Doc fixes.
(syms_of_eval) <max-specpdl-size>:
(Finteractive_p): Fix typos in docstrings.
* xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
(syms_of_xdisp) <void-text-area-pointer>: Doc fix.
- * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
+ * fileio.c (Frename_file) [!DOS_NT]: Don't call chown on MSDOS/Windows.
2005-06-23 Richard M. Stallman <rms@gnu.org>
* xdisp.c (Qno_break_space): New variable.
(syms_of_xdisp): Initialize it.
- (get_next_display_element): Add no-break space and soft hypen
+ (get_next_display_element): Add no-break space and soft hyphen
codes for iso8859-2 and iso8859-5. Don't add `\' for them.
Use `no-break-space' face for no-break spaces.
routines also on Mac OS Classic.
(init_font_name_table) [!TARGET_API_MAC_CARBON]:
Use add_font_name_table_entry.
- (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
+ (mac_do_list_fonts): Regard 0 in XLFD scalable fields as
specified. Derive unspecified scalable fields from specified one.
(x_list_fonts): Consider Valternate_fontname_alist.
(kDefaultFontSize): Change value from 9 to 12.
(fast_string_match_ignore_case): Likewise.
(search_buffer): Fix checking of boyer-moore usability.
(boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
- No need of tranlating characters in PAT. Fix calculation of
+ No need of translating characters in PAT. Fix calculation of
simple_translate.
2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
zero before clearing area.
* xselect.c (x_reply_selection_request): Pass long array to
- XChangeProperty so that 64 bit longs are handeled correctly.
+ XChangeProperty so that 64 bit longs are handled correctly.
(x_get_window_property): If format is 32 and long is bigger than 32
bits convert data from XGetWindowProperty from long array to int array.
(lisp_data_to_selection_data): When the input is a vector and the
2005-02-07 Kim F. Storm <storm@cua.dk>
- * undo.c (Fprimitive_undo): Record max one dummmy apply element.
+ * undo.c (Fprimitive_undo): Record max one dummy apply element.
2005-02-06 Richard M. Stallman <rms@gnu.org>
* xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
to return number of partially invisible pixels at top and bottom
- of the dislay row at POS.
+ of the display row at POS.
* lisp.h (pos_visible_p): Fix prototype.
2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* macterm.c (endif, x_font_name_to_mac_font_name):
- Use maccentraleurroman instead of maccentraleuropean
+ Use maccentraleurroman instead of maccentraleuropean.
(mac_c_string_match, mac_do_list_fonts): Speed up font search by
quickly finding a specific font without needing regexps.
of the window by redisplay.
* xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
- (move_it_vertically_backward): Don't recure to move further back.
+ (move_it_vertically_backward): Don't recurse to move further back.
(move_it_vertically): Remove superfluous condition.
(move_it_by_lines): Clear last_height when moved 0 lines.
(resize_mini_window): Use it.max_extra_line_spacing.
(fontset_pattern_regexp): Change the meaning of the second arg.
(Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
(check_fontset_name): Try NAME as literal at first, and if it
- failes, try NAME as pattern.
+ fails, try NAME as pattern.
2004-11-07 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.h (xg_frame_cleared): Remove.
- * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
+ * xterm.c (x_clear_frame): Remove call to xg_frame_cleared.
(x_scroll_bar_create, XTset_vertical_scroll_bar):
Remove arguments left and width to xg_update_scrollbar_pos.
(XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
* macterm.c (mac_check_for_quit_char): Remove warning for using
NULL where 0 should be used.
* unexmacosx.c: Use malloc/malloc.h on Tiger instead of
- objc/malloc.h
+ objc/malloc.h.
* mac.c: Include time.h for Tiger compatibility.
2004-10-07 Kim F. Storm <storm@cua.dk>
(mac_get_window_bounds): New function.
(x_calc_absolute_position): Use the difference of width and height
between the inner and outer window.
- (x_set_offset): Specify window position by the coordinae of the
+ (x_set_offset): Specify window position by the coordinate of the
outer window. Adjust the position if the title bar is completely
outside the screen.
(app_is_suspended, app_sleep_time): Remove unused variables.
(x_draw_vertical_border): Do not draw line if frame has scroll bars.
* window.c (coordinates_in_window): Relax check for cursor
- on vertial border between mode lines.
+ on vertical border between mode lines.
(Fset_window_fringes): Do not allow negative widths.
(Fset_window_scroll_bars): Likewise.
* Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
blockinput.h.
(dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
- charset.h, and coding.h
+ charset.h, and coding.h.
(w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
(term.o): Depend on window.h and keymap.h.
(abbrev.o): Depend on syntax.h.
Use SetWindowTitleWithCFString.
(Fx_server_version): Get correct OS version.
- * macmenu.c (add_menu_item): Remove unused variable `i'.
- Don't let separator items destroy refence constants of other menu items.
+ * macmenu.c (add_menu_item): Remove unused variable `i'. Don't let
+ separator items destroy reference constants of other menu items.
* macterm.c (x_update_end): Move SetPortWindowPort to inside
BLOCK_INPUT.
* macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
strings in menu items.
- (single_submenu): Use ENCODE_MENU_STRING
+ (single_submenu): Use ENCODE_MENU_STRING.
(mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
- button release isn't passed to event loop
+ button release isn't passed to event loop.
(add_menu_item): Use SetMenuItemWithCFString.
2004-08-26 Steven Tamm <steventamm@mac.com>
ccl->eof_ic on EOF.
(ccl_debug_hook): New function.
(struct ccl_prog_stack): New member eof_ic.
- (ccl_driver): Handle EOF in subrountine call correctly.
+ (ccl_driver): Handle EOF in subroutine call correctly.
2004-06-11 Kenichi Handa <handa@m17n.org>
* alloc.c: Undo Kim's recent changes and fix the same bug differently.
(marker_blocks_pending_free): Remove.
(Fgarbage_collect): Sweep after cleaning up undo-lists.
- Mark the undo lists after claning them up.
+ Mark the undo lists after cleaning them up.
Don't free block in marker_blocks_pending_free.
(mark_buffer): Don't mark undo_list.
(gc_sweep): Sweep hash-tables and strings first.
the removed cons cells.
(mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
(gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
- any cons cells pointing to unallocated stings.
+ any cons cells pointing to unallocated strings.
Do not lisp_free any marker blocks, as there may still be pointers
to them from buffer undo lists at this stage of GC.
(syms_of_xfns): Move image related symbols to image.c.
(init_xfns): Remove; initialization moved to init_image in image.c.
- * lisp.h (syms_of_image, init_image): Add protoypes.
+ * lisp.h (syms_of_image, init_image): Add prototypes.
(init_xfns): Remove prototype.
* dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2004-03-09 Kenichi Handa <handa@etlken2>
- * coding.c (decode_coding_emacs_mule): Handle insufficent source
+ * coding.c (decode_coding_emacs_mule): Handle insufficient source
correctly.
2004-03-04 Richard M. Stallman <rms@gnu.org>
2004-03-02 Kenichi Handa <handa@m17n.org>
- * doc.c (Fsubstitute_command_keys): Fix counding bytes.
+ * doc.c (Fsubstitute_command_keys): Fix counting bytes.
2004-03-02 Kim F. Storm <storm@cua.dk>
(Fxw_display_color_p): Use dpyinfo->color_p.
(Fx_display_grayscale_p, Fx_display_planes): Don't use
dpyinfo->n_cbits.
- (Fx_display_color_cells): Use dpyinfo->n_planes;
+ (Fx_display_color_cells): Use dpyinfo->n_planes.
(QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
(Qheuristic, cross_disabled_images, emboss_matrix)
(laplace_matrix): New variables (from xfns.c).
(prev_read): Remove variable.
(read_avail_input_buf): New static event buffer array.
(in_read_avail_input): New static variable to handle re-entrancy.
- (read_avail_input): Change buf to pinter to read_avail_input_buf.
+ (read_avail_input): Change buf to pointer 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.
Do not initialize read_avail_input_buf in full here; instead assume it
instead of related indicator fields.
Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
(direct_output_for_insert): Handle exact width lines like
- contined lines. Call update_window_fringes.
+ continued lines. Call update_window_fringes.
(update_window): Call update_window_fringes.
(scrolling_window): Don't skip desired rows with changed bitmaps.
Check if fringe bitmaps changes when assigning scrolled rows.
(append_glyph, append_composite_glyph, produce_image_glyph)
(append_stretch_glyph): Set glyph's ascent and descent.
(on_hot_spot_p): New function to check if position is inside an
- rectangular, circular, or polygon-shaped image hot-spot,
+ rectangular, circular, or polygon-shaped image hot-spot.
(find_hot_spot): New function to search for image hot-spot.
(Flookup_image_map): New defun to search for image hot-spot.
(define_frame_cursor1): New aux function to determine frame
(append_stretch_glyph): Change ascent arg to be actual value
in pixels rather than ratio to height. Callers changed.
(calc_pixel_width_or_height): New aux function, implementing
- pixel based artihmetic for glyph widths and heights.
+ pixel based arithmetic for glyph widths and heights.
(produce_stretch_glyph): Use calc_pixel_width_or_height for
:width, :height, :align-to, and :ascent, thus allowing these to
be specified in pixels as well as multiples of characters.
2003-09-01 Jason Rumney <jasonr@gnu.org>
* makefile.w32-in (alloca.o): Remove.
- (coding.o): Depend on intervals.h
+ (coding.o): Depend on intervals.h.
(emacs.o, bytecode.o): Depend on window.h.
2003-09-01 Dave Love <fx@gnu.org>
* xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
- * Makefile.in (xsmfns.o): Add more depenedencies.
+ * Makefile.in (xsmfns.o): Add more dependencies.
2003-08-21 Dave Love <fx@gnu.org>
win_gravity, size_hint_flags, border_width, internal_border_width,
line_height, fringe_cols, left_fringe_width, right_fringe_width,
want_fullscreen. All uses changed.
- (struct frame): New member column_width contaning the canonical
+ (struct frame): New member column_width containing the canonical
column width, analogue to line_height. All uses changed.
(struct frame): Rename members scroll_bar_pixel_width to
config_scroll_bar_width, and scroll_bar_cols to
and vertical_scroll_bar_type.
(coordinates_in_window): Adapt to new fringe/margin positions
and per-window fringes and scroll-bars.
- Fix bug related to incorrectly adjusting coordinates by
- frame's internal_border_width (the effect normally negible since
+ Fix bug related to incorrectly adjusting coordinates by frame's
+ internal_border_width (the effect normally negligible since
the internal_border_width is typically 0 or 1 pixel, but very
noticeable for an internal_border_width of e.g. 25 pixels).
Upon successful return (other than ON_NOTHING), the coordinates
change/simplify relevant callers.
(x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
and new fringe vs. display margin position.
- Use window_box_left_offset and window_box_right_offset
+ Use window_box_left_offset and window_box_right_offset.
(get_glyph_string_clip_rect): Adapt to per-window fringes and
scroll bars, and new fringe vs. display margin position.
Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
* coding.c (coding_system_accept_latin_extra_p): Delete this
function.
(find_safe_codings): Pay attention to
- the property tranlsation-table-for-encode of each codings.
+ the property translation-table-for-encode of each codings.
(syms_of_coding): Give Qtranslation_table the extra slot number 2.
2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
expanding, look again for a handler and invoke it. This is needed
for filenames like "/foo/../user@host:/bar/../baz" -- the first
expansion produces "/user@host:/bar/../baz" which needs to be
- expanded again for the finame result "/user@host:/baz".
+ expanded again for the filename result "/user@host:/baz".
2003-03-28 Jan Djärv <jan.h.d@swipnet.se>
(x_intersect_rectangles): New generic functions for use by xdisp.c
and GUI front-ends.
(syms_of_xdisp): Initialize and staticpro help_echo* variables.
- Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
+ Defvar_bool "x-stretch-cursor" and "mouse-autoselect-window" here.
* dispextern.h (Display_Info): Generic typedef for *_display_info.
(NativeRectangle): Generic typedef for rectangle type.
2003-02-17 Richard M. Stallman <rms@gnu.org>
* keyboard.c (this_command_key_count_reset): New variable.
- Initiatize to 0 where this_command_key_count is set.
+ Initialize to 0 where this_command_key_count is set.
(read_char): Save and restore this_command_key_count_reset
around input method code.
(read_char): If this_command_key_count_reset, echo reread commands.
(Fstart_process): Initialize the member `filter_multibyte' of
struct Lisp_Process.
(create_process): Call setup_process_coding_systems.
- (Fmake_network_process): New keyward `:filter-multibyte'.
+ (Fmake_network_process): New keyword `:filter-multibyte'.
Initialize the member `filter_multibyte' of struct Lisp_Process.
Call setup_process_coding_systems.
(server_accept_connection): Call setup_process_coding_systems.
* w32term.c (note_mode_line_highlight): Delete #if 0 to enable
function w32_define_cursor.
- (note_mouse_highlight): Initialize, setup cursor accoding to mouse
+ (note_mouse_highlight): Initialize, setup cursor according to mouse
position, change member name output_data.x to output_data.w32 and
add function w32_define_cursor.
(show_mouse_face): Delete #if 0 to enable function w32_define_cursor
2002-11-24 Steven Tamm <steventamm@mac.com>
* unexmacosx.c (unexec_realloc): Use malloc_default_zone to
- determine the size of pointers alloced in unexed space instead
+ determine the size of pointers alloc'ed in unexed space instead
of using possibly invalid emacs_zone pointers. This fixes the
binary incompatibility problems caused by updates to libSystem.B.
(Fx_popup_menu): Don't show pop up menu until preceding one is
actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
- * w32menu.c: Changes adapted from xmenu.c
+ * w32menu.c: Changes adapted from xmenu.c.
(set_frame_menubar): First parse all submenus,
then make widget_value trees from them.
Don't allocate any widget_value objects
* m/att3b.h (XINT): Don't define.
(VALBITS, VALMASK, XTYPE): Deleted.
(DATA_SEG_BITS): Define.
- * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
- ARRAY_MARK_FLAG): Deleted.
+ * m/gec63.h (VALBITS, VALMASK, XTYPE, XSETTYPE, XPNTR, XSET)
+ (ARRAY_MARK_FLAG): Deleted.
(DATA_SEG_BITS): Define.
* m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
(DATA_SEG_BITS): Define.
is Qcompound_text_with_extensions.
* xselect.c (lisp_data_to_selection_data): Always set selection
- type as string if x_encode_text returns streingp non-NULL.
+ type as string if x_encode_text returns stringp non-NULL.
* s/netbsd.h: Include /usr/pkg in the run time shared library path.
New variables.
(syms_of_fileio): DEFVAR_LISP them.
(read_file_name_cleanup): New unwind function.
- (Fread_file_name_internal): Only return completions satifying
+ (Fread_file_name_internal): Only return completions satisfying
Vread_file_name_predicate. Temporarily unwind protect and rebind
default-directory while checking completions against the predicate.
(Fread_file_name): Added PREDICATE argument. Specbind it to
* fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
Apple Monaco.
- * process.c (QCfamily, QCfilte): Declare extern.
+ * process.c (QCfamily, QCfilter): Declare extern.
(wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
calling select.
2002-04-19 Dave Lambert <dlambert@acm.org>
- Theses change implement an underscore-like (`hbar') cursor.
+ These changes implement an underscore-like (`hbar') cursor.
* xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
- m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
+ m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h,
m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
* msdos.c (x_autoselect_window_p): New variable.
(syms_of_msdos): Defvar it.
(dos_rawgetc): If x_autoselect_window_p is set, select the window in
- which the last mouse movement occured, unless it is already selected.
+ which the last mouse movement occurred, unless it is already selected.
* xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
New variables.
2001-10-31 Gerd Moellmann <gerd@gnu.org>
* window.c (grow_mini_window): Handle case that the root
- window is already smaller than the nominal mininum height.
+ window is already smaller than the nominal minimum height.
2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
;; End:
Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- 2008 Free Software Foundation, Inc.
+ 2008, 2009, 2010 Free Software Foundation, Inc.
This file is part of GNU Emacs.