summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* * systime.h (EMACS_SUB_TIME): Clarify behavior with unsigned time_t.Paul Eggert2012-07-082-1/+7
| | | | See <http://bugs.gnu.org/11825#29>.
* Cleanup changes following fix for bug #11832.Eli Zaretskii2012-07-084-63/+75
| | | | | | | | | src/ xdisp.c (display_line): Add commentary about displaying truncation glyphs on GUI frames. (produce_special_glyphs): Move here from term.c. src/term.c (produce_special_glyphs): Move to xdisp.c. src/dispextern.h (produce_special_glyphs): Move prototype to xdisp.c section.
* Fix bug #11813 with invalid font for buffer name on the modeline.Eli Zaretskii2012-07-082-1/+6
| | | | | src/xdisp.c (fill_glyphless_glyph_string): If the face of the glyph has no font, use the frame's font.
* Fix ChangeLog typos.Juanma Barranquero2012-07-081-8/+8
|
* * xdisp.c (display_line): Avoid warning about implicit declarationAndreas Schwab2012-07-072-0/+5
| | | | of FRAME_FONT.
* * frame.c (get_frame_param): Define only if HAVE_WINDOW_SYSTEM.Andreas Schwab2012-07-072-0/+4
|
* * lisp.h: Remove empty conditional.Andreas Schwab2012-07-072-2/+4
|
* * lread.c (load_path_check): Now static.Paul Eggert2012-07-072-1/+3
|
* Improve static checking when configured --with-ns.Paul Eggert2012-07-076-28/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | See Samuel Bronson's remarks in <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00146.html>. * configure.in (WARN_CFLAGS): Omit -Wunreachable-code, as it's a no-op with recent GCC and harmful in earlier ones. Omit -Wsync-nand, as it's irrelevant to Emacs and provokes a warning when compiling with ObjC. Always omit -Wunsafe-loop-optimizations, as we don't mind when optimization is being done correctly. Fix some minor --with-ns problems found by static checking. * src/frame.c (Ftool_bar_pixel_width) [!FRAME_TOOLBAR_WIDTH]: (x_set_font) [!HAVE_X_WINDOWS]: * src/image.c (xpm_load_image) [HAVE_NS]: (x_to_xcolors) [!HAVE_X_WINDOWS && !HAVE_NTGUI]: (x_disable_image) [!HAVE_NS && !HAVE_NTGUI]: Remove unused local. (Fx_parse_geometry) [HAVE_NS]: Don't return garbage. (xpm_load_image) [HAVE_NS && !HAVE_XPM]: Remove unused label. * src/image.c (x_create_bitmap_from_file) [HAVE_NS]: (xpm_load_image, xpm_load) [HAVE_NS && !HAVE_XPM]: * src/nsselect.m (symbol_to_nsstring, ns_string_to_pasteboard_internal): * src/xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]: Fix pointer signedness problem. * src/xfaces.c (FRAME_X_FONT_TABLE): * src/xterm.h (FRAME_X_FONT_TABLE): Remove unused, incompatible macros.
* * configure.in (BROKEN_SA_RESTART): Doc fix.Glenn Morris2012-07-072-4/+5
| | | | * src/sysdep.c, src/s/irix6-5.h: Related comments.
* Try to simplify the initialization of Vload_pathGlenn Morris2012-07-072-100/+119
| | | | | | | | | | | * src/lread.c (load_path_check): New function, split from init_lread. (init_lread): Reorganize. Motivation: If EMACSLOADPATH is set, check/warn about that rather than the defaults, which we are not going to use. Hence we can remove the turn_off_warning and WINDOWSNT || HAVE_NS tests. Don't warn if site-lisp directories are missing. If not installed, start from a blank load-path, since PATH_LOADSEARCH refers to the eventual installation directories.
* Fix bug #11832 with truncated lines when fringes are disabled on GUI frames.Eli Zaretskii2012-07-073-55/+208
| | | | | | | | | | | | | | | | | | | src/xdisp.c (init_iterator): Get dimensions of truncation and continuation glyphs even if on GUI frames. Adjust it->last_visible_x on GUI frames when the left or right fringes, or both, are absent. (start_display, move_it_in_display_line_to): Handle the case of a GUI frame without a fringe to display continuation or truncation glyphs. (insert_left_trunc_glyphs): Support GUI frames: make sure truncation glyphs overwrite enough glyphs from the current line to have sufficient space in pixels. (display_line): Support truncation and continuation glyphs on GUI frames. If some spare pixels are left on the line after inserting the truncation glyphs, fill that space with a stretch glyph of a suitably computed width. src/term.c (produce_special_glyphs): Call PRODUCE_GLYPHS, not produce_glyphs, to support GUI sessions.
* * sysdep.c (ULLONG_MAX): Define if not already defined.Paul Eggert2012-07-062-0/+7
| | | | Fixes: debbugs:11781
* * sysdep.c (list_system_processes): Port to NetBSD-current.Paul Eggert2012-07-062-2/+4
| | | | Fixes: debbugs:11797
* Do not require float-time's arg to fit in time_t (Bug#11825).Paul Eggert2012-07-065-32/+71
| | | | | | | | | | | | | This works better on hosts where time_t is unsigned, and where float-time is applied to the (negative) difference between two times. * editfns.c (decode_time_components): Last arg is now double *, not int *, and means to store all the result as a double, without worrying about whether the seconds part fits in time_t. All callers changed. (lisp_time_argument): Remove last int * arg, as it's no longer needed. All callers changed. (Ffloat_time): Do not fail merely because the specified time falls outside of time_t range.
* Replace some src/s undefs by never even checking on relevant platformsGlenn Morris2012-07-064-19/+8
| | | | | | | | | | * configure.in: (getwd): Don't check for it on unixware. (random, rint): Don't check for these on hpux. (res_init, libresolv): Don't check for these on darwin. * src/s/darwin.h (HAVE_RES_INIT, HAVE_LIBRESOLV): * src/s/hpux10-20.h (HAVE_RINT, HAVE_RANDOM): * src/s/unixware.h (HAVE_GETWD): Move undefs to configure (effectively).
* Update Windows port to gnulib changes in ↵Juanma Barranquero2012-07-073-7/+8
| | | | | | | | | | | | | | | | | 2012-07-06T21:07:46Z!eggert@cs.ucla.edu. * lib-src/makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Update dependencies. * lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/c-ctype.$(O), $(BLD)/c-strcasecmp.$(O) and $(BLD)/c-strncasecmp.$(O). ($(BLD)/c-ctype.$(O), $(BLD)/c-strcasecmp.$(O)) ($(BLD)/c-strncasecmp.$(O)): New dependencies. * src/makefile.w32-in (DISPEXTERN_H, $(BLD)/regex.$(O)): Update dependencies. * src/s/ms-w32.h [_MSC_VER]: Remove strcasecmp, strncasecmp.
* Use c_strcasecmp for ASCII case-insensitive comparison.Paul Eggert2012-07-065-33/+20
| | | | Fixes: debbugs:11786
* * xfont.c (compare_font_names): Redo to omit the need for casts.Paul Eggert2012-07-062-2/+7
|
* * xfns.c (Fx_change_window_property): Doc fix.Andreas Schwab2012-07-063-4/+9
| | | | * w32fns.c (Fx_change_window_property): Doc fix.
* Fixes: debbugs:11870Andreas Schwab2012-07-063-11/+19
| | | | | | * w32fns.c (Fx_window_property): Accept the same arguments as the X Windows version. Doc fix. * xfns.c (Fx_window_property): Doc fix.
* * nt/config.nt: Complete rework to bring it in sync with autogen/config.in.Juanma Barranquero2012-07-062-76/+97
| | | | | | | | All Windows-specific code moved to src/s/ms-w32.h. * src/s/ms-w32.h: Settings not specific to Windows moved to nt/config.nt. Windows-specific code from nt/config.nt moved here. Obsolete settings removed.
* * process.c: Avoid unnecessary calls to gettime.Paul Eggert2012-07-062-8/+15
| | | | | | (wait_reading_process_output): Don't get the time of day when gobbling data immediately and not waiting, as there's no need for it in that case. This removes a FIXME.
* Fix stray '<' from last change.Paul Eggert2012-07-061-1/+1
|
* * gtkutil.c (xg_event_is_for_scrollbar): Assign gwin when HAVE_GTK3 is defined.Jan Djärv2012-07-062-2/+7
| | | | Fixes: debbugs:11768
* Fix marker debugging code.Dmitry Antipov2012-07-062-11/+21
| | | | | | | * marker.c (byte_char_debug_check): Do not perform the check if buffer is not multibyte. (buf_charpos_to_bytepos, buf_bytepos_to_charpos): Call byte_char_debug_check with correct arguments.
* Compile marker debugging code only if ENABLE_CHECKING is defined.Dmitry Antipov2012-07-062-42/+54
| | | | | | | | * marker.c (byte_char_debug_check, count_markers): Use only if ENABLE_CHECKING is defined. (byte_debug_flag): Remove. (CONSIDER, buf_charpos_to_bytepos, buf_bytepos_to_charpos): Always call byte_char_debug_check if ENABLE_CHECKING is defined.
* Avoid code repetition in marker-related functions.Dmitry Antipov2012-07-062-73/+52
| | | | | | | | | | * marker.c (attach_marker): New function. (Fset_marker, set_marker_restricted, set_marker_both) (set_marker_restricted_both): Use it. (Fset_marker, set_marker_restricted, Fbuffer_has_markers_at): Consistently rename charno to charpos. (marker_position): Add eassert. (marker_byte_position): Convert to eassert.
* * buffer.c (unchain_overlay): Simplify. Add comment.Dmitry Antipov2012-07-063-54/+46
| | | | * marker.c (unchain_marker): Simplify. Fix comments.
* Introduce fast path for the widely used marker operation.Dmitry Antipov2012-07-068-72/+67
| | | | | | | | | | | | * alloc.c (build_marker): New function. * lisp.h (build_marker): New prototype. * buffer.c (clone_per_buffer_values, Fmake_indirect_buffer): Use it. * composite.c (autocmp_chars): Likewise. * editfns.c (buildmark): Remove. (Fpoint_marker, Fpoint_min_marker, Fpoint_max_marker) (save_restriction_save): Use build_marker. * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos): Likewise. * window.c (save_window_save): Likewise.
* Do not use Fdelete_overlay in delete_all_overlaysDmitry Antipov2012-07-063-22/+38
| | | | | | | to avoid redundant calls to unchain_overlay. * buffer.c (drop_overlay): New function. (delete_all_overlays, Fdelete_overlay): Use it. * minibuf.c (get_minibuffer): Fix comment.
* Port to OpenBSD 5.1 amd64.Paul Eggert2012-07-062-6/+18
|
* * src/Makefile.in (emacs$(EXEEXT)): Don't check for load-path shadows.Glenn Morris2012-07-052-4/+4
| | | | | | | | | | | It has nothing to do with building Emacs, and no-one is likely to be paying attention to the result. The CANNOT_DUMP branch was pointless, since it sets EMACSLOADPATH=$(lispsource) it is impossible for there to ever be any shadows. The EMACSLOADPATH setting was probably necessary for emacs to work at all when uninstalled, given the way init_lread works for the CANNOT_DUMP case. Since -batch implies -q, in the non-CANNOT_DUMP branch, any shadows could only come from site-lisp files.
* More xmalloc and related cleanup.Paul Eggert2012-07-0561-442/+380
| | | | | | | | | | | | | | | | | | | | | | | | * alloc.c, bidi.c, buffer.c, buffer.h, bytecode.c, callint.c: * callproc.c, charset.c, coding.c, composite.c, data.c, dispnew.c: * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fns.c: * font.c, fontset.c, frame.c, fringe.c, ftfont.c, ftxfont.c, gmalloc.c: * gtkutil.c, image.c, keyboard.c, keymap.c, lread.c, macros.c, menu.c: * nsfns.m, nsfont.m, nsmenu.m, nsterm.m, print.c, process.c, ralloc.c: * regex.c, region-cache.c, scroll.c, search.c, sound.c, syntax.c: * sysdep.c, term.c, termcap.c, unexmacosx.c, window.c, xdisp.c: * xfaces.c, xfns.c, xftfont.c, xgselect.c, xmenu.c, xrdb.c, xselect.c: * xterm.c: Omit needless casts involving void * pointers and allocation. Prefer "P = xmalloc (sizeof *P)" to "P = xmalloc (sizeof (TYPE_OF_P))", as the former is more robust if P's type is changed. Prefer xzalloc to xmalloc + memset 0. Simplify malloc-or-realloc to realloc. Don't worry about xmalloc returning a null pointer. Prefer xstrdup to xmalloc + strcpy. * editfns.c (Fmessage_box): Grow message_text by at least 80 when growing it. * keyboard.c (apply_modifiers_uncached): Prefer local array to alloca of a constant.
* Avoid long futile looping on a TTY under huge values of hscroll.Eli Zaretskii2012-07-052-2/+22
| | | | | | | src/xdisp.c (display_line): Fix horizontal pixel coordinates when hscroll is larger than the line width. Fixes long and futile looping inside extend_face_to_end_of_line (on a TTY) producing glyphs that are not needed and thrown away.
* * marker.c (set_marker_restricted_both): Simplify by usingDmitry Antipov2012-07-052-8/+7
| | | | clip_to_bounds.
* * editfns.c (region_limit): Simplify by using clip_to_bounds.Paul Eggert2012-07-052-7/+8
|
* Don't use deprecated functions when compiling with Gtk3.Jan Djärv2012-07-052-19/+85
| | | | | | | | | | | | | | | | | * gtkutil.c (gtk_scrollbar_new, gtk_box_new): Define when HAVE_GTK3 is not defined (Bug#11768). (xg_create_frame_widgets): Use gtk_plug_new_for_display (Bug#11768). (xg_create_frame_widgets, create_dialog, xg_get_file_with_chooser) (make_widget_for_menu_item, xg_make_tool_item): Use gtk_box_new followed by gtk_box_set_homogeneous (Bug#11768). (xg_update_menu_item): Use GTK_IS_BOX (Bug#11768). (update_theme_scrollbar_width, xg_create_scroll_bar): Use gtk_scrollbar_new (Bug#11768). (xg_event_is_for_scrollbar): Use Gdk Device functions for HAVE_GTK3. (is_box_type): New function (Bug#11768). (xg_tool_item_stale_p): Call is_box_type. (xg_initialize): Get settings by calling gtk_settings_get_for_screen with default display (Bug#11768).
* Revert hscroll and min_hscroll to ptrdiff_t.Eli Zaretskii2012-07-053-6/+3
| | | | Fixes: debbugs:11857
* Fix bug #11857 with messed up display for insanely large hscroll values.Eli Zaretskii2012-07-053-5/+34
| | | | | | | | src/xdisp.c (window_hscroll_limited): New function. (pos_visible_p, init_iterator): Use it to avoid overflow of pixel coordinates when window's hscroll is set to insanely large values. src/window.h (struct window) <hscroll, min_hscroll>: Change type to 'int'.
* src/makefile.w32-in: Update dependencies.Juanma Barranquero2012-07-052-2/+9
| | | | | ($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo. ($(BLD)/terminal.$(O), $(BLD)/syntax.$(O)): Update dependencies.
* Cleanup xmalloc.Dmitry Antipov2012-07-0551-215/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/coccinelle/xzalloc.cocci: Semantic patch to convert calls to xmalloc with following memset to xzalloc. * src/lisp.h (xzalloc): New prototype. Omit needless casts. * src/alloc.c (xzalloc): New function. Omit needless casts. * src/charset.c: Omit needless casts. Convert all calls to malloc with following memset to xzalloc. * src/dispnew.c: Likewise. * src/fringe.c: Likewise. * src/image.c: Likewise. * src/sound.c: Likewise. * src/term.c: Likewise. * src/w32fns.c: Likewise. * src/w32font.c: Likewise. * src/w32term.c: Likewise. * src/xfaces.c: Likewise. * src/xfns.c: Likewise. * src/xterm.c: Likewise. * src/atimer.c: Omit needless casts. * src/buffer.c: Likewise. * src/callproc.c: Likewise. * src/ccl.c: Likewise. * src/coding.c: Likewise. * src/composite.c: Likewise. * src/doc.c: Likewise. * src/doprnt.c: Likewise. * src/editfns.c: Likewise. * src/emacs.c: Likewise. * src/eval.c: Likewise. * src/filelock.c: Likewise. * src/fns.c: Likewise. * src/gtkutil.c: Likewise. * src/keyboard.c: Likewise. * src/lisp.h: Likewise. * src/lread.c: Likewise. * src/minibuf.c: Likewise. * src/msdos.c: Likewise. * src/print.c: Likewise. * src/process.c: Likewise. * src/region-cache.c: Likewise. * src/search.c: Likewise. * src/sysdep.c: Likewise. * src/termcap.c: Likewise. * src/terminal.c: Likewise. * src/tparam.c: Likewise. * src/w16select.c: Likewise. * src/w32.c: Likewise. * src/w32reg.c: Likewise. * src/w32select.c: Likewise. * src/w32uniscribe.c: Likewise. * src/widget.c: Likewise. * src/xdisp.c: Likewise. * src/xmenu.c: Likewise. * src/xrdb.c: Likewise. * src/xselect.c: Likewise.
* * fileio.c (time_error_value): Check the right error number.Paul Eggert2012-07-042-1/+7
| | | | | Problem reported by Troels Nielsen in <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00095.html>.
* * window.c (set_window_hscroll): Revert the 100000 hscroll limit.Paul Eggert2012-07-042-6/+13
| | | | | | This should be fixed in a better way; see Eli Zaretskii in <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00088.html>. (HSCROLL_MAX): Remove; this is now internal to set_window_hscroll.
* * fileio.c (time_error_value): Rename from special_mtime.Paul Eggert2012-07-042-4/+8
| | | | | The old name's problems were noted by Eli Zaretskii in <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00087.html>.
* * emacs.c (gdb_pvec_type): Change it back to enum pvec_type.Paul Eggert2012-07-042-1/+6
| | | | | | This variable's comment says Emacs needs at least one GDB-visible symbol of type enum pvec_type, to work around GDB problems. The symbol's value doesn't matter.
* * alloc.c (PSEUDOVECTOR_NBYTES): Remove stray ';'Paul Eggert2012-07-042-1/+6
| | | | that causes compilation to fail on pre-C99 compilers.
* Remove obsolete configuration options (Windows port).Juanma Barranquero2012-07-042-5/+5
| | | | | | | | | | | | * admin/CPP-DEFINES (LISP_FLOAT_TYPE): Remove, obsolete. * nt/config.nt (LISP_FLOAT_TYPE, HAVE_XFREE386, USE_TEXT_PROPERTIES) (GSSAPI, HAVE_LIBINTL, HAVE_LIBGSSAPI_KRB5, HAVE_LIBGSSAPI) (HAVE_GSSAPI_H, HAVE_LIBXBD, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET) (HAVE_MEMCMP): Remove, obsolete. * src/s/ms-w32.h (LISP_FLOAT_TYPE, HAVE_MEMCMP, HAVE_MEMCPY) (HAVE_MEMMOVE, HAVE_MEMSET): Don't set, obsolete.
* Fix ChangeLog typos.Juanma Barranquero2012-07-041-5/+5
|
* * buffer.c (init_buffer_once): Fix initialization ofDmitry Antipov2012-07-042-2/+14
| | | | | headers for buffer_defaults and buffer_local_symbols. Reported by Juanma Barranquero <lekktu@gmail.com>.