- 26 Jun, 2012 4 commits
-
-
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
-
Paul Eggert authored
This is needed for hosts that lack <alloca.h>, when Emacs is configured --with-x-toolkit=no. Problem reported by Herbert J. Skuhra for FreeBSD.
-
- 25 Jun, 2012 10 commits
-
-
Jim Diamond authored
process's `server-client-directory' properties.
-
Paul Eggert authored
-
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.
-
Glenn Morris authored
-
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 15 commits
-
-
Paul Eggert authored
instead of truncating it to 63 (admittedly a generous limit).
-
Paul Eggert authored
-
Dan Nicolaescu authored
-
Dan Nicolaescu authored
-
Eli Zaretskii authored
Fixes: debbugs:11750
-
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
-
Lawrence Mitchell authored
Fixes: debbugs:11686
-
Dmitry Antipov authored
* coccinelle: New subdirectory * coccinelle/README: Documentation stub. * coccinelle/vector_contents.cocci: Semantic patch to replace direct access to `contents' member of Lisp_Vector objects with AREF and ASET where appropriate.
-
Chong Yidong authored
-
Glenn Morris authored
-
Samuel Bronson authored
Fixes: debbugs:7838
-
Thien-Thi Nguyen authored
* processes.texi (Asynchronous Processes): Make the pty vs pipe discussion more prominent.
-
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>.
-
- 23 Jun, 2012 11 commits
-
-
Eli Zaretskii authored
src/dispnew.c (sit_for, Fsleep_for): src/keyboard.c (kbd_buffer_get_event): src/process.c (Faccept_process_output): Avoid compiler warnings when comparing a 32-bit time_t with a 64-bit INTMAX_MAX.
-
Juanma Barranquero authored
-
Paul Eggert authored
-
Paul Eggert authored
* m4/getopt.m4: Copy new version from gnulib, incorporating: getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
-
Juanma Barranquero authored
lisp/makefile.w32-in (COMPILE_FIRST): Synch with changes in 2012-06-22T21:24:54Z!monnier@iro.umontreal.ca.
-
Juanma Barranquero authored
(w32_get_internal_run_time): Remove usused variable `time_100ns'.
-
Paul Eggert authored
Privately reported by Herbert J. Skuhra. (make_lisp_timeval) [__FreeBSD__]: Rename from TIMELIST. All uses changed. (system_process_attributes) [__FreeBSD__]: Invoke make_lisp_time, not make_lisp_timeval, when the argument is of type EMACS_TIME.
-
Stefan Monnier authored
* lisp/help-fns.el (describe-variable): Don't croak when doc is not found. * lisp/vc/pcvs.el (cvs-retrieve-revision): Avoid toggle-read-only. * lisp/menu-bar.el (menu-bar-line-wrapping-menu): Purecopy a tiny bit more. * lisp/emacs-lisp/syntax.el (syntax-ppss): Simplify with new `if' place. * lisp/emacs-lisp/smie.el (smie-next-sexp): CSE. * lisp/emacs-lisp/macroexp.el (macroexp-let2): Fix edebug spec and avoid ((lambda ..) ..). * lisp/emacs-lisp/eieio.el (eieio-oref, slot-value): Use simpler defsetf.
-
Chong Yidong authored
Fixes: debbugs:11672
-
Chong Yidong authored
* lisp/info.el (Info-mouse-follow-link): Accept symbol values of the link-args property. Select the window. (Info-fontify-node): Use Info-link-keymap for all navigation buttons, with link-args property to perform the desired action. (Info-link-keymap): Doc fix. (Info-next-link-keymap, Info-prev-link-keymap) (Info-up-link-keymap): Delete now-unused keymaps. Fixes: debbugs:11672
-
Chong Yidong authored
-