1. 11 Jul, 2012 32 commits
    • Glenn Morris's avatar
      Remove unneeded #define POSIX · 30fe9bf4
      Glenn Morris authored
      * src/s/gnu-linux.h, src/s/sol2-6.h: No longer define POSIX,
      unused since 2011-01-17 change to systty.h.
      
      * admin/CPP-DEFINES: Related edit.
      30fe9bf4
    • Glenn Morris's avatar
      All platforms using configure support HAVE_PTYS and HAVE_SOCKETS · ee1cf5cf
      Glenn Morris authored
      * configure.ac (HAVE_PTYS, HAVE_SOCKETS): Define unconditionally.
      
      * src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
      * src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/template.h:
      * src/s/usg5-4-common.h: Move HAVE_PTYS and HAVE_SOCKETS to configure.
      ee1cf5cf
    • Stefan Monnier's avatar
      More CL cleanups and reduction of use of cl.el. · a464a6c7
      Stefan Monnier authored
      * woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
      * vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
      * textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
      * strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
      * progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
      * play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
      * play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
      * net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
      * image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
      * eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
      * eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
      * eshell/em-cmpl.el, eshell/em-banner.el:
      * url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
      * url/url-future.el, url/url-dav.el, url/url-cookie.el:
      * calendar/parse-time.el, test/eshell.el: Use cl-lib.
      * wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el:
      * vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el:
      * textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el:
      * term/ns-win.el, term.el, shell.el, ps-samp.el:
      * progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el:
      * progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el:
      * play/gamegrid.el, play/bubbles.el, novice.el, notifications.el:
      * net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el:
      * net/ldap.el, net/eudc.el, net/browse-url.el, man.el:
      * mail/mailheader.el, mail/feedmail.el:
      * url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el:
      * url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el:
      Dont use CL.
      * ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time.
      * eshell/esh-opt.el (eshell-eval-using-options): Quote code with
      `lambda' rather than with `quote'.
      (eshell-do-opt): Adjust accordingly.
      (eshell-process-option): Simplify.
      * eshell/esh-var.el:
      * eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options.
      * emacs-pcase.el (pcase--dontcare-upats, pcase--let*)
      (pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern
      to `pcase--dontcare'.
      * emacs-cl.el (labels): Mark obsolete.
      (cl--letf, letf): Move to cl-lib.
      (cl--letf*, letf*): Remove.
      * emacs-cl-lib.el (cl-nth-value): Use defalias.
      * emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule.
      (cl-progv): Rewrite.
      (cl--letf, cl-letf): Move from cl.el.
      (cl-letf*): New macro.
      * emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.
      a464a6c7
    • Paul Eggert's avatar
      Port 'movemail' again to Solaris and similar hosts. · c214e35e
      Paul Eggert authored
      See Susan Cragin's report in
      <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00199.html>.
      * movemail.c (xmalloc): Also define if !DISABLE_DIRECT_ACCESS &&
      !MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK.  Move up, so it doesn't
      need a forward declaration.
      (main): Rewrite to avoid no-longer-present function 'concat', if
      !DISABLE_DIRECT_ACCESS && !MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK.
      c214e35e
    • Paul Eggert's avatar
      * s/sol2-6.h (HAVE_LIBKSTAT): Remove. · 63e47e07
      Paul Eggert authored
      Fixes: debbugs:11914
      63e47e07
    • Glenn Morris's avatar
      Trivial re-ordering and comment updating · e091e1bd
      Glenn Morris authored
      e091e1bd
    • Eli Zaretskii's avatar
    • Glenn Morris's avatar
      Move INTERRUPT_INPUT from src/s to configure · c43fb4c3
      Glenn Morris authored
      * configure.ac (INTERRUPT_INPUT): Move here from src/s.
      
      * src/s/darwin.h, src/s/gnu-linux.h, src/s/template.h:
      Move INTERRUPT_INPUT to configure.
      c43fb4c3
    • Michael Albinus's avatar
    • Juanma Barranquero's avatar
      nt/config.nt: Sync with autogen/config.in. · 116f7b54
      Juanma Barranquero authored
      (CLASH_DETECTION, DEFAULT_SOUND_DEVICE, DONT_REOPEN_PTY)
      (GNU_LIBRARY_PENDING_OUTPUT_COUNT, SIGNALS_VIA_CHARACTERS): New macros.
      (HAVE_MKDIR, HAVE_RENAME, HAVE_RMDIR, HAVE_STRERROR): Remove.
      116f7b54
    • Glenn Morris's avatar
      Auto-commit of generated files. · 7e723570
      Glenn Morris authored
      7e723570
    • Dmitry Antipov's avatar
      Simplify Vobarray checking in oblookup. · 2bce5643
      Dmitry Antipov authored
      * lread.c (oblookup): Simplify Vobarray checking.
      2bce5643
    • Glenn Morris's avatar
      Removed some unnecessary undef INTERRUPT_INPUTs from src/s · 4b575b3c
      Glenn Morris authored
      * src/s/bsd-common.h, src/s/cygwin.h: No need to undefine INTERRUPT_INPUT,
      since nothing has defined it on these platforms.
      4b575b3c
    • Dmitry Antipov's avatar
      Minor adjustments to interning code. · e8df9267
      Dmitry Antipov authored
      * lisp.h (intern, intern_c_string): Redefine as static inline
      wrappers for intern_1 and intern_c_string_1, respectively.
      (intern_1, intern_c_string_1): Rename prototypes.
      * lread.c (intern_1, intern_c_string_1): Simplify Vobarray checking.
      * font.c (font_intern_prop): Likewise.  Adjust comment.
      * w32font.c (intern_font_name): Likewise.
      e8df9267
    • Glenn Morris's avatar
      Move SIGNALS_VIA_CHARACTERS from src/s to configure · 09f4e3b0
      Glenn Morris authored
      * configure.ac (SIGNALS_VIA_CHARACTERS): Move here from src/s.
      
      * src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/gnu-linux.h:
      * src/s/irix6-5.h: Move SIGNALS_VIA_CHARACTERS to configure.
      09f4e3b0
    • Paul Eggert's avatar
      554fef51
    • Andreas Schwab's avatar
    • Andreas Schwab's avatar
      * coding.c (Fdefine_coding_system_internal): Use XCAR/XCDR instead · 34348bd4
      Andreas Schwab authored
      of Fcar/Fcdr if possible.
      * font.c (check_otf_features): Likewise.
      * fontset.c (Fnew_fontset): Likewise.
      * gnutls.c (Fgnutls_boot): Likewise.
      * minibuf.c (read_minibuf): Likewise.
      * msdos.c (IT_set_frame_parameters): Likewise.
      * xmenu.c (Fx_popup_dialog): Likewise.
      * w32menu.c (Fx_popup_dialog): Likewise.
      34348bd4
    • Glenn Morris's avatar
      All the cool platforms support CLASH_DETECTION... · 172bedef
      Glenn Morris authored
      * configure.ac (CLASH_DETECTION): Define unconditionally.
      Every platform using configure supports it.
      
      * src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
      * src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/template.h:
      * src/s/usg5-4-common.h: Move CLASH_DETECTION to configure.
      
      * etc/PROBLEMS: Recommend customizing create-lockfiles rather than
      recompiling with CLASH_DETECTION unset.
      172bedef
    • Paul Eggert's avatar
      Assume mkdir, rmdir. · bb352260
      Paul Eggert authored
      bb352260
    • Glenn Morris's avatar
      Remove src/s/gnu.h · 249685df
      Glenn Morris authored
      * configure.ac (opsysfile): Use bsd-common on gnu systems.
      
      * src/s/gnu.h: Remove file, which is now empty.
      249685df
    • Glenn Morris's avatar
      Move GNU_LIBRARY_PENDING_OUTPUT_COUNT from src/s to configure · c8add24e
      Glenn Morris authored
      * configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Move here from src/s.
      
      * src/s/gnu.h, src/s/gnu-linux.h:
      Move GNU_LIBRARY_PENDING_OUTPUT_COUNT to configure.
      c8add24e
    • John Wiegley's avatar
      alloc.c (mark_memory): Guard the "no_address_safety_analysis" function · b41253a3
      John Wiegley authored
      attribute, so we only use it if it exists in the compiler.
      b41253a3
    • Dmitry Antipov's avatar
      Avoid call to strlen in fast_c_string_match_ignore_case. · d923b542
      Dmitry Antipov authored
      * search.c (fast_c_string_match_ignore_case): Change to use
      length argument.  Adjust users accordingly.
      * lisp.h (fast_c_string_match_ignore_case): Adjust prototype.
      d923b542
    • Paul Eggert's avatar
      Assume rename. · 57054ddd
      Paul Eggert authored
      57054ddd
    • Paul Eggert's avatar
      Assume perror. · b747d3f7
      Paul Eggert authored
      b747d3f7
    • Paul Eggert's avatar
      Assume strerror. · 5ebbef1d
      Paul Eggert authored
      5ebbef1d
    • Chong Yidong's avatar
      Allow use of vc-root-* commands in *vc-log* buffers. · 9af57756
      Chong Yidong authored
      * lisp/vc/log-edit.el (log-edit-vc-backend): New variable.
      (log-edit): Doc fix.
      
      * lisp/vc/log-view.el (log-view-vc-fileset, log-view-vc-backend): Doc fix.
      
      * lisp/vc/vc-dispatcher.el (vc-log-edit): New args.  Use PARAMS
      argument of log-edit to set up all local variables.
      (vc-start-logentry): New optional arg specifying VC backend.
      
      * lisp/vc/vc.el (vc-checkin): Use it.
      (vc-deduce-fileset): Handle Log Edit buffers.
      (vc-diff): Make first argument optional too.
      9af57756
    • 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 8 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