sxemacs
12 years agoMake sure that the args array is initialized
Nelson Ferreira [Fri, 16 Sep 2011 07:32:15 +0000 (03:32 -0400)]
Make sure that the args array is initialized
CID:394
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMake sure dl.top_clip is initialized
Nelson Ferreira [Fri, 16 Sep 2011 07:24:30 +0000 (03:24 -0400)]
Make sure dl.top_clip is initialized
CID:406
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoAvoid doing decode_buffer twice when not doing clash
Nelson Ferreira [Fri, 16 Sep 2011 07:22:27 +0000 (03:22 -0400)]
Avoid doing decode_buffer twice when not doing clash
detection
CID:430
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoRemove unneeded initialization of command_builder pointer.
Nelson Ferreira [Fri, 16 Sep 2011 07:20:33 +0000 (03:20 -0400)]
Remove unneeded initialization of command_builder pointer.
CID:431
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoDo not assign the return of setlocale(LC_ALL,"C") to locale var
Nelson Ferreira [Fri, 16 Sep 2011 07:12:13 +0000 (03:12 -0400)]
Do not assign the return of setlocale(LC_ALL,"C") to locale var
since it will be no longer used afterwards.
CID:432
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoRemove unused value of eckey
Nelson Ferreira [Fri, 16 Sep 2011 07:08:39 +0000 (03:08 -0400)]
Remove unused value of eckey
CID:435
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMake sure that check and change of state is done on the
Nelson Ferreira [Fri, 16 Sep 2011 07:06:33 +0000 (03:06 -0400)]
Make sure that check and change of state is done on the
mutual exclusion zone. move the sleep outside of it.
CID:440

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agomake sure the optable_index cannot be negative, instead
Nelson Ferreira [Fri, 16 Sep 2011 06:58:50 +0000 (02:58 -0400)]
make sure the optable_index cannot be negative, instead
an assertion is made.
CID:117,116,115,114,111,110,109,88,87
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMake sure avfc is not NULL before dereferencing
Nelson Ferreira [Fri, 16 Sep 2011 06:55:59 +0000 (02:55 -0400)]
Make sure avfc is not NULL before dereferencing
CID:457
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMake sure that avfc is non null before de-reference.
Nelson Ferreira [Fri, 16 Sep 2011 06:54:12 +0000 (02:54 -0400)]
Make sure that avfc is non null before de-reference.
CID:458
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMake sure the pointers are valid before dereferencing
Nelson Ferreira [Fri, 16 Sep 2011 06:42:43 +0000 (02:42 -0400)]
Make sure the pointers are valid before dereferencing
CID:461
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoUse strncat instead of strcat, even in a paranoid fashion.
Nelson Ferreira [Fri, 16 Sep 2011 06:39:23 +0000 (02:39 -0400)]
Use strncat instead of strcat, even in a paranoid fashion.
CID:463
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMake sure that mtp has the proper play state before entering
Nelson Ferreira [Fri, 16 Sep 2011 06:29:35 +0000 (02:29 -0400)]
Make sure that mtp has the proper play state before entering
the loop.
CID:466
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoFix stupid typo on previous fix, that broke build.
Nelson Ferreira [Fri, 16 Sep 2011 03:44:22 +0000 (23:44 -0400)]
Fix stupid typo on previous fix, that broke build.
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoFix several FILE* leaks in ssl
Nelson Ferreira [Fri, 16 Sep 2011 03:33:33 +0000 (23:33 -0400)]
Fix several FILE* leaks in ssl
CID:193,194,195,196,197,198
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMake implementation comment about issues with strlen of
Nelson Ferreira [Fri, 16 Sep 2011 03:17:23 +0000 (23:17 -0400)]
Make implementation comment about issues with strlen of
NULL pointers match the implementation
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoFix several invalid uses of negative returns on acessing an array
Nelson Ferreira [Fri, 16 Sep 2011 03:16:01 +0000 (23:16 -0400)]
Fix several invalid uses of negative returns on acessing an array
due to ase_optable_index
CID:87,88,109,110,111,114,115,116,117
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoAllocate and copy ures when it would be the return address.
Nelson Ferreira [Fri, 16 Sep 2011 02:59:24 +0000 (22:59 -0400)]
Allocate and copy ures when it would be the return address.
CID:200
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMove variable path definition to avoid out-of-scope references
Nelson Ferreira [Fri, 16 Sep 2011 02:43:44 +0000 (22:43 -0400)]
Move variable path definition to avoid out-of-scope references
to the memory location.
CID:201
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCID:326,325
Nelson Ferreira [Fri, 16 Sep 2011 02:36:53 +0000 (22:36 -0400)]
CID:326,325
Use snprintf instead of sprintf. Although current sizes and formatting
string are fine (since it is only integer printing), it won't hurt to
limit the buffer.
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoUse snprint instead of sprintf. One of the uses of
Nelson Ferreira [Fri, 16 Sep 2011 02:32:37 +0000 (22:32 -0400)]
Use snprint instead of sprintf. One of the uses of
this CID:342 was of valid concern.
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoUse snprint even if there is no issue with given size...
Nelson Ferreira [Fri, 16 Sep 2011 01:43:29 +0000 (21:43 -0400)]
Use snprint even if there is no issue with given size...
Actually reduced it, so that the stack is less likely to
blow up.
CID:343
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoGet rid of harmless warning about ignoring result of getc, while ignoring ESC ISO2022...
Nelson Ferreira [Thu, 15 Sep 2011 23:36:26 +0000 (19:36 -0400)]
Get rid of harmless warning about ignoring result of getc, while ignoring ESC ISO2022 sequences.
CID:11
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoAvoid potential race condition and check only mtp as loop
Nelson Ferreira [Thu, 15 Sep 2011 23:01:26 +0000 (19:01 -0400)]
Avoid potential race condition and check only mtp as loop
exit condition, which is updated at each switch condition
that may change the state and also updated under lock.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoSigned-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
Nelson Ferreira [Thu, 15 Sep 2011 22:58:11 +0000 (18:58 -0400)]
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
Correct silly mistake in previous locking fix. Use UNLOCK instead
of LOCK.

CID:454

12 years agoAvoid resource leaks in redisplay (runes mostly).
Nelson Ferreira [Thu, 15 Sep 2011 04:34:37 +0000 (00:34 -0400)]
Avoid resource leaks in redisplay (runes mostly).
CID:175,176,177,186,187,188,189,190,191
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoEnclosed the media stop status assignment inside the
Nelson Ferreira [Thu, 15 Sep 2011 03:44:13 +0000 (23:44 -0400)]
Enclosed the media stop status assignment inside the
mutex zone. Also made sure any "derived" vars were updated
CID:440,441,442
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoUse ssize_t for string length and return from read calls
Nelson Ferreira [Thu, 15 Sep 2011 03:34:49 +0000 (23:34 -0400)]
Use ssize_t for string length and return from read calls
CID:130,131,132,133
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoInitialize the return object to Qnil
Nelson Ferreira [Thu, 15 Sep 2011 03:25:35 +0000 (23:25 -0400)]
Initialize the return object to Qnil
CID:452
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCheck for NULL return from getenv on pdump_load. These
Nelson Ferreira [Thu, 15 Sep 2011 03:13:27 +0000 (23:13 -0400)]
Check for NULL return from getenv on pdump_load. These
are made with assert since it is so early there is no
recovery possible or needed.
CID:443

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoCheck for NULL return from getenv
Nelson Ferreira [Thu, 15 Sep 2011 03:11:02 +0000 (23:11 -0400)]
Check for NULL return from getenv
CID:444
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoRemove superfluous pointer check which seems to trigger
Nelson Ferreira [Thu, 15 Sep 2011 02:54:49 +0000 (22:54 -0400)]
Remove superfluous pointer check which seems to trigger
CID:445
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMerge branch 'merges'
Steve Youngs [Wed, 14 Sep 2011 11:58:56 +0000 (21:58 +1000)]
Merge branch 'merges'

12 years agoFix potential usage of negative file handle CID:119
Nelson Ferreira [Wed, 14 Sep 2011 10:17:22 +0000 (06:17 -0400)]
Fix potential usage of negative file handle CID:119

12 years agoFix potential usage of negative file descriptor
Nelson Ferreira [Wed, 14 Sep 2011 10:15:46 +0000 (06:15 -0400)]
Fix potential usage of negative file descriptor
CID:120

12 years agoFix potential usage of negative file handle
Nelson Ferreira [Wed, 14 Sep 2011 10:10:40 +0000 (06:10 -0400)]
Fix potential usage of negative file handle
CID:119
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoMake loop explicit in signal_if_x_error CID:61
Nelson Ferreira [Wed, 14 Sep 2011 09:45:51 +0000 (05:45 -0400)]
Make loop explicit in signal_if_x_error CID:61
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoShutup unchecked call return value (CID:13)
Nelson Ferreira [Wed, 14 Sep 2011 09:41:35 +0000 (05:41 -0400)]
Shutup unchecked call return value (CID:13)
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
12 years agoFix potential array overrun of static due to sign bit expansion
Nelson Ferreira [Wed, 14 Sep 2011 09:34:29 +0000 (05:34 -0400)]
Fix  potential array overrun of static due to sign bit expansion
CID:141

12 years agoFix undefined order of eval in while condition.
Nelson Ferreira [Wed, 14 Sep 2011 09:27:18 +0000 (05:27 -0400)]
Fix undefined order of eval in while condition.
CID:30

12 years agoFix potential stack/string overflow warning
Nelson Ferreira [Wed, 14 Sep 2011 08:36:00 +0000 (04:36 -0400)]
Fix potential stack/string overflow warning
CID:379

12 years agoFix potential stack overflow (via string overflow)
Nelson Ferreira [Wed, 14 Sep 2011 08:29:22 +0000 (04:29 -0400)]
Fix potential stack overflow (via string overflow)
CID:380

12 years agoUse snprintf instead of sprint
Nelson Ferreira [Wed, 14 Sep 2011 08:24:09 +0000 (04:24 -0400)]
Use snprintf instead of sprint
CID:344 SECURE_CODING

12 years agoFix strcpy from environment variable into fixed size buffer. Fix strcat from argumen...
Nelson Ferreira [Wed, 14 Sep 2011 08:16:58 +0000 (04:16 -0400)]
Fix strcpy from environment variable into fixed size buffer.  Fix strcat from argument into fixed size buffer (call to expand_filename).
CID:381

12 years agoFix unchecked strcpy from commandline argument into fixed size buffer
Nelson Ferreira [Wed, 14 Sep 2011 08:15:53 +0000 (04:15 -0400)]
Fix unchecked strcpy from commandline argument into fixed size buffer
CID:382

12 years agoMerge branch 'merges'
Steve Youngs [Wed, 14 Sep 2011 05:30:04 +0000 (15:30 +1000)]
Merge branch 'merges'

12 years agoFix the ent-mpc issues of Bug 126.
Nelson Ferreira [Wed, 14 Sep 2011 05:05:59 +0000 (01:05 -0400)]
Fix the ent-mpc issues of Bug 126.

12 years agoCheck the result of sxemacs_stat in Fwrite_region_internal (CID:14)
Nelson Ferreira [Wed, 14 Sep 2011 04:59:52 +0000 (00:59 -0400)]
Check the result of sxemacs_stat in Fwrite_region_internal (CID:14)

12 years agoMerge branch 'merges'
Steve Youngs [Wed, 14 Sep 2011 04:26:44 +0000 (14:26 +1000)]
Merge branch 'merges'

12 years agoPrevent harmless COVERITY warning message of the BAD_ALLOC_STRLEN checker on relative...
Nelson Ferreira [Wed, 14 Sep 2011 03:20:05 +0000 (23:20 -0400)]
Prevent harmless COVERITY warning message of the BAD_ALLOC_STRLEN checker on relative_filename about the usage of pointer+1 inside strlen as parameter to xnew.

Changed it because it is indeed more maintainable to walk past the '/' and use that afterwards.

12 years agoFix CID:436 Unused value
Nelson Ferreira [Wed, 14 Sep 2011 02:44:30 +0000 (22:44 -0400)]
Fix CID:436 Unused value

12 years agoFix CID:437 Unused value
Nelson Ferreira [Wed, 14 Sep 2011 02:36:15 +0000 (22:36 -0400)]
Fix CID:437 Unused value

12 years agoMerge http://git.sxemacs.org/sxemacs
Nelson Ferreira [Wed, 14 Sep 2011 01:01:04 +0000 (21:01 -0400)]
Merge http://git.sxemacs.org/sxemacs

12 years agoMerge branch 'tooltalkless'
Steve Youngs [Tue, 13 Sep 2011 01:22:18 +0000 (11:22 +1000)]
Merge branch 'tooltalkless'

12 years agoPurge SXEmacs of tooltalk -- remainding tidy up
Steve Youngs [Tue, 13 Sep 2011 00:37:37 +0000 (10:37 +1000)]
Purge SXEmacs of tooltalk -- remainding tidy up

Finger's crossed, this is the END of tooltalk.  Yay!

* PROBLEMS: Delete the tooltalk stuff.

* etc/tests/external-widget/Makefile (CFLAGS): Remove the
-DTOOLTALK flag

* etc/tests/external-widget/test-ew-motif.c (handle_tt_input):
Remove.  It was tooltalk.

* etc/tests/external-widget/test-ew-motif.c
(HxInitializeToolTalk): Ditto.

* etc/tests/external-widget/test-ew-motif.c (main): Don't call
HxInitializeToolTalk().

* info/external-widget.texi (Using an External Client Widget):
Don't mention tooltalk.

* src/events/event-stream.c (execute_internal_event): Mention in
comments relating to tooltalk to revisit with D-Bus

* src/ui/X11/ExternalClient.h (XtNuseToolTalk): Remove.

* src/ui/X11/ExternalClient.h (XtCUseToolTalk): Ditto.

* .gitignore: Remove tooltalk directory.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoPurge SXEmacs of tooltalk cruft -- src, lisp
Steve Youngs [Mon, 12 Sep 2011 17:03:00 +0000 (03:03 +1000)]
Purge SXEmacs of tooltalk cruft -- src, lisp

This kills off pretty much all of the tooltalk.  But I expect a couple
more (at least) changesets to completely tidy it up.

* lisp/Makefile.am (corelispels): Remove check-features.el.  It
  was just tooltalk and sparcwork cruft.

* lisp/dumped-lisp.el (packages-hardcoded-lisp): Remove tooltalk
  related stuff.  Was all just comments anyway.

* lisp/subr.el (error): Remove tooltalk-error

* src/ui/Makefile.am (libsxeui_a_headers): Remove tooltalk.h

* src/ui/X11/ExternalClientP.h: Remove the use_tooltalk member
  from the ExternalClientPart struct.

* src/ui/X11/ExternalClient.c: Remove tooltalk cruft.

* src/ui/X11/ExternalClient.c (send_tooltalk_handshake): Remove.

* src/ui/X11/ExternalClient.c (tt_callback): Ditto.

* src/symsinit.h: Remove tooltalk cruft.

* src/procimpl.h: Remove tooltalk from process_methods

* src/process.c (connected_via_filedesc_p): return 0 regardless.
  It was only ever non-0 with a tooltalk connection.  'nuff said.

* src/process-unix.c (unix_tooltalk_connection_p): Remove.

* src/process-unix.c (process_type_create_unix): Remove tooltalk cruft.

* src/lrecord.h: Remove tooltalk cruft.

* src/inline.c: Ditto.

* src/gdbinit: Ditto.

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

* src/dbxrc (Usage): Ditto.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoPurge SXEmacs of tooltalk madness -- test suite
Steve Youngs [Mon, 12 Sep 2011 15:07:35 +0000 (01:07 +1000)]
Purge SXEmacs of tooltalk madness -- test suite

This eradicates tooltalk from our test suite.

* tests/Makefile.am (tooltalk_tests): Removed.

* tests/Makefile.am (EXTRA_DIST): Remove tooltalk_tests.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoPurge SXEmacs of tooltalk and CDE cruft -- docs, autoconf
Steve Youngs [Mon, 12 Sep 2011 14:31:59 +0000 (00:31 +1000)]
Purge SXEmacs of tooltalk and CDE cruft -- docs, autoconf

Tooltalk was some old Sun/Sparcworks thingamajiggy.  Nobody uses it
anymore and it has been superseded by D-Bus anyway.  Even though SXEmacs
doesn't yet have full (any?) D-Bus support we're nuking this silly
tooltalk madness now.

This changeset removes the tooltalk cruft from our build chain autotool
stuff and from the docs.

* configure.ac: Remove all the tooltalk and CDE cruft.

* m4/sxe-summary.m4 (SXE_SUMMARY): Ditto.

* etc/PACKAGES: Ditto.

* info/sxemacs-faq.texi (Q4.4.2): Removed.
  Plus nuke other mentions of tooltalk.

* info/sxemacs/packages.texi (Available Packages): Remove
  tooltalk. Yes I know that the tooltalk XEmacs package is still
  available, but there's not much point in saying so in the SXEmacs
  manual if SXEmacs doesn't support tooltalk at all.

* info/lispref/objects.texi: Remove all the tooltalk cruft.

* info/lispref/lispref.texi: Ditto.

* info/lispref/hooks.texi (Standard Hooks): Ditto.

* info/lispref/errors.texi (Standard Errors): Ditto.

* info/internals/internals.texi: Ditto.

* info/lispref/ldap.texi (LDAP Support): Set prev node to
  X-Windows.  Skips tooltalk.

* info/lispref/x-windows.texi (X-Windows): Set next node to LDAP
  Support.  Skips tooltalk.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years agoMerge branch 'merges'
Steve Youngs [Tue, 21 Jun 2011 13:05:31 +0000 (23:05 +1000)]
Merge branch 'merges'

12 years ago- [FIX] ffi-curl, avoid signalling
Zajcev Evgeny [Tue, 21 Jun 2011 12:47:10 +0000 (16:47 +0400)]
- [FIX] ffi-curl, avoid signalling

Signed-off-by: Zajcev Evgeny <zevlg@yandex.ru>
12 years agoffi-wand, removed some dups
Zajcev Evgeny [Tue, 21 Jun 2011 07:15:39 +0000 (11:15 +0400)]
ffi-wand, removed some dups

Signed-off-by: Zajcev Evgeny <zevlg@yandex.ru>
12 years agoMerge branch 'merges'
Steve Youngs [Tue, 21 Jun 2011 02:13:11 +0000 (12:13 +1000)]
Merge branch 'merges'

12 years ago- revert, avoid raw format check
Zajcev Evgeny [Mon, 20 Jun 2011 15:56:04 +0000 (19:56 +0400)]
- revert, avoid raw format check

Signed-off-by: Zajcev Evgeny <zevlg@yandex.ru>
12 years ago- [add] wand: partial support for GM lib
Zajcev Evgeny [Thu, 16 Jun 2011 09:16:28 +0000 (13:16 +0400)]
- [add] wand: partial support for GM lib
- [fix] safe version of ffi-magic

misc enhs

12 years agoMerge branch 'merges'
Steve Youngs [Thu, 16 Jun 2011 02:36:55 +0000 (12:36 +1000)]
Merge branch 'merges'

12 years agoSundry FFI fixes (see bug #127)
Steve Youngs [Thu, 16 Jun 2011 02:36:17 +0000 (12:36 +1000)]
Sundry FFI fixes (see bug #127)

Here are a couple of FFI fixes that bring us closer to fixing bug #127

* lisp/ffi/ffi-sqlite.el (sqlite-bind-value): Use sqlite-STATIC
instead of sqlite-TRANSIENT

* src/effi.c (ffi_call_using_libffi): Temporarily turn of async
timeouts when calling ffi_call()

* src/signal.c (stop_async_timeouts): Make it available
externally.

* src/signal.c (start_async_timeouts): Ditto.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
12 years ago- [enh] ffi-magic with safe strings
Zajcev Evgeny [Tue, 14 Jun 2011 18:34:45 +0000 (22:34 +0400)]
- [enh] ffi-magic with safe strings

13 years agoFix building with current git FFmpeg
Steve Youngs [Wed, 11 May 2011 23:50:23 +0000 (09:50 +1000)]
Fix building with current git FFmpeg

* m4/sxe-mm.m4 (SXE_MM_CHECK_FFMPEG): Turn off -Werror in the test
to see if url_fopen() needs ByteIOContext**.

That stuff is now deprecated in current FFmpeg git repo.  This
patch allows SXEmacs to build with it, although, with loads of
warnings.  Yeah, I'm on it. :-)

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoMerge http://git.sxemacs.org/sxemacs
Nelson Ferreira [Sun, 8 May 2011 04:42:47 +0000 (00:42 -0400)]
Merge http://git.sxemacs.org/sxemacs

13 years agoUpdate and fix our .desktop file.
Steve Youngs [Sat, 7 May 2011 07:57:33 +0000 (17:57 +1000)]
Update and fix our .desktop file.

* etc/sxemacs.desktop.in (StartupNotify): Set to false.  I'm
almost certain we don't do this.

* etc/sxemacs.desktop.in (MimeType): Update to include all the
MIME types I can think of that we support.

* etc/sxemacs.desktop.in (Categories): The spec says that if we're
a "TextEditor", we should also be a "Utility".  So add that.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoLibpng 1.5 fix.
Steve Youngs [Fri, 6 May 2011 16:20:17 +0000 (02:20 +1000)]
Libpng 1.5 fix.

One of the things they did in libpng 1.5 was to remove all the stuff in
1.4 and earlier that had been marked deprecated.  Of course we were using
some of those deprecated things.  This patch fixes that and brings back
PNGs to SXEmacsen built with the latest libpng.

* src/ui/glyphs-eimage.c (png_instantiate): Rewrite and update for
libpng 1.5.x.  Also, handle interlaced PNGs.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoMerge http://git.sxemacs.org/sxemacs
Nelson Ferreira [Thu, 21 Apr 2011 01:08:06 +0000 (21:08 -0400)]
Merge http://git.sxemacs.org/sxemacs

13 years agoMerge branch 'merges'
Steve Youngs [Mon, 18 Apr 2011 23:30:01 +0000 (09:30 +1000)]
Merge branch 'merges'

13 years agoMerge branch 'merges', remote-tracking branch 'njsf/master' into merges
Steve Youngs [Mon, 18 Apr 2011 22:48:54 +0000 (08:48 +1000)]
Merge branch 'merges', remote-tracking branch 'njsf/master' into merges

13 years ago* src/mule/input-method-xlib.c: Fix a header due to
Nelson Ferreira [Mon, 18 Apr 2011 17:12:00 +0000 (13:12 -0400)]
* src/mule/input-method-xlib.c: Fix a header due to
        EmacsFrame.h move that had been overlooked.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
13 years agoEven friendlier advice to the novice git SXEmacs
Nelson Ferreira [Mon, 18 Apr 2011 17:06:30 +0000 (13:06 -0400)]
Even friendlier advice to the novice git SXEmacs
contributor.

* autogen.sh: also state one needs to git push --tag
* autogen.sh: if the detected TREE_VERSION differs from the expected, issue a warning

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
13 years ago* src/ui/glyphs.c: properly allow Q_mask_{file,data},
Nelson Ferreira [Mon, 18 Apr 2011 16:11:16 +0000 (12:11 -0400)]
* src/ui/glyphs.c: properly allow Q_mask_{file,data},
                   Q_hotspot_{x,y}, Q_foreground,
                   Qbackground on tty only builds.

* src/ui/glyphs.c(syms_of_glyphs): ditto.

* src/ui/glyphs.c(xface_normalize): properly handle
                   tty only builds by returning nil
                   when HAVE_WINDOW_SYSTEM is not
                   defined and conversion is needed.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
13 years agoBuild improvements
Nelson Ferreira [Mon, 18 Apr 2011 16:07:50 +0000 (12:07 -0400)]
Build improvements

* autogen.sh: when outside of "proper" git repos
              try to be friendlier by using the
              defaults and suggest the tag command.

* src/Emacs{Frame,Manager,Shell}*, src/External*:
              moved into src/ui/X11 as that is the
              proper place for those files

* src/Makefile.am, src/ui/X11/Makefile.am:
              adjust targets for move of the files

* src/mule/input-method-motif.c: adjust header path
* src/ui/lwlib/lwlib-Xlw.c: ditto

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
13 years agoCouple more warning fixes
Steve Youngs [Fri, 18 Mar 2011 23:19:41 +0000 (09:19 +1000)]
Couple more warning fixes

* src/media/sound-jack.c (sound_jack_shutdown_cbfun): Use %p mask
to prevent compiler warning.

* src/media/media.c (__add_prop): Drop the artificial attribute to
prevent a compiler warning.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoFix a few more compiler warnings.
Steve Youngs [Fri, 18 Mar 2011 13:00:18 +0000 (23:00 +1000)]
Fix a few more compiler warnings.

* src/skiplist.h: #if 0 out some as yet unused function
declarations.  Prevents compiler warnings.

* src/openssl.c (Fossl_ssl_cipher_description):
SSL_get_current_cipher returns a const, so needs to be stored in a
const.  Prevents compiler warning.

* src/openssl.c (Fossl_ssl_cipher_version): Ditto.

* src/openssl.c (Fossl_ssl_cipher_name): Ditto.

* src/openssl.c (Fossl_ssl_cipher_bits): Ditto.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoFixes all byte-compiler warnings in our elisp.
Steve Youngs [Mon, 14 Mar 2011 08:43:31 +0000 (18:43 +1000)]
Fixes all byte-compiler warnings in our elisp.

* lisp/ffi/ffi-wand.el
(Wand-mode-insert-info, Wand-mode-select-region): Use
#'when-boundp to avoid byte-compiler warning.  Also require
wid-edit for same.

* lisp/help.el: Globally declare #'find-function #'find-variable
and #'view-scroll-lines-up at compile time to avoid byte-compiler
warnings.

* lisp/minibuf.el (x-read-color-completion-table): defvar it at
compile time to avoid byte-compiler warning.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoFix several compiler warnings in C sources.
Steve Youngs [Mon, 14 Mar 2011 07:36:18 +0000 (17:36 +1000)]
Fix several compiler warnings in C sources.

This takes care of most of the compiler warnings that have crept back into
the C sources.  There are a couple more left, but they will require us to
catch up with current versions of libpng and ffmpeg, so not quite as
trivial as the rest of this patch.

* modules/ase/ase-metric.c (ase_metric_prnt): Don't try to cast
XASE_METRIC_DIST to unsigned int, use %p printf mask instead.
Prevents compiler warning about casting pointer to int of
different size.

* src/ui/TTY/terminfo.c (emacs_tparam): cast string to char* to
keep tparm/ncurses happy.
Prevents compiler warning.

* src/ui/X11/glyphs-x.c (x_subwindow_query_geometry): Cast dx, dy
to int.
Prevents a compiler warning about wrong types.

* src/media/sound-alsa.h (sound_alsa_aj_data_s): samplerate is an
unsigned int.
Prevents a compiler warning.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoAdd Last version ChangeLog and tweak SPPM
Steve Youngs [Sun, 13 Mar 2011 22:19:33 +0000 (08:19 +1000)]
Add Last version ChangeLog and tweak SPPM

* info/sppm.texi (Making Releases): Tweak the instructions in a
couple of places.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoSXEmacs 22.1.14 (Geo) is Released! v22.1.14
Steve Youngs [Sun, 13 Mar 2011 13:55:32 +0000 (23:55 +1000)]
SXEmacs 22.1.14 (Geo) is Released!

* INSTALL: Couple minor arch -> git updates.

* PROBLEMS: Update version it applies to

* etc/NEWS: Release day update

* autogen.sh (sxemacs_codename): Geo
  (TREE_VERSION): Bump

* info/sxemacs/sxemacs.texi (Top): Bump version the manual
corresponds to.

* info/sppm.texi: Update version and date macros

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoMerge branch 'merges'
Steve Youngs [Sun, 28 Nov 2010 01:11:35 +0000 (11:11 +1000)]
Merge branch 'merges'

13 years agoMerge branch 'sppm-git'
Nelson Ferreira [Sat, 27 Nov 2010 20:26:33 +0000 (15:26 -0500)]
Merge branch 'sppm-git'

13 years agoRefactored a bit the SPPM portion of Patches and Version control. Now Patches only...
Nelson Ferreira [Sat, 27 Nov 2010 20:25:27 +0000 (15:25 -0500)]
Refactored a bit the SPPM portion of Patches and Version control. Now Patches only deals with how to send a patch, and Version Control shows how to setup repos. Cross references were added.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
13 years agoMerge branch 'merges'
Steve Youngs [Mon, 15 Nov 2010 01:15:38 +0000 (11:15 +1000)]
Merge branch 'merges'

13 years agoMerge branch 'sppm-update'
Horst Günther Burkhardt III [Mon, 15 Nov 2010 00:28:17 +0000 (11:28 +1100)]
Merge branch 'sppm-update'

13 years agoA note on PRs and associated git hooks in sppm.texi 13.0.1
Horst Günther Burkhardt III [Mon, 15 Nov 2010 00:27:34 +0000 (11:27 +1100)]
A note on PRs and associated git hooks in sppm.texi 13.0.1

Signed-off-by: Horst Günther Burkhardt III <horst@sxemacs.org>
13 years agoQuick typo fix in SPPM
Steve Youngs [Wed, 10 Nov 2010 23:00:00 +0000 (09:00 +1000)]
Quick typo fix in SPPM

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoMerge branch 'sppmupd'
Steve Youngs [Wed, 10 Nov 2010 04:40:00 +0000 (14:40 +1000)]
Merge branch 'sppmupd'

13 years agoUpdate SPPM converting all the tla stuff to git stuff
Steve Youngs [Wed, 10 Nov 2010 04:39:10 +0000 (14:39 +1000)]
Update SPPM converting all the tla stuff to git stuff

This gives the SPPM the once over to cover all the stuff that changes
because we now use git.

* info/sppm.texi (Patches): Rewrite for git
  (Publicly Accessible Repo): New node.
  (Private Repo): New node.
  (Making Releases): Rewrite for git.
  (Version Control): Rewrite for git.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoUpdate the .gitignore to cater for in-tree builds
Steve Youngs [Thu, 4 Nov 2010 13:23:12 +0000 (23:23 +1000)]
Update the .gitignore to cater for in-tree builds

* .gitignore: Update to cater for in-tree builds

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoConvert the tla-generated versioning info to git-generated
Steve Youngs [Thu, 4 Nov 2010 11:44:02 +0000 (21:44 +1000)]
Convert the tla-generated versioning info to git-generated

This changeset converts all of our sexy automagic versioning info
from being tla-based to being git-based.  The old tla variables
are now gone, replaced with git equivalents...

    SXEMACS_ARCH_VERSION -> SXEMACS_GIT_VERSION
    sxemacs_arch_version -> sxemacs_git_version
    sxemacs-arch-version -> sxemacs-git-version
    SXEMACS_MAIN_ARCH_VERSION -> removed.

Also, a .gitignore has been added to the repo.

* src/emacs.c (vars_of_emacs): New variable, Vsxemacs_git_version,
sxemacs-git-version

* m4/sxe-summary.m4: tla -> git

* lisp/version.el (emacs-version): Use sxemacs-git-version instead
of the old arch one.

* lisp/obsolete.el (sxemacs-arch-version): Obsolete it.

* lisp/build-rpt.el (build-rpt-subject): Use SXEMACS_GIT_VERSION
instead of the old arch one.

* configure.ac: tla -> git

* autogen.sh: Convert all the tla/arch stuff to git stuff.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
13 years agoInitial git import v22.1.13
Steve Youngs [Thu, 4 Nov 2010 05:33:50 +0000 (15:33 +1000)]
Initial git import