Glenn Morris [Thu, 12 Jul 2012 07:43:05 +0000 (00:43 -0700)]
Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF from src/s to configure
* configure.ac (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Move here from src/s.
* src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h:
* src/s/sol2-6.h, src/s/unixware.h, src/s/usg5-4-common.h:
Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF to configure.
Glenn Morris [Thu, 12 Jul 2012 07:10:44 +0000 (00:10 -0700)]
Move PTY_OPEN from src/s to configure
* configure.ac (PTY_OPEN) Move here from src/s.
* src/s/cygwin.h, src/s/darwin.h, src/s/gnu-linux.h, src/s/irix6-5.h:
Move PTY_OPEN to configure.
Glenn Morris [Thu, 12 Jul 2012 06:34:40 +0000 (23:34 -0700)]
Move FIRST_PTY_LETTER, PTY_ITERATION from src/s to configure
* configure.ac (FIRST_PTY_LETTER PTY_ITERATION): Move here from src/s.
* 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/irix6-5.h, src/s/template.h:
* src/s/usg5-4-common.h: Move FIRST_PTY_LETTER, PTY_ITERATION to configure.
Dmitry Antipov [Thu, 12 Jul 2012 03:45:46 +0000 (07:45 +0400)]
Use empty_unibyte_string where applicable.
* keyboard.c (parse_tool_bar_item): Use empty_unibyte_string.
* lread.c (read1): Likewise.
* xsettings.c (syms_of_xsettings): Likewise.
Glenn Morris [Thu, 12 Jul 2012 02:14:29 +0000 (22:14 -0400)]
Move more things from src/s to configure
* configure.ac (BROKEN_GET_CURRENT_DIR_NAME, BROKEN_PTY_READ_AFTER_EAGAIN)
(G_SLICE_ALWAYS_MALLOC): Move here from src/s.
* src/s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN):
* src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC):
* src/s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Let configure set them.
Glenn Morris [Thu, 12 Jul 2012 01:49:28 +0000 (21:49 -0400)]
Move more stuff from src/s to configure
* configure.ac (PREFER_VSUSP, RUN_TIME_REMAP, SETPGRP_RELEASES_CTTY)
(TAB3, TABDLY, RUN_TIME_REMAP, XOS_NEEDS_TIME_H): Move here from src/s.
* src/s/bsd-common.h, src/s/darwin.h: Move TAB3 to configure.
* src/s/hpux10-20.h, src/s/sol2-6.h: Move XOS_NEEDS_TIME_H to configure.
* src/s/irix6-5.h (SETPGRP_RELEASES_CTTY, PREFER_VSUSP):
* src/s/hpux10-20.h (RUN_TIME_REMAP):
* src/s/bsd-common.h (TABDLY): Move to configure.
Glenn Morris [Thu, 12 Jul 2012 01:18:45 +0000 (21:18 -0400)]
Move some AIX defines from src/s to configure
* configure.ac (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY): Move here from src/s.
* src/s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
(BROKEN_SIGPOLL): Let configure set them.
* src/s/syssignal.h: Comment fix.
Glenn Morris [Thu, 12 Jul 2012 01:14:56 +0000 (21:14 -0400)]
Move NO_ABORT from src/s to configure
* configure.ac (NO_ABORT): Move here from src/s.
* src/s/darwin.h (NO_ABORT): Let configure set it.
Glenn Morris [Thu, 12 Jul 2012 01:11:37 +0000 (21:11 -0400)]
Move setting of NO_MATHERR for Darwin from src/s to configure
* configure.ac (NO_MATHERR): Unconditionally define for Darwin;
as src/s/darwin.h used to.
* src/s/darwin.h (NO_MATHERR): Let configure set it.
Glenn Morris [Thu, 12 Jul 2012 00:49:24 +0000 (20:49 -0400)]
Move NARROWPROTO from src/s to configure
* configure.ac (NARROWPROTO): Move here from src/s.
* src/s/bsd-common.h, src/s/cygwin.h, src/s/gnu-linux.h, src/s/irix6-5.h:
* src/s/template.h: Move NARROWPROTO to configure.
Glenn Morris [Wed, 11 Jul 2012 23:44:03 +0000 (19:44 -0400)]
Remove unneeded #define POSIX
* 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.
Glenn Morris [Wed, 11 Jul 2012 23:40:59 +0000 (19:40 -0400)]
All platforms using configure support HAVE_PTYS and HAVE_SOCKETS
* 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.
Stefan Monnier [Wed, 11 Jul 2012 23:13:41 +0000 (19:13 -0400)]
More CL cleanups and reduction of use of cl.el.
* 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.
Paul Eggert [Wed, 11 Jul 2012 22:44:07 +0000 (15:44 -0700)]
Port 'movemail' again to Solaris and similar hosts.
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.
Paul Eggert [Wed, 11 Jul 2012 20:40:18 +0000 (13:40 -0700)]
* s/sol2-6.h (HAVE_LIBKSTAT): Remove.
Fixes: debbugs:11914
Glenn Morris [Wed, 11 Jul 2012 18:39:44 +0000 (14:39 -0400)]
Trivial re-ordering and comment updating
Eli Zaretskii [Wed, 11 Jul 2012 17:42:24 +0000 (20:42 +0300)]
etc/NEWS: Move announcement of tty-top-frame out of non-free section.
Glenn Morris [Wed, 11 Jul 2012 17:04:19 +0000 (13:04 -0400)]
Move INTERRUPT_INPUT from src/s to configure
* 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.
Michael Albinus [Wed, 11 Jul 2012 12:03:19 +0000 (14:03 +0200)]
* net/ange-ftp.el (ange-ftp-cf1): Update the files cache.
Juanma Barranquero [Wed, 11 Jul 2012 11:44:31 +0000 (13:44 +0200)]
nt/config.nt: Sync with autogen/config.in.
(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.
Glenn Morris [Wed, 11 Jul 2012 10:17:32 +0000 (06:17 -0400)]
Auto-commit of generated files.
Dmitry Antipov [Wed, 11 Jul 2012 08:33:04 +0000 (12:33 +0400)]
Simplify Vobarray checking in oblookup.
* lread.c (oblookup): Simplify Vobarray checking.
Glenn Morris [Wed, 11 Jul 2012 07:38:33 +0000 (00:38 -0700)]
Removed some unnecessary undef INTERRUPT_INPUTs from src/s
* src/s/bsd-common.h, src/s/cygwin.h: No need to undefine INTERRUPT_INPUT,
since nothing has defined it on these platforms.
Dmitry Antipov [Wed, 11 Jul 2012 07:37:39 +0000 (11:37 +0400)]
Minor adjustments to interning code.
* 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.
Glenn Morris [Wed, 11 Jul 2012 07:28:27 +0000 (00:28 -0700)]
Move SIGNALS_VIA_CHARACTERS from src/s to configure
* 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.
Paul Eggert [Wed, 11 Jul 2012 07:23:59 +0000 (00:23 -0700)]
* configure.ac (tzset): Remove redundant check.
Andreas Schwab [Wed, 11 Jul 2012 07:20:14 +0000 (09:20 +0200)]
* gnutls.c (Fgnutls_boot): Properly parse :keylist argument.
Andreas Schwab [Wed, 11 Jul 2012 07:19:44 +0000 (09:19 +0200)]
* coding.c (Fdefine_coding_system_internal): Use XCAR/XCDR instead
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.
Glenn Morris [Wed, 11 Jul 2012 07:07:19 +0000 (00:07 -0700)]
All the cool platforms support CLASH_DETECTION...
* 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.
Paul Eggert [Wed, 11 Jul 2012 07:05:21 +0000 (00:05 -0700)]
Assume mkdir, rmdir.
Glenn Morris [Wed, 11 Jul 2012 06:55:30 +0000 (23:55 -0700)]
Remove src/s/gnu.h
* configure.ac (opsysfile): Use bsd-common on gnu systems.
* src/s/gnu.h: Remove file, which is now empty.
Glenn Morris [Wed, 11 Jul 2012 06:52:48 +0000 (23:52 -0700)]
Move GNU_LIBRARY_PENDING_OUTPUT_COUNT from src/s to configure
* 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.
John Wiegley [Wed, 11 Jul 2012 06:14:27 +0000 (01:14 -0500)]
alloc.c (mark_memory): Guard the "no_address_safety_analysis" function
attribute, so we only use it if it exists in the compiler.
Dmitry Antipov [Wed, 11 Jul 2012 06:14:19 +0000 (10:14 +0400)]
Avoid call to strlen in fast_c_string_match_ignore_case.
* 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.
Paul Eggert [Wed, 11 Jul 2012 06:09:09 +0000 (23:09 -0700)]
Assume rename.
Paul Eggert [Wed, 11 Jul 2012 05:57:03 +0000 (22:57 -0700)]
Assume perror.
Paul Eggert [Wed, 11 Jul 2012 05:44:06 +0000 (22:44 -0700)]
Assume strerror.
Chong Yidong [Wed, 11 Jul 2012 04:35:13 +0000 (12:35 +0800)]
Allow use of vc-root-* commands in *vc-log* buffers.
* 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.
Dmitry Antipov [Wed, 11 Jul 2012 04:31:53 +0000 (08:31 +0400)]
Avoid calls to strlen in font processing functions.
* 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.
Glenn Morris [Wed, 11 Jul 2012 02:29:13 +0000 (22:29 -0400)]
Move DONT_REOPEN_PTY from src/s to configure
* 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.
Glenn Morris [Wed, 11 Jul 2012 02:16:25 +0000 (22:16 -0400)]
Let configure set DEFAULT_SOUND_DEVICE
* 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.
Paul Eggert [Wed, 11 Jul 2012 00:01:21 +0000 (17:01 -0700)]
Remove "#define unix" that is no longer needed (Bug#11905).
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.
Paul Eggert [Tue, 10 Jul 2012 23:24:36 +0000 (16:24 -0700)]
EMACS_TIME simplification (Bug#11875).
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.
Paul Eggert [Tue, 10 Jul 2012 22:40:34 +0000 (15:40 -0700)]
* bytecode.c (targets): Suppress -Woverride-init warnings.
Glenn Morris [Tue, 10 Jul 2012 22:38:06 +0000 (18:38 -0400)]
NEWS copyedits
Paul Eggert [Tue, 10 Jul 2012 21:48:34 +0000 (14:48 -0700)]
Simplify by avoiding confusing use of strncpy etc.
Glenn Morris [Tue, 10 Jul 2012 19:04:14 +0000 (15:04 -0400)]
* dispnew.c (PENDING_OUTPUT_COUNT) [!__GNU_LIBRARY__]: Clarify fallback case.
Dmitry Antipov [Tue, 10 Jul 2012 16:53:26 +0000 (20:53 +0400)]
Use XCAR and XCDR instead of Fcar and Fcdr where possible.
* 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 [Tue, 10 Jul 2012 14:25:22 +0000 (08:25 -0600)]
Implement token threading
* 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.
Michael Albinus [Tue, 10 Jul 2012 12:16:40 +0000 (14:16 +0200)]
* eshell/esh-ext.el (eshell-remote-command): Remove remote part of
command, just in case. The function is not needed anymore.
(eshell-external-command): Do not call `eshell-remote-command'
Stefan Monnier [Tue, 10 Jul 2012 11:51:54 +0000 (07:51 -0400)]
Reduce use of (require 'cl).
* 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.
Juanma Barranquero [Tue, 10 Jul 2012 11:46:31 +0000 (13:46 +0200)]
nt/config.nt: Sync with autogen/config.in.
Stefan Monnier [Tue, 10 Jul 2012 11:27:27 +0000 (07:27 -0400)]
* lisp/emacs-lisp/gv.el (cond): Make it a valid place.
(if): Simplify slightly.
Glenn Morris [Tue, 10 Jul 2012 10:17:29 +0000 (06:17 -0400)]
Auto-commit of generated files.
Stefan Monnier [Tue, 10 Jul 2012 09:26:04 +0000 (05:26 -0400)]
* lisp/emacs-lisp/pcase.el (pcase): Accept self-quoting exps as "upatterns".
(pcase--self-quoting-p): New function.
(pcase--u1): Use it.
Dmitry Antipov [Tue, 10 Jul 2012 08:43:46 +0000 (12:43 +0400)]
Optimize pure C strings initialization.
* 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.
Dmitry Antipov [Tue, 10 Jul 2012 07:59:31 +0000 (11:59 +0400)]
Avoid calls to strlen in miscellaneous functions.
* 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 [Tue, 10 Jul 2012 07:37:17 +0000 (00:37 -0700)]
Move PENDING_OUTPUT_COUNT from src/s to configure
* 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 [Tue, 10 Jul 2012 07:15:05 +0000 (00:15 -0700)]
Move DATA_START, DATA_SEG_BITS from src/s to configure
* 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 [Tue, 10 Jul 2012 06:23:45 +0000 (10:23 +0400)]
Avoid calls to strlen in path processing functions.
* 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.
Glenn Morris [Tue, 10 Jul 2012 01:49:46 +0000 (21:49 -0400)]
* src/s/irix6-5.h (SETUP_SLAVE_PTY, PTY_NAME_SPRINTF): Drop ifdef guards.
We include usg5-4-common.h, which defines them both.
Glenn Morris [Tue, 10 Jul 2012 01:33:53 +0000 (21:33 -0400)]
* src/s/gnu.h: Don't include fcntl.h
(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 [Tue, 10 Jul 2012 01:25:07 +0000 (21:25 -0400)]
* src/nsterm.m (ns_exec_path): Fix typo in previous
Glenn Morris [Tue, 10 Jul 2012 01:11:08 +0000 (21:11 -0400)]
authors.el update for configure.ac renaming
* lisp/emacs-lisp/authors.el (authors-fixed-entries):
(authors-renamed-files-alist): Update for configure.in -> configure.ac.
Glenn Morris [Tue, 10 Jul 2012 01:04:28 +0000 (21:04 -0400)]
Stop ns builds setting the EMACSLOADPATH environment variable
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 [Tue, 10 Jul 2012 00:57:55 +0000 (20:57 -0400)]
Tiny NEWS edit
Glenn Morris [Mon, 9 Jul 2012 23:23:59 +0000 (19:23 -0400)]
* src/s/gnu.h (SIGNALS_VIA_CHARACTERS): No need to define it here
(the included bsd-common.h does so)
Andreas Schwab [Mon, 9 Jul 2012 22:30:01 +0000 (00:30 +0200)]
* ede/project-am.el: Fix typo.
Gnus developers [Mon, 9 Jul 2012 22:12:19 +0000 (22:12 +0000)]
gnus-sum.el: Merge changes made in Gnus master
2012-07-09 Tassilo Horn <tassilo@member.fsf.org>
* gnus-sum.el (gnus-summary-limit-to-author): Use default value instead
of initial input when reading the author to restrict the summary to.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-sum.el (gnus-select-newsgroup): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
Andreas Schwab [Mon, 9 Jul 2012 22:06:31 +0000 (00:06 +0200)]
* configure.ac (PNG_DEPSTRUCT): Define this instead of
PNG_DEPRECATED.
Glenn Morris [Mon, 9 Jul 2012 21:28:39 +0000 (17:28 -0400)]
Stop ns builds setting the EMACSPATH environment variable
Ref bugs 4309, 6401, etc
* src/nsterm.m (ns_exec_path): New function, split from ns_init_paths.
(ns_init_paths): Do not set EMACSPATH.
* src/nsterm.h (ns_exec_path): Add it.
* src/callproc.c (init_callproc_1, init_callproc) [HAVE_NS]: Use ns_exec_path.
Glenn Morris [Mon, 9 Jul 2012 21:14:12 +0000 (17:14 -0400)]
* src/nsterm.m, src/nsterm.h (ns_etc_directory): Fix type, empty return.
Paul Eggert [Mon, 9 Jul 2012 21:12:08 +0000 (14:12 -0700)]
* process.c (wait_reading_process_output): 'waitchannels' was unset
when read_kbd || !NILP (wait_for_cell); fix this.
Glenn Morris [Mon, 9 Jul 2012 19:56:14 +0000 (15:56 -0400)]
Fix typo in previous
Glenn Morris [Mon, 9 Jul 2012 19:55:23 +0000 (15:55 -0400)]
Apply GNU coding style to objc-mode as well as c-mode
Paul Eggert [Mon, 9 Jul 2012 16:38:45 +0000 (09:38 -0700)]
Add GCC-style 'const' attribute to functions that can use it.
Paul Eggert [Mon, 9 Jul 2012 16:06:19 +0000 (09:06 -0700)]
Minor improvements to make_formatted_string.
* alloc.c (make_formatted_string): Prefer int to ptrdiff_t
where int is good enough, as vsprintf returns an int.
* lisp.h (make_formatted_string): Add ATTRIBUTE_FORMAT_PRINTF.
Juanma Barranquero [Mon, 9 Jul 2012 15:37:43 +0000 (17:37 +0200)]
lib/makefile.w32-in: Rework dependencies.
(GNU_LIB, NT_INC, C_CTYPE_H, MS_W32_H, CONFIG_H, FILEMODE_H)
(FTOASTR_H, FTOASTR_C, GETOPT_INT_H, MD5_H, SHA1_H, SHA256_H)
(U64_H, SHA512_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/c-ctype.$(O), $(BLD)/c-strcasecmp.$(O))
($(BLD)/c-strncasecmp.$(O), $(BLD)/dtoastr.$(O))
($(BLD)/dtotimespec.$(O), $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O))
($(BLD)/gettime.$(O), $(BLD)/strftime.$(O), $(BLD)/time_r.$(O))
($(BLD)/timespec-add.$(O), $(BLD)/timespec-sub.$(O), $(BLD)/md5.$(O))
($(BLD)/sha1.$(O), $(BLD)/sha256.$(O), $(BLD)/sha512.$(O))
($(BLD)/filemode.$(O)): Update dependencies.
Juanma Barranquero [Mon, 9 Jul 2012 14:01:41 +0000 (16:01 +0200)]
lib-src/emacsclient.c (w32_execvp): Declare execvp to silence the compiler.
Juanma Barranquero [Mon, 9 Jul 2012 14:00:31 +0000 (16:00 +0200)]
lib-src/emacsclient.c: Adapt comments to GNU coding standards.
Juanma Barranquero [Mon, 9 Jul 2012 13:40:34 +0000 (15:40 +0200)]
nt/config.nt: Sync with autogen/config.in.
Dmitry Antipov [Mon, 9 Jul 2012 12:02:27 +0000 (16:02 +0400)]
Use make_formatted_string to avoid double length calculation.
* lisp.h (make_formatted_string): New prototype.
* alloc.c (make_formatted_string): New function.
* buffer.c (Fgenerate_new_buffer_name): Use it.
* dbus.c (syms_of_dbusbind): Likewise.
* editfns.c (Fcurrent_time_zone): Likewise.
* filelock.c (get_boot_time): Likewise.
* frame.c (make_terminal_frame, set_term_frame_name)
(x_report_frame_params): Likewise.
* image.c (gs_load): Likewise.
* minibuf.c (get_minibuffer): Likewise.
* msdos.c (dos_set_window_size): Likewise.
* process.c (make_process): Likewise.
* xdisp.c (ensure_echo_area_buffers): Likewise.
* xsettings.c (apply_xft_settings): Likewise.
Glenn Morris [Mon, 9 Jul 2012 10:17:37 +0000 (06:17 -0400)]
Auto-commit of generated files.
Paul Eggert [Mon, 9 Jul 2012 08:34:39 +0000 (01:34 -0700)]
Merge from gnulib.
Glenn Morris [Mon, 9 Jul 2012 07:07:24 +0000 (00:07 -0700)]
Stop ns builds polluting the environment with EMACSDATA, EMACSDOC
It's bad form for one part of a program to communicate with another
part by making persistent changes to the environment of all subsequent
child processes. For example, it can cause odd bugs when building
Emacs from within Emacs (eg bug#6401, maybe).
* nsterm.m (ns_etc_directory): New function, split from ns_init_paths.
(ns_init_paths): Do not set EMACSDATA, EMACSDOC.
* nsterm.h (ns_etc_directory): Add it.
* callproc.c [HAVE_NS]: Include nsterm.h.
(init_callproc_1, init_callproc) [HAVE_NS]: Use ns_etc_directory.
Paul Eggert [Mon, 9 Jul 2012 04:58:55 +0000 (21:58 -0700)]
Mention coordinates of recent Autoconf change, thanks to Stefano Lattarini.
Paul Eggert [Mon, 9 Jul 2012 04:56:32 +0000 (21:56 -0700)]
Merge from trunk.
Paul Eggert [Mon, 9 Jul 2012 04:52:49 +0000 (21:52 -0700)]
Rename configure.in to configure.ac.
Fixes: debbugs:11603
Juanma Barranquero [Mon, 9 Jul 2012 04:21:55 +0000 (06:21 +0200)]
lib-src/makefile.w32-in: Rework dependencies.
($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
(SYSTIME_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
($(BLD)/regex.$(O)): New dependency.
Dmitry Antipov [Mon, 9 Jul 2012 03:15:10 +0000 (07:15 +0400)]
Move marker debugging code under MARKER_DEBUG.
* marker.c (MARKER_DEBUG): Move marker debugging code under
#ifdef MARKER_DEBUG because byte_char_debug_check is too slow
for bootstrap with --enable-checking (~3x slowdown reported
by Juanma Barranquero <lekktu@gmail.com>).
(verify_bytepos): Move under #ifdef MARKER_DEBUG.
Katsumi Yamaoka [Mon, 9 Jul 2012 02:13:07 +0000 (02:13 +0000)]
mm-decode.el (mm-shr): Allow overriding charset by mm-charset-override-alist
Juanma Barranquero [Mon, 9 Jul 2012 00:59:38 +0000 (02:59 +0200)]
lib-src/makefile.w32-in (ALL): Add profile.exe.
(PROFILEOBJS): New macro.
($(BLD)/profile.exe): New target.
(install): Copy profile.exe.
($(BLD)/alloca.$(O), $(BLD)/tcp.$(O)): Remove, obsolete.
Paul Eggert [Sun, 8 Jul 2012 23:00:38 +0000 (16:00 -0700)]
* systime.h (EMACS_SUB_TIME): Clarify behavior with unsigned time_t.
See <http://bugs.gnu.org/11825#29>.
Paul Eggert [Sun, 8 Jul 2012 20:03:56 +0000 (13:03 -0700)]
Restore deprecation warnings, except for older libpng.
* configure.in (WARN_CFLAGS): Remove -Wno-deprecated-declarations.
(HAVE_LIBPNG_PNG_H): Don't bother checking for this if we have png.h.
(PNG_DEPRECATED): Define when compiling with older PNG versions.
Eli Zaretskii [Sun, 8 Jul 2012 16:38:43 +0000 (19:38 +0300)]
Cleanup changes following fix for bug #11832.
src/ xdisp.c (display_line): Add commentary about displaying
truncation glyphs on GUI frames.
(produce_special_glyphs): Move here from term.c.
src/term.c (produce_special_glyphs): Move to xdisp.c.
src/dispextern.h (produce_special_glyphs): Move prototype to xdisp.c
section.
Eli Zaretskii [Sun, 8 Jul 2012 15:49:39 +0000 (18:49 +0300)]
Fix bug #11813 with invalid font for buffer name on the modeline.
src/xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
has no font, use the frame's font.
Juanma Barranquero [Sun, 8 Jul 2012 14:58:24 +0000 (16:58 +0200)]
nt/config.nt (BROKEN_SA_RESTART): Fix comment.
Glenn Morris [Sun, 8 Jul 2012 10:18:44 +0000 (06:18 -0400)]
Auto-commit of generated files.
Chong Yidong [Sun, 8 Jul 2012 08:26:21 +0000 (16:26 +0800)]
Fix interaction of line-dragging with mouse-1-click-follows-link.
* lisp/mouse.el (mouse-drag-line): Rewrite the track-mouse loop.
Implement the mouse-1-click-follows-link handling properly.
* lisp/info.el (Info-link-keymap): Use follow-link mechanism for
header-line links.
Fixes: debbugs:374
Chong Yidong [Sun, 8 Jul 2012 06:09:21 +0000 (14:09 +0800)]
Do not steal primary selection on mark deactivation.
* lisp/simple.el (deactivate-mark): Do not set the primary selection
if another program has acquired it.
Fixes: debbugs:11772