1. 11 Jul, 2012 4 commits
    • Dmitry Antipov's avatar
      Avoid calls to strlen in font processing functions. · 984e7f30
      Dmitry Antipov authored
      * font.c (font_parse_name, font_parse_xlfd, font_parse_fcname)
      (font_open_by_name): Changed to use length argument.  Adjust
      users accordingly.
      * font.h (font_open_by_name, font_parse_xlfd): Adjust prototypes.
      * xfont.c (xfont_decode_coding_xlfd): Changed to return ptrdiff_t.
      (xfont_list_pattern, xfont_match): Use length returned by
      xfont_decode_coding_xlfd.
      * xfns.c (x_default_font_parameter): Omit useless xstrdup.
      984e7f30
    • Glenn Morris's avatar
      Move DONT_REOPEN_PTY from src/s to configure · 9d596af3
      Glenn Morris authored
      * configure.ac (DONT_REOPEN_PTY): Move here from src/s.
      
      * src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
      Move DONT_REOPEN_PTY to configure.
      9d596af3
    • Glenn Morris's avatar
      Let configure set DEFAULT_SOUND_DEVICE · 20e94fdd
      Glenn Morris authored
      * configure.ac (DEFAULT_SOUND_DEVICE): New definition.
      
      * src/sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]:
      * src/s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it.
      20e94fdd
    • Paul Eggert's avatar
      Remove "#define unix" that is no longer needed (Bug#11905). · 22ffb973
      Paul Eggert authored
      Merge from gnulib to make "#define unix" unnecessary, incorporating:
      2012-07-10 getloadavg: clean out old Emacs and Autoconf cruft
      2012-07-09 getopt: Simplify after Emacs changed.
      * src/s/aix4-2.h (unix): Remove; no longer needed.
      22ffb973
  2. 10 Jul, 2012 24 commits
    • Paul Eggert's avatar
      EMACS_TIME simplification (Bug#11875). · e9a9ae03
      Paul Eggert authored
      This replaces macros (which typically do not work in GDB)
      with functions, typedefs and enums, making the code easier to debug.
      The functional style also makes code easier to read and maintain.
      * lib-src/profile.c (TV2): Remove no-longer-needed static var.
      * src/systime.h: Include <sys/time.h> on all hosts, not just if
      WINDOWSNT, since 'struct timeval' is needed in general.
      (EMACS_TIME): Now a typedef, not a macro.
      (EMACS_TIME_RESOLUTION, LOG10_EMACS_TIME_RESOLUTION): Now constants,
      not macros.
      (EMACS_SECS, EMACS_NSECS, EMACS_TIME_SIGN, EMACS_TIME_VALID_P)
      (EMACS_TIME_FROM_DOUBLE, EMACS_TIME_TO_DOUBLE, EMACS_TIME_EQ)
      (EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT)
      (EMACS_TIME_LE): Now functions, not macros.
      (EMACS_SET_SECS, EMACS_SET_NSECS, EMACS_SET_SECS_NSECS)
      (EMACS_SET_USECS, EMACS_SET_SECS_USECS): Remove these macros,
      which are not functions.  All uses rewritten to use:
      (make_emacs_time): New function.
      (EMACS_SECS_ADDR, EMACS_SET_INVALID_TIME, EMACS_GET_TIME)
      (EMACS_ADD_TIME, EMACS_SUB_TIME): Remove these macros, which are
      not functions.  All uses rewritten to use the following, respectively:
      (emacs_secs_addr, invalid_emacs_time, get_emacs_time)
      (add_emacs_time, sub_emacs_time): New functions.
      * src/atimer.c: Don't include <sys/time.h>,	as "systime.h" does this.
      * src/fileio.c (Fcopy_file):
      * src/xterm.c (XTflash): Get the current time closer to when it's used.
      * src/makefile.w32-in ($(BLD)/atimer.$(O)): Update dependencies.
      e9a9ae03
    • Paul Eggert's avatar
      ffacb126
    • Glenn Morris's avatar
      NEWS copyedits · 358c19d9
      Glenn Morris authored
      358c19d9
    • Paul Eggert's avatar
      e99a530f
    • Glenn Morris's avatar
    • Dmitry Antipov's avatar
      Use XCAR and XCDR instead of Fcar and Fcdr where possible. · 7d7bbefd
      Dmitry Antipov authored
      * admin/coccinelle/list_loop.cocci: Semantic patch to convert from Fcdr
      to XCDR and consistently use CONSP in the list iteration loops.
      * admin/coccinelle/vector_contents.cocci: Fix indentation.
      * src/callint.c, src/coding.c, src/doc.c, src/editfns.c, src/eval.c,
      * src/font.c, src/fontset.c, src/frame.c, src/gnutls.c, src/minibuf.c,
      * src/msdos.c, src/textprop.c, src/w32fns.c, src/w32menu.c, src/window.c,
      * src/xmenu.c: Changed to use XCAR and XCDR where argument type is known
      to be a Lisp_Cons.
      7d7bbefd
    • Tom Tromey's avatar
      Implement token threading · 3a4c8000
      Tom Tromey authored
      	* bytecode.c (BYTE_CODE_THREADED): New macro.
      	(BYTE_CODES): New macro.  Replaces all old byte-code defines.
      	(enum byte_code_op): New type.
      	(CASE, NEXT, FIRST, CASE_DEFAULT, CASE_ABORT): New macros.
      	(exec_byte_code): Use them.  Use token threading when applicable.
      3a4c8000
    • Michael Albinus's avatar
      * eshell/esh-ext.el (eshell-remote-command): Remove remote part of · 8477cc7a
      Michael Albinus authored
      command, just in case.  The function is not needed anymore.
      (eshell-external-command): Do not call `eshell-remote-command'
      8477cc7a
    • Stefan Monnier's avatar
      Reduce use of (require 'cl). · f58e0fd5
      Stefan Monnier authored
      * admin/bzrmerge.el: Use cl-lib.
      * leim/quail/hangul.el: Don't require CL.
      * leim/quail/ipa.el: Use cl-lib.
      * vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el:
      * vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el:
      * register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el:
      * msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el:
      * international/quail.el, info-xref.el, imenu.el, image-mode.el:
      * font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el:
      * battery.el, avoid.el, abbrev.el: Use cl-lib.
      * vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el:
      * vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el:
      * jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el:
      * emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el:
      * calculator.el, autorevert.el, apropos.el: Don't require CL.
      * emacs-bytecomp.el (byte-recompile-directory, display-call-tree)
      (byte-compile-unfold-bcf, byte-compile-check-variable):
      * emacs-byte-opt.el (byte-compile-trueconstp)
      (byte-compile-nilconstp):
      * emacs-autoload.el (make-autoload): Use pcase.
      * face-remap.el (text-scale-adjust): Simplify pcase patterns.
      f58e0fd5
    • Juanma Barranquero's avatar
      dfa96edd
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/gv.el (cond): Make it a valid place. · 2519d43a
      Stefan Monnier authored
      (if): Simplify slightly.
      2519d43a
    • Glenn Morris's avatar
      Auto-commit of generated files. · 02bd7257
      Glenn Morris authored
      02bd7257
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/pcase.el (pcase): Accept self-quoting exps as "upatterns". · 19faa8e8
      Stefan Monnier authored
      (pcase--self-quoting-p): New function.
      (pcase--u1): Use it.
      19faa8e8
    • Dmitry Antipov's avatar
      Optimize pure C strings initialization. · 2a0213a6
      Dmitry Antipov authored
      * lisp.h (make_pure_string): Fix prototype.
      (build_pure_c_string): New function, defined as static inline.  This
      provides a better opportunity to optimize away calls to strlen when
      the function is called with compile-time constant argument.
      * alloc.c (make_pure_c_string): Fix comment.  Change to add nchars
      argument, adjust users accordingly.  Use build_pure_c_string where
      appropriate.
      * buffer.c, coding.c, data.c, dbusbind.c, fileio.c, fontset.c, frame.c,
      * keyboard.c, keymap.c, lread.c, search.c, syntax.c, w32fns.c, xdisp.c,
      * xfaces.c, xfns.c, xterm.c: Use build_pure_c_string where appropriate.
      2a0213a6
    • Dmitry Antipov's avatar
      Avoid calls to strlen in miscellaneous functions. · cb1caeaf
      Dmitry Antipov authored
      * buffer.c (init_buffer): Use precalculated len, adjust if needed.
      * font.c (Ffont_xlfd_name): Likewise.  Change to call make_string.
      * lread.c (openp): Likewise.
      cb1caeaf
    • Glenn Morris's avatar
      Move PENDING_OUTPUT_COUNT from src/s to configure · d02eb359
      Glenn Morris authored
      * configure.ac (PENDING_OUTPUT_COUNT): Move here from src/s.
      
      * src/s/cygwin.h, src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
      * src/s/unixware.h: Move PENDING_OUTPUT_COUNT definition to configure.
      d02eb359
    • Glenn Morris's avatar
      Move DATA_START, DATA_SEG_BITS from src/s to configure · 882cf227
      Glenn Morris authored
      * configure.ac (DATA_START, DATA_SEG_BITS): Move here from src/s.
      
      * src/s/irix6-5.h (DATA_START, DATA_SEG_BITS):
      * src/s/hpux10-20.h (DATA_SEG_BITS, DATA_START):
      * src/s/gnu.h (DATA_START): Move definitions to configure.
      882cf227
    • Dmitry Antipov's avatar
      Avoid calls to strlen in path processing functions. · c293e30c
      Dmitry Antipov authored
      * fileio.c (file_name_as_directory): Add comment.  Change to add
      srclen argument and return the length of result.  Adjust users
      accordingly.
      (directory_file_name): Fix comment.  Change to add srclen argument,
      swap 1nd and 2st arguments to obey the common convention.  Adjust
      users accordingly.
      * filelock.c (fill_in_lock_file_name): Avoid calls to strlen.
      c293e30c
    • Glenn Morris's avatar
      * src/s/irix6-5.h (SETUP_SLAVE_PTY, PTY_NAME_SPRINTF): Drop ifdef guards. · af6e839f
      Glenn Morris authored
      We include usg5-4-common.h, which defines them both.
      af6e839f
    • Glenn Morris's avatar
      * src/s/gnu.h: Don't include fcntl.h · 40289a12
      Glenn Morris authored
      (every file in Emacs that uses O_RDONLY already includes it; and this
      does not seem like the problem a src/s file should be trying to solve).
      40289a12
    • Glenn Morris's avatar
      40e72761
    • Glenn Morris's avatar
      authors.el update for configure.ac renaming · c4907a5e
      Glenn Morris authored
      * lisp/emacs-lisp/authors.el (authors-fixed-entries):
      (authors-renamed-files-alist): Update for configure.in -> configure.ac.
      c4907a5e
    • Glenn Morris's avatar
      Stop ns builds setting the EMACSLOADPATH environment variable · 9e059e3f
      Glenn Morris authored
      Ref bugs 4309, 6401, etc.
      This is the last environment variable (ab)used by the ns port in this way.
      
      * src/nsterm.m (ns_load_path): Rename from ns_init_paths.
      Now it does not set EMACSLOADPATH, just returns the load-path string.
      * src/nsterm.h: Update accordingly.
      
      * src/lread.c [HAVE_NS]: Include nsterm.h.
      (init_lread) [HAVE_NS]: Use ns_load_path.
      
      * src/emacs.c (main) [HAVE_NS]: No longer call ns_init_paths.
      9e059e3f
    • Glenn Morris's avatar
      Tiny NEWS edit · 4107c81e
      Glenn Morris authored
      4107c81e
  3. 09 Jul, 2012 12 commits