sxemacs
8 years agoLadies and Gentlement, FFmpeg is back!
Steve Youngs [Fri, 1 Jan 2016 00:19:46 +0000 (10:19 +1000)]
Ladies and Gentlement, FFmpeg is back!

* merges:
  Final set of changes for a working ffmpeg.
  More update to newer ffmpeg API
  Use new virtual IO api
  Cleanup global video state.
  Additional usage of the new api
  Update ffmpeg codec and media constants
  Fix metadata usage
  Sync up FFmpeg -- autoconf

8 years agoFinal set of changes for a working ffmpeg.
Nelson Ferreira [Thu, 31 Dec 2015 19:39:54 +0000 (14:39 -0500)]
Final set of changes for a working ffmpeg.

There are a couple of edges to polish but "works for me" now.

* src/media/media-ffmpeg.c (media_ffmpeg_read): Use
avcodec_decode_audio3 if available. More work is needed to use
avcodec_decod_audio4 because it uses frames which would need to
then be copied to the output buffer.
(my_get_buffer): Use avcodec_default_get_buffer2.
(my_release_buffer): No longer needed.
(stream_component_open): Properly set the thread count and use
avcodec_open2. Set get_buffer2 to my_get_buffer since we
are using the new interface.
(media_ffmpeg_available_formats): Use av_iformat_next.
(stream_open): Defer setting codec options to a later better
understanding of ffmpeg (keep #if 0 the old).
(new_media_ffmpeg_open): Use only the most recent AVIOContext access
method to set eof_reached. If we get issues reported we'll
revisit.
(new_media_ffmpeg_read): Use avio_eof and the most error field of
AVIOContext instead of furl_feof.  Do not unset the interrupt
callback for now.  We may need to revisit the reset of the
callback later.

* m4/sxe-mm.m4 (SXE_CHECK_FFMPEG_LIBS): Properly check for the
avcodec_decode_audio* and define corresponding
HAVE_AVCODEC_AUDIO*.  Also check for av_iformat_next.
(SXE_MM_CHECK_FFMPEG): Check at least one avcodec_decode_audio is
available and av_iformat_next.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoMore update to newer ffmpeg API
Nelson Ferreira [Thu, 31 Dec 2015 19:15:14 +0000 (14:15 -0500)]
More update to newer ffmpeg API

* src/media/media-ffmpeg.h: Add include of avutil/time.h

* src/media/media-ffmpeg.c (AVCODEC_MAX_AUDIO_FRAME_SIZE): Add
define if missing to last known legacy value.
(media_ffmpeg_open): Properly use avcodec_open2
(media_ffmpeg_read): Fix warnings.

* m4/sxe-mm.m4 (SXE_CHECK_FFMPEG_HEADERS): Check also avutil/time.h.
(SXE_CHECK_FFMPEG_LIBS): Check for avformat_free_context and avio_feof.
(SXE_MM_CHECK_FFMPEG): Refactor header check for ease of adding
additional ones.  Verify avformat_free_context and avio_feof are
available.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoUse new virtual IO api
Nelson Ferreira [Thu, 31 Dec 2015 16:58:19 +0000 (11:58 -0500)]
Use new virtual IO api

* src/media/media-ffmpeg.c: Remove the no-longer used
media_ffmpeg_vio_open, media_ffmpeg_vio_close,
media_ffmpeg_vio_write.
(media_ffmpeg_vio_read): Use the new opaque pointer interface of
AVIOContext, which points to our media_data struct directly.
(media_ffmpeg_vio_seek): Ditto.
(media_ffmpeg_open_data): Use the new AVIOContext and allocate one
pointing to media_ffmpeg_vio_read, media_ffmpeg_vio_seek and with
opaque data as our media_data.  Use the context to open the input.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoCleanup global video state.
Nelson Ferreira [Thu, 31 Dec 2015 16:39:44 +0000 (11:39 -0500)]
Cleanup global video state.

* src/media/media-ffmpeg.c: Remove global video state since it is
not used, except to set to NULL.
 (new_media_ffmpeg_read): No need to reset global_video_state, as it is not used.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoAdditional usage of the new api
Nelson Ferreira [Thu, 31 Dec 2015 16:37:06 +0000 (11:37 -0500)]
Additional usage of the new api

* src/media/media-ffmpeg.c (media_ffmpeg_open_file): Use
avformat_open_input and avformat_find_stream_info,
avformat_close_input.
(stream_open): Use avformat_open_input.
(media_ffmpeg_close): Use avformat_close_input.
(media_ffmpeg_open): Use avio_size, avformat_find_stream_info,
av_dump_format and avoid warning.
(new_media_ffmpeg_read): Use avformat_close_input.

* src/media/media-ffmpeg.h: Include avcodec.h

* m4/sxe-mm.m4 (SXE_MM_CHECK_FFMPEG): Verify availability of all
the included ffmpeg headers. And additional functions,
avio_alloc_context, avio_size, av_dump_format.
(SXE_CHECK_FFMPEG_HEADERS): Check also for avcodec.h
(SXE_CHECK_FFMPEG_LIBS): Check for av_dump_format,
avio_alloc_context, avio_size.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoUpdate ffmpeg codec and media constants
Nelson Ferreira [Sun, 27 Dec 2015 22:44:04 +0000 (17:44 -0500)]
Update ffmpeg codec and media constants

* src/media/media-ffmpeg.c (media_ffmpeg_analyse_audio): Use
AV_SAMPLE_* instead of SAMPLE_*.
(media_ffmpeg_open): Use AVMEDIA_TYPE_* instead of CODEC_TYPE_*.
(stream_component_open): Ditto.
(stream_component_close): Ditto.
(new_media_ffmpeg_open): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoFix metadata usage
Nelson Ferreira [Sun, 27 Dec 2015 22:33:42 +0000 (17:33 -0500)]
Fix metadata usage

* src/media/media-ffmpeg.h: Add include for dict.h

* src/media/media-ffmpeg.c (media_ffmpeg_streaminfo): Use
AVDictionary.
(dump_stream_info): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoSync up FFmpeg -- autoconf
Steve Youngs [Mon, 2 Jul 2012 14:05:57 +0000 (00:05 +1000)]
Sync up FFmpeg -- autoconf

This changeset is the first in a series to sync up our FFmpeg code with a
much more modern and up to date FFmpeg.  This one takes care of the
autoconf side of things.  It is cherry-picked from an earlier ffmpeg-fix
branch, squashing all the configuration related changes.

This changeset also introduces new minimum versions of libavformat and
libavcodec required by SXEmacs:

  libavformat -- 55.12.100
  libavcodec  -- 55.18.102

* configure.ac: Need libs for avcodec as well as avformat. Add
          in libavutil libs.

* m4/sxe-mm.m4 (SXE_MM_CHECK_FFMPEG): Rework it for modern
ffmpeg. Check for av_dict_get() in libavutil.

* m4/sxe-mm.m4 (SXE_CHECK_FFMPEG_HEADERS): Check for avcodec.h
and dict.h as well.

* m4/sxe-mm.m4 (SXE_CHECK_FFMPEG_LIBS): Check for libavutil.

* m4/sxe-mm.m4 (SXE_MM_CHECK_FFMPEG):

8 years agoA place to keep aliases to built-in constants when needed
Steve Youngs [Sat, 26 Dec 2015 02:12:26 +0000 (12:12 +1000)]
A place to keep aliases to built-in constants when needed

* merges:
  Add logged, but missing change from previous commit.
  Segregate aliases to DEFVAR_CONST
  Revert "Fix the fix, make pi a normal lisp var (Closes bug #176)"

8 years agoAdd logged, but missing change from previous commit.
Steve Youngs [Sat, 26 Dec 2015 02:04:53 +0000 (12:04 +1000)]
Add logged, but missing change from previous commit.

* lisp/Makefile.am (corelispels): Add const-aliases.el.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoSegregate aliases to DEFVAR_CONST
Nelson Ferreira [Fri, 25 Dec 2015 21:40:24 +0000 (16:40 -0500)]
Segregate aliases to DEFVAR_CONST

* lisp/float-sup.el: Remove alias for pi and e when bigfr is
available. These should now be defined in const-aliases, loaded
by startup.

* lisp/const-aliases.el (pi): Define const as bigfr-pi when bigfr
is available.
(e): Define as euler when bigfr is available.

* lisp/Makefile.am (corelispels): Add const-aliases.el to list of
files.

* lisp/startup.el (load-init-file): Require new const-aliases to
load the consts that cannot be dumped.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoRevert "Fix the fix, make pi a normal lisp var (Closes bug #176)"
Nelson Ferreira [Fri, 25 Dec 2015 21:34:17 +0000 (16:34 -0500)]
Revert "Fix the fix, make pi a normal lisp var (Closes bug #176)"

This reverts commit 528ced5b22b7681234d5228d0a2a02d9a2305312.

8 years agoFix the fix, make pi a normal lisp var (Closes bug #176)
Steve Youngs [Wed, 23 Dec 2015 08:20:22 +0000 (18:20 +1000)]
Fix the fix, make pi a normal lisp var (Closes bug #176)

This change reverts the previous one, and then goes about closing bug 176
in a different way.  Namely, by changing Vpi from being a
DEFVAR_CONST_LISP to a DEFVAR_LISP. IOW, a plain ordinary variable.

* src/ent/ent-mpfr.c (vars_of_ent_mpfr): Set Vpi to be a normal
lisp variable instead of a constant so packages like Calc can
let-bind them for their own evil and misguided purposes. :-)
Vbigfr_pi -> Vpi

* src/ent/ent-mpfr.h: Vbigfr_pi -> Vpi

* lisp/float-sup.el: Revert previous change.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoDefine `pi' in elisp, even with bigfr. (Closes bug #176)
Steve Youngs [Mon, 21 Dec 2015 23:35:21 +0000 (09:35 +1000)]
Define `pi' in elisp, even with bigfr. (Closes bug #176)

An elisp constant defined with #'defconst can be let-bound, or otherwise
altered.  But one that is defined in C cannot be.  SXEmacs' pi is
sometimes defined in elisp, and sometimes in C, depending on whether it
has bigfr or not.  The Calc XEmacs package let-binds pi in a couple of
places, resulting in errors when (featurep 'bigfr) => t.

With this change, pi is defined in elisp regardless of bigfr.  But it will
still use bigfr to obtain the value if it is available.

* lisp/float-sup.el: Define pi in elisp, even if we have bigfr,
and in that case set it to what mpfr gives us.
Same for e.

* src/ent/ent-mpfr.c (init_ent_mpfr): Vpi -> Vbigfr_pi
(vars_of_ent_mpfr): Vpi -> Vbigfr_pi, pi -> bigfr-pi

* src/ent/ent-mpfr.h: Vpi -> Vbigfr_pi

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoMore warning fixes from Nelson
Steve Youngs [Mon, 21 Dec 2015 07:04:30 +0000 (17:04 +1000)]
More warning fixes from Nelson

* merges:
  Fixing more TTY/term warning/prototype craziness.
  More term crazyness warnings fixing.

8 years agoFixing more TTY/term warning/prototype craziness.
Nelson Ferreira [Sun, 20 Dec 2015 21:56:10 +0000 (16:56 -0500)]
Fixing more TTY/term warning/prototype craziness.

* src/ui/TTY/redisplay-tty.c: Include term.h if available.
Define prototypes for tgetent, tgetflag, tgetnum, tgetstr, tputs
if not available.

* configure.ac (CURSES_H_FILE): No default in variable expansion.
(TERMCAP_H_FILE): Ditto.
(TERM_H_FILE): Ditto.
(HAVE_TPARM_PROTOTYPE): Add 'checking' message.
(HAVE_TGETENT_PROTOTYPE): Check if tgetent prototype is available.
(HAVE_TGETFLAG_PROTOTYPE): Check if tgetflag prototype is available.
(HAVE_TGETNUM_PROTOTYPE): Check if tgetnum prototype is available.
(HAVE_TGETSTR_PROTOTYPE): Check if tgetstr prototype is available.
(HAVE_TPUTS_PROTOTYPE): Check if tputs prototype is available

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoMerge branch 'master' into for-steve
Nelson Ferreira [Sun, 20 Dec 2015 20:06:32 +0000 (15:06 -0500)]
Merge branch 'master' into for-steve

8 years agoMore term crazyness warnings fixing.
Nelson Ferreira [Sun, 20 Dec 2015 20:04:34 +0000 (15:04 -0500)]
More term crazyness warnings fixing.

* configure.ac (CURSES_H_FILE): Only define if we have one.
(TERMCAP_H_FILE): Ditto.
(TERM_H_FILE): Ditto.
(HAVE_TPARM_PROTOTYPE): Detect we tparm prototype is available.

* src/ui/TTY/terminfo.c: Only include TERM_H_FILE is we have it.
Properly decide when to define a tparm prototype, based on when
configure detected it.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoEgo Patch -- Tweak my info a little.
Steve Youngs [Tue, 15 Dec 2015 12:08:00 +0000 (22:08 +1000)]
Ego Patch -- Tweak my info a little.

* lisp/about.el (sxemacs-hackers): Add Aidan from XEmacs'
about.el.
(about-current-release-maintainers): Sort.
(about-url-alist): Add a couple of my URLs
(about-personal-info): Update me a little, use updated URLs

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoCompiler warning fixes from Nelson
Steve Youngs [Sun, 13 Dec 2015 04:58:01 +0000 (14:58 +1000)]
Compiler warning fixes from Nelson

* merges:
  Add missing declaration for make_bigz
  More eliminate silly warnings
  Eliminate silly warnings

8 years agoAdd missing declaration for make_bigz
Nelson Ferreira [Sat, 12 Dec 2015 22:29:30 +0000 (17:29 -0500)]
Add missing declaration for make_bigz

* src/ent/ent-int.h: Add prototype for make_bigz

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoMore eliminate silly warnings
Nelson Ferreira [Sat, 12 Dec 2015 21:45:27 +0000 (16:45 -0500)]
More eliminate silly warnings

* src/search.c (fast_string_match): Use a temporary to avoid
warning about constness.

* src/openssl.c (Fossl_digest_file): Mark set unused but unused
variable.
(Fossl_pem_write_public_key): Ditto.
(Fossl_pem_write_key): Ditto.
(Fossl_ssl_read): Ditto.
(Fossl_ssl_write): Ditto.
(ossl_ssl_prepare_cmeth): Ignore drop of const qualifier. The
alternative of using const for SSL methods everywhere is not
workable if we are to support older OpenSSL versions.
(ossl_ssl_prepare_smeth): Ditto.

* src/alloc.c (make_string_nocopy): Remove unnecessary cast.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoEliminate silly warnings
Nelson Ferreira [Sat, 12 Dec 2015 20:56:06 +0000 (15:56 -0500)]
Eliminate silly warnings

* src/ui/TTY/terminfo.c (emacs_tparam): We don't control tparm
prototype where some have const qualifiers others don't. Turning
the warning off is the sensible choice.

* src/ui/glyphs-eimage.c (gif_instantiate): Small cosmetic change.

* src/ui/X11/event-Xt.c (init_event_Xt_late): We don't control the
prototype for XtAppSetTypeConverter where some have const others don't
so turning the warning off is the sensible option...

* src/ui/X11/device-x.c (Fx_get_font_path): Const all around keeps
compilers happy.

* src/events/event-stream.c (asyneq_handle_non_command_event): Use
a void* temporary to sidestep warning.

* src/regex.c (POP_FAILURE_POINT): Don't cast unnecessarily.
(re_match_2_internal): Turn off const cast warning since the code
will always need it one macro expansion or another. Can't win here
without cheating :)

* src/buffer.c (directory_is_current_directory): Cast
to target type, when conversion fails.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoFix openssl support
Nelson Ferreira [Sat, 12 Dec 2015 18:32:24 +0000 (13:32 -0500)]
Fix openssl support

Let's detect needed features in configure instead of relying on
defines coming from openssl headers since they have proven not
to be reliable

* m4/sxe-crypto.m4 (SXE_OPENSSL_VERSION): Update versions of
openssl supported.
(SXE_TRY_OPENSSL_BIN_PREFIX): Update headers checked.
(SXE_CHECK_OPENSSL_LOCS): Ditto.
(SXE_CHECK_OPENSSL_FEATURES): Check for types and make openssl not
available if missing.

* src/openssl.h: Update guards on includes
(Lisp_SSL_CONN): Assume types are available as
configure should not include openssl for compilation if they
are not available.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoCompiler & warning related updates/fixes from Nelson
Steve Youngs [Sun, 6 Dec 2015 23:26:44 +0000 (09:26 +1000)]
Compiler & warning related updates/fixes from Nelson

* merges:
  Typo fix, 'max_align_t' -> 'sxe_max_align_t'
  Silence warnings about usage of deprecated function when existing alternative is not available.
  Use proper assert in lwlib
  Fix typo on include guard for term.h
  Use proper max in lwlib
  Add some prototype to silence silly warnings.
  Turn off warning about deprecated usage of __free_hook.
  Use min/max from sxe-utils
  Properly handle return from getcwd.
  Shut set but unused warnings.
  Rename our max_align_t to sxe_max_align_t
  Mark variables set but unused.
  Fixup assert definitions.
  Add SXE_SET_UNUSED to shut unused warnings.
  Cleanup utilities. Introduce sxe-memory.h
  Address static inline warning in ase.
  Prevent movemail from proceeding when setuid fails

8 years agoTypo fix, 'max_align_t' -> 'sxe_max_align_t'
Steve Youngs [Sun, 6 Dec 2015 23:23:24 +0000 (09:23 +1000)]
Typo fix, 'max_align_t' -> 'sxe_max_align_t'

* src/ui/specifier.c (aligned_sizeof_specifier): 'max_align_t' ->
`sxe_max_align_t'

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoSilence warnings about usage of deprecated function when existing alternative is...
Nelson Ferreira [Sun, 6 Dec 2015 22:24:36 +0000 (17:24 -0500)]
Silence warnings about usage of deprecated function when existing alternative is not available.

* src/ui/X11/event-Xt.c (whatever): Add pragma to ignore warning.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoUse proper assert in lwlib
Nelson Ferreira [Sun, 6 Dec 2015 21:54:49 +0000 (16:54 -0500)]
Use proper assert in lwlib

* src/ui/lwlib/lwlib-internal.h: Include sxe-utils instead of
defining assert.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoFix typo on include guard for term.h
Nelson Ferreira [Sun, 6 Dec 2015 21:53:42 +0000 (16:53 -0500)]
Fix typo on include guard for term.h

* src/ui/TTY/terminfo.c: Fix typo

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoUse proper max in lwlib
Nelson Ferreira [Sun, 6 Dec 2015 21:52:42 +0000 (16:52 -0500)]
Use proper max in lwlib

* src/ui/lwlib/lwlib.c: Undefine max macro to use this type safe
alternative.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoAdd some prototype to silence silly warnings.
Nelson Ferreira [Sun, 6 Dec 2015 21:50:21 +0000 (16:50 -0500)]
Add some prototype to silence silly warnings.

* src/effi.c(ffi_make_callback_x86): Add  prototype.
* src/media/sound-jack.c (demux_internal): Ditto.
* src/mule/file-coding.c (autodetect_real_coding_system): Ditto.
* src/print.c (float_to_string): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoTurn off warning about deprecated usage of __free_hook.
Nelson Ferreira [Sun, 6 Dec 2015 21:46:36 +0000 (16:46 -0500)]
Turn off warning about deprecated usage of __free_hook.

Since this is to try and avoid crashes on shutdown, it will either
be available and work, or linking will fail, which will be detected
by configure, and thus we will not use it.

* configure.ac: Add HAVE_FREE_HOOK when __free_hook is available.
Also fix detection of __after_morecore_hook.
* src/emacs.c (voodoo_free_hook): Ignore the warning about
deprecated variable.
* src/emacs.c (Fkill_emacs): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoUse min/max from sxe-utils
Nelson Ferreira [Sun, 6 Dec 2015 21:10:33 +0000 (16:10 -0500)]
Use min/max from sxe-utils

* src/ui/lwlib/xlwmenu.c: Include sxe-utils and remove the current
max macro.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoProperly handle return from getcwd.
Nelson Ferreira [Sun, 6 Dec 2015 21:05:30 +0000 (16:05 -0500)]
Properly handle return from getcwd.

* src/realpath.c (xrealpath): Is getcwd returns NULL, also return
NULL.  If we can't determine the cwd, then any relative path
processing fails.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoShut set but unused warnings.
Nelson Ferreira [Sun, 6 Dec 2015 21:02:46 +0000 (16:02 -0500)]
Shut set but unused warnings.

These are in the code for debug/inspection purposes.

* src/ui/lwlib/xlwgauge.c (GaugeExpose): Use SXE_SET_UNUSED.

* src/ui/lwlib/xlwcheckbox.c (DrawCheck):Ditto.

* src/sysdep.c (tty_init_sys_modes_on_device)
(tty_reset_sys_modes_on_device): Ditto.

* src/regex.c (re_match_2_internal): Ditto.

* src/mule/file-coding.c (Fdefine_coding_system_alias): Ditto.

* src/media/sound-oss.c (sound_oss_handle_aj_events): Ditto.

* src/media/sound-jack.c (sound_jack_handle_aj_events)
(sound_jack_process): Ditto.

* src/media/sound-ao.c (sound_ao_handle_aj_events): Ditto.

* src/media/sound-alsa.c (sound_alsa_handle_aj_events): Ditto.

* src/media/media-sndfile.c (media_sndfile_open): Ditto.

* src/media/media-mad.c (media_mad_read): Ditto.

* src/media/media-internal.c (media_internal_analyse_stream): Ditto.

* src/emacs.c (Fdump_emacs): Ditto.

* src/bytecode.c (execute_optimized_program): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoRename our max_align_t to sxe_max_align_t
Nelson Ferreira [Sun, 6 Dec 2015 18:03:28 +0000 (13:03 -0500)]
Rename our max_align_t to sxe_max_align_t

This is needed because newer compilers now ship with this
symbol.

* src/sxe-utils.h: Rename max_align_t to sxe_max_align_t
* src/dumper.c (pdump_get_entry_list): Use sxe_max_align_t
(pdump_scan_by_alignment): Ditto.
(pdump): Ditto.
* src/opaque.c (aligned_sizeof_opaque): Ditto.
* src/opaque.h (Lisp_Opaque): Ditto.
* src/specifier.h (Lisp_Specifier): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoMark variables set but unused.
Nelson Ferreira [Sun, 27 Sep 2015 21:35:16 +0000 (17:35 -0400)]
Mark variables set but unused.

* src/lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6): Mark elt as unused.
(PRIVATE_EXTERNAL_ALIST_LOOP_8): Set elt_car and elt_cdr as unused.
* src/mule/mule-ccl.c (CCL_WRITE_STRING): Set bytes as unused.
* src/ui/X11/dialog-x.c (dbox_descriptor_to_widget_value): Set
title as unused.
* src/ui/X11/glyphs-x.c (x_widget_instantiate): Set nm as unused.
* src/ui/X11/gui-x.c (button_item_to_widget_value): Set intlen as
unused.
* src/ui/X11/objects-x.c (x_font_instance_properties): Set
name_len as unused.
* src/ui/lwlib/lwlib-Xlw.c (xlw_update_one_widget): Set mw as
unused.
* src/ui/lwlib/xlwtabs.c (TabsResize): Set tab as unused.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoFixup assert definitions.
Nelson Ferreira [Sun, 27 Sep 2015 21:28:23 +0000 (17:28 -0400)]
Fixup assert definitions.

* src/sxe-utils.h: Use assert_failed only when compiling emacs
itself.  Also make assert a proper no-op expression, i.e.,
(void)0.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoAdd SXE_SET_UNUSED to shut unused warnings.
Nelson Ferreira [Sun, 27 Sep 2015 21:26:39 +0000 (17:26 -0400)]
Add SXE_SET_UNUSED to shut unused warnings.

* src/sxe-utils.h (SXE_SET_UNUSED): Define macro to mark variables
set but unused, aka, dummy vars.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoCleanup utilities. Introduce sxe-memory.h
Nelson Ferreira [Sun, 27 Sep 2015 21:24:04 +0000 (17:24 -0400)]
Cleanup utilities. Introduce sxe-memory.h

Move all the memory related utilities to sxe-memory.h so that
sxe-utils.h can be included in contexts where the memory utils
are not welcome.

* src/sxemacs.h: Remove include for sxe-utils.h, lisp.h already
does it.
* src/lisp.h: Include new sxe-memory.h
* src/sxe-utils.h: Remove xnew, xnew_atomic, xnew_array,
xnew_atomic_array, xnew_and_zero, xzero, xnew_array_and_zero,
xrealloc_array, alloca_array, xstrdup
* src/sxe-memory.h: Add definitions removed from sxe-utils.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoAddress static inline warning in ase.
Nelson Ferreira [Sun, 27 Sep 2015 21:14:52 +0000 (17:14 -0400)]
Address static inline warning in ase.

* modules/ase/ase-neighbourhood.h: Use extern_inline.
(ase_neighbourhood_point): Move definition to header.
(ase_neighbourhood_radius): Ditto.
(ase_neighbourhood_rational_measure): Ditto.
(ase_neighbourhood_lebesgue_measure): Ditto.
(_ase_neighbourhood_lebesgue): Inline dependency hoisted.
(_ase_neighbourhood_update_lebesgue): Ditto.
(_ase_neighbourhood_rational): Ditto.
(_ase_neighbourhood_update_rational): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoPrevent movemail from proceeding when setuid fails
Nelson Ferreira [Sun, 27 Sep 2015 21:10:45 +0000 (17:10 -0400)]
Prevent movemail from proceeding when setuid fails

* lib-src/movemail.c (main): Exit is setuid fails

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoMerge branch 'master' into for-steve
Nelson Ferreira [Sat, 26 Sep 2015 15:41:17 +0000 (11:41 -0400)]
Merge branch 'master' into for-steve

8 years agoMinor package-get cleanup + bldchain tweak
Steve Youngs [Sun, 20 Sep 2015 23:21:31 +0000 (09:21 +1000)]
Minor package-get cleanup + bldchain tweak

* merges:
  Cleanup invalid mirrors
  Cleanup mirrors
  Improve missing header message
  Improve detection libtool version detection

8 years agoCleanup invalid mirrors
Nelson Ferreira [Sun, 20 Sep 2015 16:57:43 +0000 (12:57 -0400)]
Cleanup invalid mirrors

* lisp/package-get.el (package-get-pre-release-download-sites):
Remove commented out entries from previous commit.
(package-get-download-sites): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoCleanup mirrors
Nelson Ferreira [Sun, 20 Sep 2015 16:54:31 +0000 (12:54 -0400)]
Cleanup mirrors

* lisp/package-get.el (package-get-download-sites): Annotate
mirrors with connectivity difficulties or outdated contents.
Comment out mirrors which do not resolve or do not carry XEmacs
packages anymore.
(package-get-pre-release-download-sites): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoImprove missing header message
Nelson Ferreira [Sun, 20 Sep 2015 14:52:44 +0000 (10:52 -0400)]
Improve missing header message

* configure.ac: Note that we also need Xt headers as newer distros
tend to package Xt headers separately from core X11.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoImprove detection libtool version detection
Nelson Ferreira [Sun, 20 Sep 2015 14:51:00 +0000 (10:51 -0400)]
Improve detection libtool version detection

* autogen.sh: Use libtoolize for version if libtool is not to be
found.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoTTY + General build chain related updates
Steve Youngs [Mon, 14 Sep 2015 03:43:56 +0000 (13:43 +1000)]
TTY + General build chain related updates

* merges:
  Conditional automake init
  Small configure.ac fix
  Fix info/Makefile.am for old automake
  Allow m4 and autostuff to be customized
  Enforce makeinfo version
  Improve TTY library detection
  Improve TTY section of summary
  Add builtin tty support option
  Forward compatible info in builddir (when CLEANFILES becomes obsolete)
  Attempt to provide speed_t
  Improve term initialization output
  Provide helper defines
  Allow for ncurses tinfo as TTY option

8 years agoConditional automake init
Nelson Ferreira [Sun, 13 Sep 2015 22:10:27 +0000 (18:10 -0400)]
Conditional automake init

* configure.ac: Hugly hack to add info-in-buildir for automake >=
1.14

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoSmall configure.ac fix
Nelson Ferreira [Sun, 13 Sep 2015 22:09:30 +0000 (18:09 -0400)]
Small configure.ac fix

* configure.ac: Fix typo, and determine SED and AWK early.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoFix info/Makefile.am for old automake
Nelson Ferreira [Sun, 13 Sep 2015 22:08:24 +0000 (18:08 -0400)]
Fix info/Makefile.am for old automake

* info/Makefile.am: Turns out automake does not deal well with
unknown options. Horrible hack forthcoming in configure.ac.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoAllow m4 and autostuff to be customized
Nelson Ferreira [Sun, 13 Sep 2015 22:06:21 +0000 (18:06 -0400)]
Allow m4 and autostuff to be customized

* autogen.sh: allow for environment variables to control which
git/m4/autoconf/automake binaries are used.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoEnforce makeinfo version
Nelson Ferreira [Sun, 13 Sep 2015 19:15:37 +0000 (15:15 -0400)]
Enforce makeinfo version

* m4/sxe-bldchain-progs.m4: Verify that makeinfo version is at
least 5.x

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoImprove TTY library detection
Nelson Ferreira [Tue, 8 Sep 2015 22:12:21 +0000 (18:12 -0400)]
Improve TTY library detection

* configure.ac: Iterate over all "auto" libraries by order of
preference to find out which are linkable.  Add libraries
requested on command line by adding --with-<lib>=yes before the
auto ones.  Then find which libraries are needed to get all of the
required terminal functions.  Check if combination still allows
for all functions to build.  When all else fails if
--with-builtin-tty=yes is passed, use that.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoImprove TTY section of summary
Nelson Ferreira [Tue, 8 Sep 2015 22:09:15 +0000 (18:09 -0400)]
Improve TTY section of summary

* m4/sxe-summary.m4 (SXE_SUMMARY): Provide additional warning on
some of the tty options, and support for --with-tinfo and
--with-builtin-tty

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoAdd builtin tty support option
Nelson Ferreira [Tue, 8 Sep 2015 22:08:12 +0000 (18:08 -0400)]
Add builtin tty support option

* configure.ac: Add disabled by default --with-builtin-tty as last
resort to get a workable build with no other libraries.  A
workable terminal spec will be needed at runtime.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoForward compatible info in builddir (when CLEANFILES becomes obsolete)
Nelson Ferreira [Tue, 8 Sep 2015 18:05:29 +0000 (14:05 -0400)]
Forward compatible info in builddir (when CLEANFILES becomes obsolete)

* info/Makefile.am (AUTOMAKE_OPTIONS): Add info-in-builddir
          automake option for forward compatibility.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoAttempt to provide speed_t
Nelson Ferreira [Tue, 8 Sep 2015 18:02:47 +0000 (14:02 -0400)]
Attempt to provide speed_t

* ui/TTY/termcap.c: In our termcap-like implementation make sure
we provide speed_t if available.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoImprove term initialization output
Nelson Ferreira [Tue, 8 Sep 2015 18:01:32 +0000 (14:01 -0400)]
Improve term initialization output

* src/cmdloop.c (initial_command_loop): Provide better output when
terminal initialization fails. Now it does not look like a corrupt
message.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoProvide helper defines
Nelson Ferreira [Tue, 8 Sep 2015 17:59:22 +0000 (13:59 -0400)]
Provide helper defines

* configure.ac: Make sure to define SED and ECHO as some system
autoconf macros use them without defining them (tsk tsk
libtool...)

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoAllow for ncurses tinfo as TTY option
Nelson Ferreira [Tue, 8 Sep 2015 17:57:40 +0000 (13:57 -0400)]
Allow for ncurses tinfo as TTY option

* configure.ac: Add --with-tinfo option

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoDisable "in-tree" builds.
Steve Youngs [Mon, 24 Aug 2015 08:14:59 +0000 (18:14 +1000)]
Disable "in-tree" builds.

* m4/sxe-srctree.m4 (SXE_CHECK_SRCDIR_HEALTH): Error if $blddir =
$srcdir.

* INSTALL: Add some blurb about in-tree builds no longer being
supported.
Minimum texinfo version is now 5.2.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoMake .info files be generated in builddir
Nelson Ferreira [Sun, 23 Aug 2015 21:40:02 +0000 (17:40 -0400)]
Make .info files be generated in builddir

* info/Makefile.am (CLEANFILES): According to automake, info files
are generated in builddir only if marked as user cleaned.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
8 years agoMisc build tweaks/updates from Nelson
Steve Youngs [Sun, 23 Aug 2015 01:13:16 +0000 (11:13 +1000)]
Misc build tweaks/updates from Nelson

* merges:
  Document why the duplicate traversal is needed
  Revert "Remove duplicate subdirs"
  Make info be generated in buildidr
  Remove duplicate subdirs
  Improve liblzma pkg-config detection
  Improve FFI pkg-config detection
  Add new pkg-config macro SXE_PC_CHECK_EXISTS
  Fix pkg-config autoconf macros
  Automatically paths in site prefix to PKG_CONFIG_PATH

8 years agoDocument why the duplicate traversal is needed
Nelson Ferreira [Sat, 22 Aug 2015 15:39:11 +0000 (11:39 -0400)]
Document why the duplicate traversal is needed

8 years agoRevert "Remove duplicate subdirs"
Nelson Ferreira [Sat, 22 Aug 2015 15:33:41 +0000 (11:33 -0400)]
Revert "Remove duplicate subdirs"

This reverts commit 9cdb268091bd33e600448864eda49c3c8b365699.

8 years agoMerge branch 'sxe_pc_check' into for-steve
Nelson Ferreira [Sat, 15 Aug 2015 23:12:24 +0000 (19:12 -0400)]
Merge branch 'sxe_pc_check' into for-steve

8 years agoMerge branch 'makeinfo_out_of_tree' into for-steve
Nelson Ferreira [Sat, 15 Aug 2015 23:11:37 +0000 (19:11 -0400)]
Merge branch 'makeinfo_out_of_tree' into for-steve

8 years agoMake info be generated in buildidr
Nelson Ferreira [Sun, 9 Aug 2015 18:19:35 +0000 (14:19 -0400)]
Make info be generated in buildidr

* info/Makefile.am (builddir, srcdir, SUBDIRS): Add settings to
generate info in buildir and reset SUBDIRS in order not to
recurse.

8 years agoRemove duplicate subdirs
Nelson Ferreira [Sun, 9 Aug 2015 18:18:20 +0000 (14:18 -0400)]
Remove duplicate subdirs

* Makefile.am (sxe_subdirs): Remove duplicate dirs

8 years agoImprove liblzma pkg-config detection
Nelson Ferreira [Sun, 9 Aug 2015 17:37:10 +0000 (13:37 -0400)]
Improve liblzma pkg-config detection

* m4/sxe-compress.m4: Also check for liblzma pkg-config modules
which is now commonly used.

8 years agoImprove FFI pkg-config detection
Nelson Ferreira [Sun, 9 Aug 2015 17:35:06 +0000 (13:35 -0400)]
Improve FFI pkg-config detection

* m4/sxe-emodffi.m4: Use the SXE_PC macros for pkg-config
detection of libffi.

8 years agoAdd new pkg-config macro SXE_PC_CHECK_EXISTS
Nelson Ferreira [Sun, 9 Aug 2015 17:31:32 +0000 (13:31 -0400)]
Add new pkg-config macro SXE_PC_CHECK_EXISTS

* m4/sxe-pkgconfig.m4: Add SXE_PC_CHECK_EXISTS which sets
sxe_cv_pc_[shmod]_exists to yes if module is configured via
pkg-config.

8 years agoFix pkg-config autoconf macros
Nelson Ferreira [Sun, 9 Aug 2015 17:28:13 +0000 (13:28 -0400)]
Fix pkg-config autoconf macros

* m4/sxe-pkgconfig.m4: Correct quoting of shmod and MOD in
SXE_PC_CHECK_VERSION_ATLEAST, SXE_PC_CHECK_VERSION_ATMOST,
SXE_PC_CHECK_VERSION, SXE_PC_CHECK_LIBS, SXE_PC_CHECK_LDFLAGS,
SXE_PC_CHECK_CPPFLAGS

8 years agoAutomatically paths in site prefix to PKG_CONFIG_PATH
Nelson Ferreira [Sun, 9 Aug 2015 17:23:05 +0000 (13:23 -0400)]
Automatically paths in site prefix to PKG_CONFIG_PATH

* ../configure.ac: If there is pkg-config and --with-site-prefixes
was passed to configure, also add those prefixes with
lib/pkgconfig to PKG_CONFIG_PATH.

8 years agoHandle immediate autoloads (';;;###autoloadimmediate') better.
Steve Youngs [Fri, 10 Jul 2015 12:21:17 +0000 (22:21 +1000)]
Handle immediate autoloads (';;;###autoloadimmediate') better.

* lisp/autoload.el (process-one-lisp-autoload): Insert <immediate>
into the section header for immediate autoloads, to make sure the
upstream doesn't think there aren't any autoloads at all.

From: Mike Sperber  <mike@xemacs.org>

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoSupport both "-*-coding:" and "-*- coding:" in magic cookies
Steve Youngs [Fri, 10 Jul 2015 06:21:34 +0000 (16:21 +1000)]
Support both "-*-coding:" and "-*- coding:" in magic cookies

The code responsible for checking coding sytem magic cookies in files was
only searching for "-*-coding:...", however most (most == all in SXEmacs,
but in XEmacs and GNU/Emacs most == majority) files that have these
cookies seem to use "-*- coding:...".  This changeset means SXEmacs will
now honour the coding cookie regardless of it being "-*-coding" or
"-*- coding".

* src/mule/file-coding.c (autodetect_real_coding_system): Look for
" coding:" as well as "coding:"

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoUpdate the docstrings in the cl emodule.
Steve Youngs [Mon, 6 Jul 2015 07:18:18 +0000 (17:18 +1000)]
Update the docstrings in the cl emodule.

This adds/updates the docstrings for the DEFUNs in the cl emodule.  I've
basically just lifted the doctrings from the equivalent functions/macros
in cl*.el.

* modules/cl/cl-loop.c (Fcl_loop): Add a docstring.
(Fcl_doX): Typo in docstring.
(Fcl_dotimes): Update docstring.
(Fcl_dolist): Ditto.
(Fcl_do_symbols): Ditto.
(Fcl_loop_sentence): Direct folks to #'cl:loop docstring.

* modules/cl/cl.c (Fcl_pop): Add a docstring.
(Fcl_push): Ditto.
(Fcl_pushnew): Ditto.
(Fcl_eql): Ditto.
(Fcl_list_): Ditto.
(Fcl_tailp): Ditto.
(Fcl_ldiff): Ditto.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoPartially sync files.el from XEmacs 21.5 for wildcard support.
Steve Youngs [Sat, 4 Jul 2015 02:23:33 +0000 (12:23 +1000)]
Partially sync files.el from XEmacs 21.5 for wildcard support.

This changeset partially syncs files.el with XEmacs 21.5 (cb65bfaf7110
tip) to give #'find-file and friends support for wildcards.

With this, you can do things like: `C-x C-f /path/to/*.c' and all .c files
in /path/to/ will be opened.  Oh, and it also means that the current
ispell XEmacs package will work again.

* lisp/files.el (find-directory-functions): New.
(switch-to-next-buffer): New.
(switch-to-previous-buffer): New.
(switch-to-next-buffer-in-group): New and fixed to not use
obsolete vars.
(switch-to-previous-buffer-in-group): New. and fixed to not use
obsolete vars.
(find-file-create-switch-thunk): New.
(find-file): Synched up with XEmacs 21.5
cb65bfaf7110 tip.
(find-file-wildcards): New.
(find-file-suppress-same-file-warnings): New.
(find-file-noselect): Synched up with XEmacs 21.5 cb65bfaf7110
tip.
(find-file-noselect-1): New.
(insert-file-literally): New.
(find-file-literally): New.
(file-expand-wildcards): New.
(shell-quote-wildcard-pattern): New.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoRun the testsuite with -vanilla to protect from local pollution.
Steve Youngs [Fri, 3 Jul 2015 11:35:00 +0000 (21:35 +1000)]
Run the testsuite with -vanilla to protect from local pollution.

This change just makes the testsuite run in a -vanilla SXEmacs instance
to keep local settings and packages out of the equation.

* tests/Makefile.am (tests_environment): Use -vanilla.
(check-formats, check-map, check-skiplists, check-%): Ditto.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoautogen.sh update from Horst
Steve Youngs [Thu, 2 Jul 2015 07:01:03 +0000 (17:01 +1000)]
autogen.sh update from Horst

* merges:
  remove GNUisms that break non-GNU stuff

8 years agoremove GNUisms that break non-GNU stuff
Horst G. Burkhardt [Wed, 1 Jul 2015 02:53:48 +0000 (12:53 +1000)]
remove GNUisms that break non-GNU stuff

Signed-off-by: Horst G. Burkhardt <mc@680x0.com>
8 years agoFix quoting and indexing bug in git-for-steve.sh
Steve Youngs [Sun, 28 Jun 2015 05:40:19 +0000 (15:40 +1000)]
Fix quoting and indexing bug in git-for-steve.sh

* contrib/git-for-steve.sh (set_myremote): Remove quotes from
REMOTES value.  And index counts from zero, not one.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoFix bugs in git-for-steve.sh script,
Steve Youngs [Sun, 28 Jun 2015 05:25:43 +0000 (15:25 +1000)]
Fix bugs in git-for-steve.sh script,

This changeset fixes one of those "hard to find" errors you get in shell
scripts that turn out to be a single character fix.  Sheesh.  So in the 2
days I spent tracking down this bloody 1 char fix I also tidied up the
rest of the script and improved the UI a tad.  Also fixed a couple of
other bugs that hadn't been discovered yet. :)

* contrib/git-for-steve.sh: Fix/improve quoting throughout.
Some UI improvements.
(set_aliases): Add missing ')'.
(set_keys): Grep for '^default-key' instead of 'default-key' in
gpg.conf in case it is commented out.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoContrib script fix from Horst
Steve Youngs [Sat, 27 Jun 2015 03:28:37 +0000 (13:28 +1000)]
Contrib script fix from Horst

* merges:
  fix git-for-steve to work on systems that don't symlink /bin/sh to bash

8 years agoFix portability prob in git-for-steve.sh
Steve Youngs [Sat, 27 Jun 2015 03:13:08 +0000 (13:13 +1000)]
Fix portability prob in git-for-steve.sh

* contrib/git-for-steve.sh: Make it a bash script.
(set_myremote): Properly quote $REMOTES

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agofix git-for-steve to work on systems that don't symlink /bin/sh to bash
Horst G. Burkhardt [Sat, 27 Jun 2015 02:45:24 +0000 (12:45 +1000)]
fix git-for-steve to work on systems that don't symlink /bin/sh to bash

Signed-off-by: Horst G. Burkhardt <mc@680x0.com>
8 years agoFix a couple of typos in the formats and aliases in git-for-steve.sh
Steve Youngs [Fri, 26 Jun 2015 13:18:42 +0000 (23:18 +1000)]
Fix a couple of typos in the formats and aliases in git-for-steve.sh

* contrib/git-for-steve.sh (set_formats, set_aliases): Typo fixes.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoTemporarily turn off dbus detection.
Steve Youngs [Fri, 26 Jun 2015 04:10:10 +0000 (14:10 +1000)]
Temporarily turn off dbus detection.

Lets not build the dbus emodule until it actually does something.

* configure.ac: Disable dbus detection.

* modules/Makefile.am: Comment out DESCEND_DBUS to keep autogen.sh
happy.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoUpdate & fix texi docs to build clean against makeinfo v5.2
Steve Youngs [Mon, 15 Jun 2015 07:37:10 +0000 (17:37 +1000)]
Update & fix texi docs to build clean against makeinfo v5.2

This seemingly monster changeset is nothing more than simple compile
warning fixes.  But now the docs compile clean, and clean is good. :-)

* info/lispref/abbrevs.texi
* info/lispref/annotations.texi
* info/lispref/backups.texi
* info/lispref/buffers.texi
* info/lispref/building.texi
* info/lispref/commands.texi
* info/lispref/compile.texi
* info/lispref/consoles-devices.texi
* info/lispref/control.texi
* info/lispref/databases.texi
* info/lispref/debugging.texi
* info/lispref/dialog.texi
* info/lispref/display.texi
* info/lispref/ent.texi
* info/lispref/eval.texi
* info/lispref/extents.texi
* info/lispref/faces.texi
* info/lispref/files.texi
* info/lispref/frames.texi
* info/lispref/functions.texi
* info/lispref/glyphs.texi
* info/lispref/gutter.texi
* info/lispref/hash-tables.texi
* info/lispref/help.texi
* info/lispref/internationalization.texi
* info/lispref/intro.texi
* info/lispref/keymaps.texi
* info/lispref/ldap.texi
* info/lispref/lispref.texi
* info/lispref/lists.texi
* info/lispref/loading.texi
* info/lispref/macros.texi
* info/lispref/markers.texi
* info/lispref/menus.texi
* info/lispref/minibuf.texi
* info/lispref/modes.texi
* info/lispref/mule.texi
* info/lispref/numbers.texi
* info/lispref/objects.texi
* info/lispref/openssl.texi
* info/lispref/os.texi
* info/lispref/packaging.texi
* info/lispref/positions.texi
* info/lispref/postgresql.texi
* info/lispref/processes.texi
* info/lispref/range-tables.texi
* info/lispref/scrollbars.texi
* info/lispref/searching.texi
* info/lispref/sequences.texi
* info/lispref/specifiers.texi
* info/lispref/streams.texi
* info/lispref/strings.texi
* info/lispref/symbols.texi
* info/lispref/syntax.texi
* info/lispref/text.texi
* info/lispref/tips.texi
* info/lispref/toolbar.texi
* info/lispref/variables.texi
* info/lispref/windows.texi
* info/lispref/x-windows.texi
* info/sxemacs-faq.texi
* info/sxemacs/custom.texi
* info/sxemacs/menus.texi
* info/sxemacs/programs.texi
* info/sxemacs/sxemacs.texi

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoUpdate SPPM
Steve Youngs [Mon, 15 Jun 2015 04:34:36 +0000 (14:34 +1000)]
Update SPPM

* info/sppm.texi (IRC): JackaLX -> SteveYoungs

* info/sppm.texi (Voting): Votes to be decided by simple majority,
which I think is easier and fairer.

* info/sppm.texi (Sending a patch from a git repo): Update, use
the "for-steve" workflow, encourage GnuPG signing, mention and
recommend git-for-steve.sh.

* info/sppm.texi (Making Releases): Update to bring it inline with
what I actually do on release day.

* info/sppm.texi (Compatibility): Clarify a little.

* info/sppm.texi (Setting up a publicly accessible repo):
Explicitly use `git-for-steve.sh' in the example setup, and
mention it in the text.

* info/sppm.texi (Other Developers' Repositories): Add everyone's
repo that I know of.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoFix cl-loop-parser.y for bison 2.7
Nelson Ferreira [Sun, 14 Jun 2015 14:51:47 +0000 (10:51 -0400)]
Fix cl-loop-parser.y for bison 2.7

* modules/cl/cl-loop-parser.y: Use double quotes for api.prefix

8 years agoMerge remote-tracking branch 'origin/master' into for-steve
Nelson Ferreira [Sun, 14 Jun 2015 14:07:33 +0000 (10:07 -0400)]
Merge remote-tracking branch 'origin/master' into for-steve

8 years agoAdd 'scan-error' error type.
Steve Youngs [Sun, 14 Jun 2015 06:01:39 +0000 (16:01 +1000)]
Add 'scan-error' error type.

* src/syntax.c: Add `Qscan_error'.

* src/syntax.c (syms_of_syntax): DEFERROR_STANDARD it.

* src/syntax.c (scan_lists): Use it.

* lisp/subr.el (error): Add it to the docstring.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoError when callbacks aren't available in curl:download
Steve Youngs [Sat, 13 Jun 2015 04:10:27 +0000 (14:10 +1000)]
Error when callbacks aren't available in curl:download

* lisp/ffi/ffi-curl.el (curl:download): Error when attempting to
dl to a buffer when that can't be done.

* lisp/ffi/ffi-curl.el (curl:download&): Ditto.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoUpdate cl-loop-parser grammar file for bison 3.x
Steve Youngs [Sat, 13 Jun 2015 01:35:00 +0000 (11:35 +1000)]
Update cl-loop-parser grammar file for bison 3.x

This allows the cl emodule to build with bison version 3.x, and sets
the minimum required version to 2.7

* m4/sxe-bldchain-progs.m4 (SXE_PROG_BISON): Set minimum bison
version needed to v2.7.x,

* modules/cl/cl-loop-parser.y: Use api.prefix, api.pure instead of
name-prefix, pure_parser which are deprecated.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoTry to gracefully handle not having ffi-callbacks.
Steve Youngs [Fri, 12 Jun 2015 14:22:32 +0000 (00:22 +1000)]
Try to gracefully handle not having ffi-callbacks.

The change in 3ba78988 (effi.c) meant that ffi-curl.el and ffi-sqlite.el
could not be loaded if you weren't on a i386 machine.  This changeset
takes care of that.

* lisp/ffi/ffi-curl.el (curl:cb-write-to-buffer): Wrap in
#'ignore-errors because our ffi-callbacks don't work on x86_64.

* lisp/ffi/ffi-curl.el (curl:download): Only attempt dl to a
buffer if curl:cb-write-to-buffer is bound.

* lisp/ffi/ffi-sqlite.el (sqlite-generic-collation): Wrap in
#'ignore-errors because our ffi-callbacks don't work on x86_64.

* lisp/ffi/ffi-sqlite.el (sqlite-create-collation): Error if
sqlite-generic-collation isn't bound.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
8 years agoRework dirname tests & prevent 2 cores at configure time
Steve Youngs [Fri, 12 Jun 2015 00:33:27 +0000 (10:33 +1000)]
Rework dirname tests & prevent 2 cores at configure time

* merges:
  Fix configure dirname. Also streamline dirname usage.
  Fix configure check for realpath and dirname. Also streamline dirname usage.