Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
4a843dd7
Commit
4a843dd7
authored
Mar 26, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Plain Diff
Merge from mainline.
parents
ffa8c828
9af30bdf
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
388 additions
and
337 deletions
+388
-337
ChangeLog
ChangeLog
+10
-0
admin/CPP-DEFINES
admin/CPP-DEFINES
+0
-2
configure.in
configure.in
+72
-80
lib-src/ChangeLog
lib-src/ChangeLog
+4
-0
lib-src/emacsclient.c
lib-src/emacsclient.c
+3
-3
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/ansi-color.el
lisp/ansi-color.el
+16
-4
lisp/gnus/ChangeLog
lisp/gnus/ChangeLog
+36
-0
lisp/gnus/nnimap.el
lisp/gnus/nnimap.el
+23
-18
lisp/gnus/nntp.el
lisp/gnus/nntp.el
+18
-15
lisp/gnus/proto-stream.el
lisp/gnus/proto-stream.el
+155
-166
nt/ChangeLog
nt/ChangeLog
+4
-0
nt/config.nt
nt/config.nt
+0
-9
src/ChangeLog
src/ChangeLog
+14
-0
src/atimer.c
src/atimer.c
+2
-2
src/data.c
src/data.c
+1
-1
src/dispnew.c
src/dispnew.c
+1
-1
src/emacs.c
src/emacs.c
+2
-2
src/floatfns.c
src/floatfns.c
+3
-3
src/keyboard.c
src/keyboard.c
+6
-6
src/keyboard.h
src/keyboard.h
+1
-1
src/lisp.h
src/lisp.h
+1
-1
src/process.c
src/process.c
+4
-4
src/s/template.h
src/s/template.h
+0
-9
src/s/usg5-4-common.h
src/s/usg5-4-common.h
+0
-3
src/sysdep.c
src/sysdep.c
+2
-2
src/syssignal.h
src/syssignal.h
+1
-1
src/xdisp.c
src/xdisp.c
+0
-1
src/xterm.c
src/xterm.c
+3
-3
No files found.
ChangeLog
View file @
4a843dd7
2011-03-27 Glenn Morris <rgm@gnu.org>
* configure.in (AC_TYPE_SIGNAL): Remove obsolete macro.
(AH_BOTTOM): Do not define SIGTYPE.
2011-03-26 Glenn Morris <rgm@gnu.org>
* configure.in: Replace obsolete macros AC_TRY_COMPILE, AC_TRY_LINK,
AC_TRY_RUN with AC_COMPILE_IFELSE, AC_LINK_IFELSE, AC_RUN_IFELSE.
2011-03-25 Andreas Schwab <schwab@linux-m68k.org>
* autogen/update_autogen: Remove useless function keyword.
...
...
admin/CPP-DEFINES
View file @
4a843dd7
...
...
@@ -58,7 +58,6 @@ HAVE_TERMIOS
INTERRUPT_INPUT
NARROWPROTO
SEPCHAR
SIGTYPE
SYSTEM_TYPE
** Machine specific macros, decribed in detail in src/m/template.h
...
...
@@ -238,7 +237,6 @@ SIGNALS_VIA_CHARACTERS
SIGPIPE
SIGQUIT
SIGTRAP
SIGTYPE
SOLARIS2
STDC_HEADERS
SYSTEM_PURESIZE_EXTRA
...
...
configure.in
View file @
4a843dd7
...
...
@@ -664,11 +664,11 @@ if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
test x"$CPP" = x; then
AC_MSG_CHECKING([whether we are using a Sun C compiler])
AC_CACHE_VAL(emacs_cv_sunpro_c,
[AC_
TRY_LINK([
],
[#ifndef __SUNPRO_C
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([[]
],
[
[
#ifndef __SUNPRO_C
fail;
#endif
], emacs_cv_sunpro_c=yes, emacs_cv_sunpro_c=no)])
]
])]
, emacs_cv_sunpro_c=yes, emacs_cv_sunpro_c=no)])
AC_MSG_RESULT($emacs_cv_sunpro_c)
if test x"$emacs_cv_sunpro_c" = xyes; then
...
...
@@ -703,7 +703,7 @@ fi
AC_MSG_CHECKING([whether gcc understands -Wdeclaration-after-statement])
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
AC_
TRY_COMPILE([], [], has_option=yes, has_option=no,
)
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], has_option=yes, has_option=no
)
if test $has_option = yes; then
C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
fi
...
...
@@ -717,7 +717,7 @@ unset SAVE_CFLAGS
AC_MSG_CHECKING([whether gcc understands -Wold-style-definition])
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wold-style-definition"
AC_
TRY_COMPILE([], [], has_option=yes, has_option=no,
)
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], has_option=yes, has_option=no
)
if test $has_option = yes; then
C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
fi
...
...
@@ -730,7 +730,7 @@ unset SAVE_CFLAGS
AC_MSG_CHECKING([whether gcc understands -Wimplicit-function-declaration])
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wimplicit-function-declaration"
AC_
TRY_COMPILE([], [], has_option=yes, has_option=no,
)
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], has_option=yes, has_option=no
)
if test $has_option = yes; then
C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
fi
...
...
@@ -1137,12 +1137,12 @@ if test "${with_sound}" != "no"; then
SAVE_LDFLAGS="$LDFLAGS"
CFLAGS="$ALSA_CFLAGS $CFLAGS"
LDFLAGS="$ALSA_LIBS $LDFLAGS"
AC_
TRY_COMPILE([#include <asoundlib.h>], [snd_lib_error_set_handler (0);
],
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <asoundlib.h>]], [[snd_lib_error_set_handler (0);]])
],
emacs_alsa_normal=yes,
emacs_alsa_normal=no)
if test "$emacs_alsa_normal" != yes; then
AC_
TRY_COMPILE([#include <alsa/asoundlib.h>
],
[
snd_lib_error_set_handler (0);
],
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <alsa/asoundlib.h>]
],
[
[snd_lib_error_set_handler (0);]])
],
emacs_alsa_subdir=yes,
emacs_alsa_subdir=no)
if test "$emacs_alsa_subdir" != yes; then
...
...
@@ -1181,7 +1181,7 @@ AC_CHECK_HEADERS(sys/select.h sys/time.h unistd.h utime.h \
sys/utsname.h pwd.h utmp.h dirent.h util.h)
AC_MSG_CHECKING(if personality LINUX32 can be set)
AC_
TRY_COMPILE([#include <sys/personality.h>], [personality (PER_LINUX32
)],
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/personality.h>]], [[personality (PER_LINUX32)]]
)],
emacs_cv_personality_linux32=yes,
emacs_cv_personality_linux32=no)
AC_MSG_RESULT($emacs_cv_personality_linux32)
...
...
@@ -1209,7 +1209,7 @@ AC_HEADER_SYS_WAIT
dnl Some systems have utime.h but don't declare the struct anyplace.
AC_CACHE_CHECK(for struct utimbuf, emacs_cv_struct_utimbuf,
AC_
TRY_COMPILE(
[#ifdef TIME_WITH_SYS_TIME
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([
[#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
...
...
@@ -1221,18 +1221,15 @@ AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
#endif
#ifdef HAVE_UTIME_H
#include <utime.h>
#endif]
, [static struct utimbuf x; x.actime = x.modtime;
],
#endif]
], [[static struct utimbuf x; x.actime = x.modtime;]])
],
emacs_cv_struct_utimbuf=yes, emacs_cv_struct_utimbuf=no))
if test $emacs_cv_struct_utimbuf = yes; then
AC_DEFINE(HAVE_STRUCT_UTIMBUF, 1, [Define to 1 if `struct utimbuf' is declared by <utime.h>.])
fi
dnl checks for typedefs
AC_TYPE_SIGNAL
dnl Check for speed_t typedef.
AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t,
[AC_
TRY_COMPILE([#include <termios.h>], [speed_t x = 1;
],
[AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <termios.h>]], [[speed_t x = 1;]])
],
emacs_cv_speed_t=yes, emacs_cv_speed_t=no)])
if test $emacs_cv_speed_t = yes; then
AC_DEFINE(HAVE_SPEED_T, 1,
...
...
@@ -1240,7 +1237,7 @@ if test $emacs_cv_speed_t = yes; then
fi
AC_CACHE_CHECK(for struct timeval, emacs_cv_struct_timeval,
AC_
TRY_COMPILE(
[#ifdef TIME_WITH_SYS_TIME
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([
[#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
...
...
@@ -1249,7 +1246,7 @@ AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME
#else
#include <time.h>
#endif
#endif]
, [static struct timeval x; x.tv_sec = x.tv_usec;
],
#endif]
], [[static struct timeval x; x.tv_sec = x.tv_usec;]])
],
emacs_cv_struct_timeval=yes, emacs_cv_struct_timeval=no))
HAVE_TIMEVAL=$emacs_cv_struct_timeval
if test $emacs_cv_struct_timeval = yes; then
...
...
@@ -1257,8 +1254,8 @@ if test $emacs_cv_struct_timeval = yes; then
fi
AC_CACHE_CHECK(for struct exception, emacs_cv_struct_exception,
AC_
TRY_COMPILE([#include <math.h>
],
[
static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
],
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]
],
[
[static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;]])
],
emacs_cv_struct_exception=yes, emacs_cv_struct_exception=no))
HAVE_EXCEPTION=$emacs_cv_struct_exception
if test $emacs_cv_struct_exception != yes; then
...
...
@@ -1301,7 +1298,7 @@ dnl This isn't useful because we can't turn on use of `inline' unless
dnl the compiler groks `extern inline'.
dnl AC_C_INLINE
AC_CACHE_CHECK([for void * support], emacs_cv_void_star,
[AC_
TRY_COMPILE(, [void * foo;
],
[AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([], [[void * foo;]])
],
emacs_cv_void_star=yes, emacs_cv_void_star=no)])
if test $emacs_cv_void_star = yes; then
AC_DEFINE(POINTER_TYPE, void)
...
...
@@ -1349,7 +1346,7 @@ if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
AC_MSG_CHECKING([whether gcc understands -MMD -MF])
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -MMD -MF deps.d"
AC_
TRY_COMPILE([], [
], , ac_enable_autodepend=no)
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])
], , ac_enable_autodepend=no)
CFLAGS="$SAVE_CFLAGS"
test -f deps.d || ac_enable_autodepend=no
rm -rf deps.d
...
...
@@ -1582,7 +1579,7 @@ AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no)
AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
AC_CACHE_CHECK(whether __after_morecore_hook exists,
emacs_cv_var___after_morecore_hook,
[AC_
TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0
],
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([[extern void (* __after_morecore_hook)();]],[[__after_morecore_hook = 0]])
],
emacs_cv_var___after_morecore_hook=yes,
emacs_cv_var___after_morecore_hook=no)])
if test $emacs_cv_var___after_morecore_hook = no; then
...
...
@@ -1680,7 +1677,7 @@ aix*)
esac
LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
AC_
TRY_LINK([], [int i;
], [], [gdb_cv_bigtoc=])
AC_
LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int i;]])
], [], [gdb_cv_bigtoc=])
])
;;
esac
...
...
@@ -1710,8 +1707,8 @@ if test "${HAVE_X11}" = "yes"; then
if test "${opsys}" = "gnu-linux"; then
AC_MSG_CHECKING(whether X on GNU/Linux needs -b to link)
AC_
TRY_LINK([
],
[
XOpenDisplay ("foo");
],
AC_
LINK_IFELSE([AC_LANG_PROGRAM([[]
],
[
[XOpenDisplay ("foo");]])
],
[xlinux_first_failure=no],
[xlinux_first_failure=yes])
if test "${xlinux_first_failure}" = "yes"; then
...
...
@@ -1723,8 +1720,8 @@ if test "${HAVE_X11}" = "yes"; then
C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
LIBS="$LIBS -b i486-linuxaout"
AC_
TRY_LINK([
],
[
XOpenDisplay ("foo");
],
AC_
LINK_IFELSE([AC_LANG_PROGRAM([[]
],
[
[XOpenDisplay ("foo");]])
],
[xlinux_second_failure=no],
[xlinux_second_failure=yes])
if test "${xlinux_second_failure}" = "yes"; then
...
...
@@ -1746,9 +1743,9 @@ if test "${HAVE_X11}" = "yes"; then
# Reportedly, some broken Solaris systems have XKBlib.h but are missing
# header files included from there.
AC_MSG_CHECKING(for Xkb)
AC_
TRY_LINK(
[#include <X11/Xlib.h>
#include <X11/XKBlib.h>],
[
XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
],
AC_
LINK_IFELSE([AC_LANG_PROGRAM([
[#include <X11/Xlib.h>
#include <X11/XKBlib.h>]
]
,
[
[XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);]])
],
emacs_xkb=yes, emacs_xkb=no)
AC_MSG_RESULT($emacs_xkb)
if test $emacs_xkb = yes; then
...
...
@@ -1762,11 +1759,11 @@ fi
if test "${window_system}" = "x11"; then
AC_MSG_CHECKING(X11 version 6)
AC_CACHE_VAL(emacs_cv_x11_version_6,
[AC_
TRY_LINK([#include <X11/Xlib.h>
],
[#if XlibSpecificationRelease < 6
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]
],
[
[
#if XlibSpecificationRelease < 6
fail;
#endif
], emacs_cv_x11_version_6=yes, emacs_cv_x11_version_6=no)])
]
])]
, emacs_cv_x11_version_6=yes, emacs_cv_x11_version_6=no)])
if test $emacs_cv_x11_version_6 = yes; then
AC_MSG_RESULT(6 or newer)
AC_DEFINE(HAVE_X11R6, 1,
...
...
@@ -1989,10 +1986,10 @@ if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
if test "$with_xaw3d" != no; then
AC_MSG_CHECKING(for xaw3d)
AC_CACHE_VAL(emacs_cv_xaw3d,
[AC_
TRY_LINK(
[
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([
[
#include <X11/Intrinsic.h>
#include <X11/Xaw3d/Simple.h>],
[],
#include <X11/Xaw3d/Simple.h>]
]
,
[
[]])
],
[AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb,
emacs_cv_xaw3d=yes, emacs_cv_xaw3d=no)],
emacs_cv_xaw3d=no)])
...
...
@@ -2010,10 +2007,10 @@ if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
AC_MSG_RESULT(no)
AC_MSG_CHECKING(for libXaw)
AC_CACHE_VAL(emacs_cv_xaw,
[AC_
TRY_LINK(
[
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([
[
#include <X11/Intrinsic.h>
#include <X11/Xaw/Simple.h>],
[],
#include <X11/Xaw/Simple.h>]
]
,
[
[]])
],
emacs_cv_xaw=yes,
emacs_cv_xaw=no)])
if test $emacs_cv_xaw = yes; then
...
...
@@ -2035,11 +2032,11 @@ LIBXTR6=
if test "${USE_X_TOOLKIT}" != "none"; then
AC_MSG_CHECKING(X11 toolkit version)
AC_CACHE_VAL(emacs_cv_x11_toolkit_version_6,
[AC_
TRY_LINK([#include <X11/Intrinsic.h>
],
[#if XtSpecificationRelease < 6
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([[#include <X11/Intrinsic.h>]
],
[
[
#if XtSpecificationRelease < 6
fail;
#endif
], emacs_cv_x11_toolkit_version_6=yes, emacs_cv_x11_toolkit_version_6=no)])
]
])]
, emacs_cv_x11_toolkit_version_6=yes, emacs_cv_x11_toolkit_version_6=no)])
HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
if test $emacs_cv_x11_toolkit_version_6 = yes; then
AC_MSG_RESULT(6 or newer)
...
...
@@ -2088,12 +2085,12 @@ fi
LIBXP=
if test "${USE_X_TOOLKIT}" = "MOTIF"; then
AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1,
[AC_
TRY_COMPILE([#include <Xm/Xm.h>
],
[#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
[AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Xm/Xm.h>]
],
[
[
#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
int x = 5;
#else
Motif version prior to 2.1.
#endif],
#endif]
])]
,
emacs_cv_motif_version_2_1=yes, emacs_cv_motif_version_2_1=no)])
if test $emacs_cv_motif_version_2_1 = yes; then
AC_CHECK_LIB(Xp, XpCreateContext, LIBXP=-lXp)
...
...
@@ -2106,8 +2103,8 @@ Motif version prior to 2.1.
OLD_CFLAGS=$CFLAGS
CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
[AC_
TRY_COMPILE([#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
],
[
int x = 5;
],
[AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>]
],
[
[int x = 5;]])
],
emacs_cv_lesstif=yes, emacs_cv_lesstif=no)])
if test $emacs_cv_lesstif = yes; then
# Make sure this -I option remains in CPPFLAGS after it is set
...
...
@@ -2151,10 +2148,10 @@ if test "${with_toolkit_scroll_bars}" != "no"; then
fi
dnl See if XIM is available.
AC_
TRY_COMPILE(
[
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([
[
#include <X11/Xlib.h>
#include <X11/Xresource.h>],
[
XIMProc callback;
],
#include <X11/Xresource.h>]
]
,
[
[XIMProc callback;]])
],
[HAVE_XIM=yes
AC_DEFINE(HAVE_XIM, 1, [Define to 1 if XIM is available])],
HAVE_XIM=no)
...
...
@@ -2172,10 +2169,10 @@ if test "${HAVE_XIM}" != "no"; then
if test "$GCC" = yes; then
CFLAGS="$CFLAGS --pedantic-errors"
fi
AC_
TRY_COMPILE(
[
AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([
[
#include <X11/Xlib.h>
#include <X11/Xresource.h>],
[Display *display;
#include <X11/Xresource.h>]
]
,
[
[
Display *display;
XrmDatabase db;
char *res_name;
char *res_class;
...
...
@@ -2188,7 +2185,7 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
char*, XIMProc, XPointer*);
#endif
(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
client_data);],
client_data);]
])]
,
[emacs_cv_arg6_star=yes])
AH_TEMPLATE(XRegisterIMInstantiateCallback_arg6,
[Define to the type of the 6th arg of XRegisterIMInstantiateCallback,
...
...
@@ -2540,8 +2537,8 @@ AC_SUBST(LIBXML2_CFLAGS)
# If netdb.h doesn't declare h_errno, we must declare it by hand.
AC_CACHE_CHECK(whether netdb declares h_errno,
emacs_cv_netdb_declares_h_errno,
[AC_
TRY_LINK([#include <netdb.h>
],
[
return h_errno;
],
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]
],
[
[return h_errno;]])
],
emacs_cv_netdb_declares_h_errno=yes, emacs_cv_netdb_declares_h_errno=no)])
if test $emacs_cv_netdb_declares_h_errno = yes; then
AC_DEFINE(HAVE_H_ERRNO, 1, [Define to 1 if netdb.h declares h_errno.])
...
...
@@ -2722,11 +2719,11 @@ case "$opsys" in
freebsd)
AC_MSG_CHECKING([whether FreeBSD is new enough to use terminfo])
AC_CACHE_VAL(emacs_cv_freebsd_terminfo,
[AC_
TRY_LINK([#include <osreldate.h>
],
[#if __FreeBSD_version < 400000
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([[#include <osreldate.h>]
],
[
[
#if __FreeBSD_version < 400000
fail;
#endif
], emacs_cv_freebsd_terminfo=yes, emacs_cv_freebsd_terminfo=no)])
]
])]
, emacs_cv_freebsd_terminfo=yes, emacs_cv_freebsd_terminfo=no)])
AC_MSG_RESULT($emacs_cv_freebsd_terminfo)
...
...
@@ -2776,19 +2773,19 @@ AC_SUBST(TERMCAP_OBJ)
# Do we have res_init, for detecting changes in /etc/resolv.conf?
resolv=no
AC_
TRY_LINK(
[#include <netinet/in.h>
AC_
LINK_IFELSE([AC_LANG_PROGRAM([
[#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>],
[
return res_init();
],
#include <resolv.h>]
]
,
[
[return res_init();]])
],
have_res_init=yes, have_res_init=no)
if test "$have_res_init" = no; then
OLIBS="$LIBS"
LIBS="$LIBS -lresolv"
AC_MSG_CHECKING(for res_init with -lresolv)
AC_
TRY_LINK(
[#include <netinet/in.h>
AC_
LINK_IFELSE([AC_LANG_PROGRAM([
[#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>],
[
return res_init();
],
#include <resolv.h>]
]
,
[
[return res_init();]])
],
have_res_init=yes, have_res_init=no)
AC_MSG_RESULT($have_res_init)
if test "$have_res_init" = yes ; then
...
...
@@ -2924,7 +2921,7 @@ AC_CHECK_LIB(intl, dgettext)
AC_MSG_CHECKING(whether localtime caches TZ)
AC_CACHE_VAL(emacs_cv_localtime_cache,
[if test x$ac_cv_func_tzset = xyes; then
AC_
TRY_RUN(
[#include <time.h>
AC_
RUN_IFELSE([AC_LANG_SOURCE([
[#include <time.h>
char TZ_GMT0[] = "TZ=GMT0";
char TZ_PST8[] = "TZ=PST8";
main()
...
...
@@ -2944,7 +2941,7 @@ main()
if (localtime (&now)->tm_hour != hour_unset)
exit (1);
exit (0);
}], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
}]
])]
, emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
[# If we have tzset, assume the worst when cross-compiling.
emacs_cv_localtime_cache=yes])
else
...
...
@@ -2963,7 +2960,7 @@ if test "x$HAVE_TIMEVAL" = xyes; then
if test $ac_cv_func_gettimeofday = yes; then
AC_CACHE_CHECK(whether gettimeofday can accept two arguments,
emacs_cv_gettimeofday_two_arguments,
[AC_
TRY_COMPILE(
[
[AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([
[
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
...
...
@@ -2973,9 +2970,9 @@ if test "x$HAVE_TIMEVAL" = xyes; then
#else
#include <time.h>
#endif
#endif],
[struct timeval time;
gettimeofday (&time, 0);],
#endif]
]
,
[
[
struct timeval time;
gettimeofday (&time, 0);]
])]
,
emacs_cv_gettimeofday_two_arguments=yes,
emacs_cv_gettimeofday_two_arguments=no)])
if test $emacs_cv_gettimeofday_two_arguments = no; then
...
...
@@ -3016,8 +3013,8 @@ AC_FUNC_FORK
dnl Adapted from Haible's version.
AC_CACHE_CHECK([for nl_langinfo and CODESET], emacs_cv_langinfo_codeset,
[AC_
TRY_LINK([#include <langinfo.h>
],
[
char* cs = nl_langinfo(CODESET);
],
[AC_
LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]
],
[
[char* cs = nl_langinfo(CODESET);]])
],
emacs_cv_langinfo_codeset=yes,
emacs_cv_langinfo_codeset=no)
])
...
...
@@ -3031,7 +3028,7 @@ AC_CHECK_TYPES(size_t)
AC_TYPE_MBSTATE_T
AC_CACHE_CHECK([for C restricted array declarations], emacs_cv_c_restrict_arr,
[AC_
TRY_COMPILE([void fred (int x[__restrict]);], [
],
[AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[void fred (int x[__restrict]);]], [[]])
],
emacs_cv_c_restrict_arr=yes, emacs_cv_c_restrict_arr=no)])
if test "$emacs_cv_c_restrict_arr" = yes; then
AC_DEFINE(__restrict_arr, __restrict,
...
...
@@ -3493,11 +3490,6 @@ AH_BOTTOM([
# define SYSTEM_PURESIZE_EXTRA 30000
#endif
/* SIGTYPE is the macro we actually use. */
#ifndef SIGTYPE
#define SIGTYPE RETSIGTYPE
#endif
#ifdef emacs /* Don't do this for lib-src. */
/* Tell regex.c to use a type compatible with Emacs. */
#define RE_TRANSLATE_TYPE Lisp_Object
...
...
lib-src/ChangeLog
View file @
4a843dd7
2011-03-27 Glenn Morris <rgm@gnu.org>
* emacsclient.c: Replace SIGTYPE with void.
2011-03-23 Juanma Barranquero <lekktu@gmail.com>
* ntlib.c: Include <ctype.h>.
...
...
lib-src/emacsclient.c
View file @
4a843dd7
...
...
@@ -1116,7 +1116,7 @@ socket_status (char *name)
/* A signal handler that passes the signal to the Emacs process.
Useful for SIGWINCH. */
static
SIGTYPE
static
void
pass_signal_to_emacs
(
int
signalnum
)
{
int
old_errno
=
errno
;
...
...
@@ -1131,7 +1131,7 @@ pass_signal_to_emacs (int signalnum)
/* Signal handler for SIGCONT; notify the Emacs process that it can
now resume our tty frame. */
static
SIGTYPE
static
void
handle_sigcont
(
int
signalnum
)
{
int
old_errno
=
errno
;
...
...
@@ -1157,7 +1157,7 @@ handle_sigcont (int signalnum)
reality, we may get a SIGTSTP on C-z. Handling this signal and
notifying Emacs about it should get things under control again. */
static
SIGTYPE
static
void
handle_sigtstp
(
int
signalnum
)
{
int
old_errno
=
errno
;
...
...
lisp/ChangeLog
View file @
4a843dd7
2011-03-27 Leo Liu <sdl.web@gmail.com>
* ansi-color.el (ansi-color-names-vector): Allow cons cell value
for foreground and background colors.
(ansi-color-make-color-map): Adapt.
2011-03-25 Leo Liu <sdl.web@gmail.com>
* midnight.el (midnight-time-float): Remove. Note it calculates
...
...
lisp/ansi-color.el
View file @
4a843dd7
...
...
@@ -132,8 +132,18 @@ Parameter Color
37 47 white
This vector is used by `ansi-color-make-color-map' to create a color
map. This color map is stored in the variable `ansi-color-map'."
:type
'
(
vector
string
string
string
string
string
string
string
string
)
map. This color map is stored in the variable `ansi-color-map'.
Each element may also be a cons cell where the car and cdr specify the
foreground and background colors, respectively."
:type
'
(
vector
(
choice
color
(
cons
color
color
))
(
choice
color
(
cons
color
color
))
(
choice
color
(
cons
color
color
))
(
choice
color
(
cons
color
color
))
(
choice
color
(
cons
color
color
))
(
choice
color
(
cons
color
color
))
(
choice
color
(
cons
color
color
))
(
choice
color
(
cons
color
color
)))
:set
'ansi-color-map-update
:initialize
'custom-initialize-default
:group
'ansi-colors
)
...
...
@@ -528,7 +538,8 @@ The face definitions are based upon the variables
(
mapc
(
function
(
lambda
(
e
)
(
aset
ansi-color-map
index
(
ansi-color-make-face
'foreground
e
))
(
ansi-color-make-face
'foreground
(
if
(
consp
e
)
(
car
e
)
e
)))
(
setq
index
(
1+
index
))
))
ansi-color-names-vector
)
;; background attributes
...
...
@@ -536,7 +547,8 @@ The face definitions are based upon the variables
(
mapc
(
function
(
lambda
(
e
)
(
aset
ansi-color-map
index
(
ansi-color-make-face
'background
e
))
(
ansi-color-make-face
'background
(
if
(
consp
e
)
(
cdr
e
)
e
)))
(
setq
index
(
1+
index
))
))
ansi-color-names-vector
)
ansi-color-map
))
...
...
lisp/gnus/ChangeLog
View file @
4a843dd7
2011-03-26 Chong Yidong <cyd@stupidchicken.com>
* proto-stream.el: Changes preparatory to merging open-protocol-stream
with open-network-stream.
(proto-stream-always-use-starttls): Option removed.
(open-protocol-stream): Return a process object by default. Provide a
new parameter :return-list specifying a list-type return value, which
now has the form (PROP . PLIST) instead of a fixed-length list. Change
:type `network' to `try-starttls', and `network-only' to `default'.
Make `default' the default, for compatibility with open-network-stream.
Handle the no-parameter case exactly as open-network-stream, with no
additional stream processing. Search plists using plist-get.
Explicitly add :end-of-commend parameter if it is missing.
(proto-stream-open-default): Renamed from
proto-stream-open-network-only. Return 'default as the type.
(proto-stream-open-starttls): Rename from proto-stream-open-network.
Use plist-get. Don't return `tls' as the type if STARTTLS negotiation
failed. Always return a list with a (possibly dead) process as the
first element, for compatibility with open-network-stream.
(proto-stream-open-tls): Use plist-get. Always return a list.
(proto-stream-open-shell): Return `default' as connection type.
(proto-stream-capability-open): Use plist-get.
(proto-stream-eoc): Function deleted.
* nnimap.el (nnimap-stream, nnimap-open-connection)
(nnimap-open-connection-1): Handle renaming of :type parameter for
open-protocol-stream.
(nnimap-open-connection-1): Pass a :return-list parameter
open-protocol-stream to obtain a list return value. Parse this list
using plist-get.
* nntp.el (nntp-open-connection): Handle renaming of :type parameter
for open-protocol-stream. Accept open-protocol-stream return value
that is a subprocess object instead of a list. Handle the case of a
dead returned process.
2011-03-25 Teodor Zlatanov <tzz@lifelogs.com>
* mm-util.el (mm-handle-filename): Move to mm-decode.el (bug#8330).
...
...
lisp/gnus/nnimap.el
View file @
4a843dd7
...
...
@@ -62,9 +62,9 @@ it will default to `imap'.")
(
defvoo
nnimap-stream
'undecided
"How nnimap will talk to the IMAP server.
Values are `ssl', `
network', `network-only
, `starttls' or
Values are `ssl', `
default', `try-starttls'
, `starttls' or
`shell'. The default is to try `ssl' first, and then
`
network
'."
)
`
try-starttls
'."
)
(
defvoo
nnimap-shell-program
(
if
(
boundp
'imap-shell-program
)
(
if
(
listp
imap-shell-program
)
...
...
@@ -319,7 +319,7 @@ textual parts.")
(
setq
nnimap-stream
'ssl
))
(
let
((
stream
(
if
(
eq
nnimap-stream
'undecided
)
(
loop
for
type
in
'
(
ssl
network
)
(
loop
for
type
in
'
(
ssl
try-starttls
)
for
stream
=
(
let
((
nnimap-stream
type
))
(
nnimap-open-connection-1
buffer
))
while
(
eq
stream
'no-connect
)
...
...
@@ -339,9 +339,7 @@ textual parts.")
(
port
nil
)
(
ports
(
cond
((
or
(
eq
nnimap-stream
'network
)
(
eq
nnimap-stream
'network-only
)
(
eq
nnimap-stream
'starttls
))
((
memq
nnimap-stream
'
(
try-starttls
default
starttls
))
(
nnheader-message
7
"Opening connection to %s..."
nnimap-address
)
'
(
"imap"
"143"
))
...
...
@@ -355,21 +353,28 @@ textual parts.")
'
(
"imaps"
"imap"
"993"
"143"
))
(
t
(
error
"Unknown stream type: %s"
nnimap-stream
))))
(
proto-stream-always-use-starttls
t
)
login-result
credentials
)
(
when
nnimap-server-port
(
push
nnimap-server-port
ports
))
(
destructuring-bind
(
stream
greeting
capabilities
stream-type
)
(
open-protocol-stream
"*nnimap*"
(
current-buffer
)
nnimap-address
(
car
ports
)
:type
nnimap-stream
:shell-command
nnimap-shell-program
:capability-command
"1 CAPABILITY\r\n"
:success
" OK "
:starttls-function
(
lambda
(
capabilities
)
(
when
(
gnus-string-match-p
"STARTTLS"
capabilities
)
"1 STARTTLS\r\n"
)))
(
let*
((
stream-list
(
open-protocol-stream
"*nnimap*"
(
current-buffer
)
nnimap-address
(
car
ports
)
:type
nnimap-stream
:return-list
t
:shell-command
nnimap-shell-program
:capability-command
"1 CAPABILITY\r\n"
:success
" OK "
:starttls-function
(
lambda
(
capabilities
)
(
when
(
gnus-string-match-p
"STARTTLS"
capabilities
)
"1 STARTTLS\r\n"
))))
(
stream
(
car
stream-list
))
(
props
(
cdr
stream-list
))
(
greeting
(
plist-get
props
:greeting
))
(
capabilities
(
plist-get
props
:capabilities
))
(
stream-type
(
plist-get
props
:type
)))
(
when
(
and
stream
(
not
(
memq
(
process-status
stream
)
'
(
open
run
))))
(
setq
stream
nil
))
(
setf
(
nnimap-process
nnimap-object
)
stream
)
(
setf
(
nnimap-stream-type
nnimap-object
)
stream-type
)
(
if
(
not
stream
)
...
...
lisp/gnus/nntp.el
View file @
4a843dd7
...
...
@@ -1339,26 +1339,26 @@ password contained in '~/.nntp-authinfo'."
(
condition-case
err
(
let
((
coding-system-for-read
nntp-coding-system-for-read
)
(
coding-system-for-write
nntp-coding-system-for-write
)
(
map
'
((
nntp-open-network-stream
network
)
(
network-only
network-only
)
(
map
'
((
nntp-open-network-stream
try-starttls
)
(
network-only
default
)
(
nntp-open-ssl-stream
tls
)
(
nntp-open-tls-stream
tls
))))
(
if
(
assoc
nntp-open-connection-function
map
)
(
car
(
open-protocol-stream
"nntpd"
pbuffer
nntp-address
nntp-port-number
:type
(
cadr
(
assoc
nntp-open-connection-function
map
)
)
:end-of-command
"^\\([2345]\\|[.]\\).*\n"
:capability-command
"CAPABILITIES\r\n"
:success
"^3"
:starttls-function
(
lambda
(
capabilities
)