- 29 Jun, 2012 1 commit
-
-
Dmitry Antipov authored
undefined. Convert from xassert to eassert. * nsmenu.m: Convert from xassert to eassert. * nsterm.m: Likewise.
-
- 28 Jun, 2012 7 commits
-
-
Stefan Monnier authored
Fixes: debbugs:11770
-
Paul Eggert authored
* window.c (HSCROLL_MAX): New macro. (Fscroll_left, Fscroll_right): Avoid undefined behavior on integer overflow when requested scroll falls outside ptrdiff_t range.
-
Dmitry Antipov authored
'min_hscroll' and 'last_point' from Lisp_Object to ptrdiff_t, 'last_modified' and 'last_overlay_modified' to EMACS_INT. Adjust users accordingly. * xdisp.c (try_cursor_movement): Replace type check with eassert. * window.c (Fscroll_left, Fscroll_right): Change type of 'hscroll' from EMACS_INT to ptrdiff_t. (make_window): Omit redundant initialization.
-
Juanma Barranquero authored
-
Dmitry Antipov authored
'sequence_number' from Lisp_Object to int. * frame.c (make_frame): Adjust users accordingly. * print.c (print_object): Likewise. * window.c (select_window, Fwindow_use_time, make_parent_window) (make_window): Likewise.
-
Dmitry Antipov authored
(GLYPH_DEBUG): Define if glyphs debugging is enabled. * src/dispextern.h (GLYPH_DEBUG): Now defined in config.h if enabled with --enable-checking=[all,glyphs] configure option. Fix GLYPH_DEBUG usage assuming that it may be undefined, adjust comments accordingly. * src/dispnew.c: Fix GLYPH_DEBUG usage assuming that it may be undefined, adjust comments accordingly. * src/image.c: Likewise. * src/scroll.c: Likewise. * src/w32fns.c: Likewise. * src/w32term.c: Likewise. * src/xdisp.c: Likewise. * src/xfaces.c: Likewise. * src/xfns.c: Likewise. * src/xterm.c: Likewise.
-
Dmitry Antipov authored
* configure.in (ENABLE_CHECKING): Update comment. * src/dispextern.h (XASSERTS): Remove. * src/fontset.c (xassert): Remove. Convert from xassert to eassert. * src/alloc.c: Convert from xassert to eassert. * src/bidi.c: Likewise. * src/dispnew.c: Likewise. * src/fns.c: Likewise. * src/fringe.c: Likewise. * src/ftfont.c: Likewise. * src/gtkutil.c: Likewise. * src/image.c: Likewise. * src/keyboard.c: Likewise. * src/menu.c: Likewise. * src/process.c: Likewise. * src/scroll.c: Likewise. * src/sound.c: Likewise. * src/term.c: Likewise. * src/w32console.c: Likewise. * src/w32fns.c: Likewise. * src/w32term.c: Likewise. * src/window.c: Likewise. * src/xdisp.c: Likewise. * src/xfaces.c: Likewise. * src/xfns.c: Likewise. * src/xselect.c: Likewise. * src/xterm.c: Likewise.
-
- 27 Jun, 2012 10 commits
-
-
Stefan Monnier authored
* lisp/loadup.el (purify-flag): Pre-grow the hash-table to reduce the memory use. * lisp/bindings.el (bindings--define-key): New function. * lisp/vc/vc-hooks.el, lisp/replace.el, lisp/menu-bar.el: * lisp/international/mule-cmds.el, lisp/emacs-lisp/lisp-mode.el: * lisp/buff-menu.el, lisp/bookmark.el: * bindings.el: Use it to purecopy define-key bindings. * src/fns.c (maybe_resize_hash_table): Output message when growing the purify-hashtable.
-
Dmitry Antipov authored
* xsettings.c (XSETTINGS_FONT_NAME): Move under HAVE_XFT to avoid GCC warning about unused macro.
-
Dmitry Antipov authored
* alloc.c (make_uninit_multibyte_string): Initialize intervals as in make_pure_string and make_pure_c_string.
-
Dmitry Antipov authored
-
Dmitry Antipov authored
to memset, add explicit initialization where appropriate.
-
Glenn Morris authored
* lisp/info.el (Info-default-directory-list): Move here from paths.el. * lisp/paths.el: Remove file, which is now empty. * lisp/loadup.el: No longer load "paths". * src/lisp.mk (lisp): Remove paths.elc. * lib-src/makefile.w32-in (lisp2): Remove paths.el. * INSTALL: Remove references to paths.el.
-
Glenn Morris authored
For some reason, this included an extraneous entry from the emacs-24 branch.
-
Chong Yidong authored
* lisp/help-fns.el (help-fns--autoloaded-p): New function. (describe-function-1): Refer to a function as "autoloaded" if it was autoloaded at any time in the past. Perform autoloading if help-enable-auto-load is non-nil. * lisp/help.el (help-enable-auto-load): New variable. * src/doc.c (Fsubstitute_command_keys): Fix punctuation.
-
John Wiegley authored
OS X Lion: __mod_init_func and __mod_term_func.
-
John Wiegley authored
building with Clang.
-
- 26 Jun, 2012 7 commits
-
-
Stefan Monnier authored
-
Eli Zaretskii authored
src/s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to _stricmp and _strnicmp. (HAVE_STRCASECMP, HAVE_STRNCASECMP): Define to 1.
-
Dmitry Antipov authored
allocated window. (allocate_process): Likewise for new process. (allocate_terminal): Changed to use offsetof. (allocate_frame): Likewise. * frame.c (make_frame): Omit redundant initialization. * window.c (make_parent_window): Use memset. (make_window): Omit redundant initialization. * process.c (make_process): Omit redundant initialization. * terminal.c (create_terminal): Likewise.
-
Dmitry Antipov authored
-
Dmitry Antipov authored
* src/lisp.h: Define build_string as static inline. This provides a better opportunity to optimize away calls to strlen when the function is called with compile-time constant argument. * src/image.c (imagemagick_error): Convert to build_string. * src/w32proc.c (sys_spawnve): Likewise. * src/xterm.c (x_term_init): Likewise. * admin/coccinelle/build_string.cocci: Semantic patch to convert from make_string to build_string.
-
Paul Eggert authored
In the old days this wasn't portable, since some sprintf implementations returned char *. But they died out years ago and Emacs already assumes sprintf returns int. Similarly for float_to_string. This patch speeds up (number-to-string 1000) by 3% on Fedora 15 x86-64. * ccl.c (ccl_driver): * character.c (string_escape_byte8): * data.c (Fnumber_to_string): * doprnt.c (doprnt): * print.c (print_object): * xdisp.c (message_dolog): * xfns.c (syms_of_xfns): Use sprintf or float_to_string result to avoid need to call strlen. * data.c (Fnumber_to_string): Use make_unibyte_string, since the string must be ASCII. * lisp.h, print.c (float_to_string): Now returns int length. * term.c (produce_glyphless_glyph): Use sprintf result rather than recomputing it.
-
Paul Eggert authored
-
- 25 Jun, 2012 7 commits
-
-
Dmitry Antipov authored
-
Dmitry Antipov authored
strcasecmp and strncasecmp. * lib-src/etags.c (etags_strcasecmp, etags_strncasecmp): Define to library functions strcasecmp and strncasecmp if available. * lwlib/lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which may be defined to library function strcasecmp if available. * src/dispextern.c (xstrcasecmp): Define to library function strcasecmp if available. * src/xfaces.c: Do not use xstrcasecmp if strcasecmp is available.
-
Andreas Schwab authored
Avoid comma operator. * menu.c (push_submenu_start, push_submenu_end) (push_left_right_boundary, push_menu_pane): Likewise. * msdos.c (dos_rawgetc): Likewise.
-
Dmitry Antipov authored
to memset.
-
Paul Eggert authored
sprintf already null-terminates its output.
-
Paul Eggert authored
-
Dmitry Antipov authored
`const char *' to `char *' to avoid compiler warning.
-
- 24 Jun, 2012 8 commits
-
-
Paul Eggert authored
instead of truncating it to 63 (admittedly a generous limit).
-
Paul Eggert authored
-
Dan Nicolaescu authored
-
Dan Nicolaescu authored
-
Juanma Barranquero authored
-
Paul Eggert authored
Fixes: debbugs:11750
-
Eli Zaretskii authored
lib/makefile.w32-in ($(BLD)/dtotimespec.$(O)): ($(BLD)/timespec-add.$(O)): ($(BLD)/timespec-sub.$(O)): Don't depend on $(EMACS_ROOT)/nt/inc/sys/time.h. lib/stat-time.h: lib/timespec.h: lib/utimens.h: Revert last change. src/makefile.w32-in (TIMESPEC_H): Remove nt/inc/sys/time.h. (SYSTIME_H): Add nt/inc/sys/time.h. src/systime.h [WINDOWSNT]: Include sys/time.h. src/s/ms-w32.h (struct timespec): Definition moved from nt/inc/sys/time.h. Suggested by Paul Eggert <eggert@cs.ucla.edu>. nt/inc/sys/time.h (struct timespec): Don't define it here, it is now defined in src/s/ms-w32.h. Fixes: debbugs:9000
-
Paul Eggert authored
* lisp.h (WAIT_READING_MAX): New macro. * dispnew.c (Fsleep_for, sit_for): * keyboard.c (kbd_buffer_get_event): * process.c (Faccept_process_output): Use it to avoid bogus compiler warnings with obsolescent GCC versions. This improves on the previous patch, which introduced a bug when time_t is unsigned and as wide as intmax_t. See <http://bugs.gnu.org/9000#51>.
-