1. 10 Jul, 2012 22 commits
    • Glenn Morris's avatar
      NEWS copyedits · 358c19d9
      Glenn Morris authored
    • Paul Eggert's avatar
    • 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.
    • 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.
      	(exec_byte_code): Use them.  Use token threading when applicable.
    • 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'
    • 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)
      * emacs-autoload.el (make-autoload): Use pcase.
      * face-remap.el (text-scale-adjust): Simplify pcase patterns.
    • Juanma Barranquero's avatar
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/gv.el (cond): Make it a valid place. · 2519d43a
      Stefan Monnier authored
      (if): Simplify slightly.
    • Glenn Morris's avatar
      Auto-commit of generated files. · 02bd7257
      Glenn Morris authored
    • 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.
    • 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
      * 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.
    • 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.
    • 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.
    • 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.
    • 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
      (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.
    • 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.
    • 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).
    • Glenn Morris's avatar
    • 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.
    • 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.
    • Glenn Morris's avatar
      Tiny NEWS edit · 4107c81e
      Glenn Morris authored
  2. 09 Jul, 2012 18 commits