libgeda: Fix potential NULL dereference in o_read_buffer().

In the case that a schematic file contained an embedded component
section start symbol before any object definitions, a segfault would
occur due to a NULL deference.

Coverity-ID: 201783

Closes-bug: lp-1079586
gschem: unreference existing view models on library refresh

Closes-bug: lp-1075142
gnetlist: Add -o option to --help output.

Closes-bug: lp-1079714
Fix bad keyword in PostScript headers.

Signed-off-by: Bert Timmerman <bert.timmerman@xs4all.nl>
Drastically simplify wiki Makefiles.

Removes the need to explicitly list all wiki files in the Makefiles
and keep those lists up-to-date when the wiki changes.
docs: Remove wiki-related scripts that are no longer needed.
Update configure.ac to remove deleted Makefile.
Automatic wiki import (Sat Nov 17 20:16:46 UTC 2012)
Merge branch 'wiki-import' into stable-1.8

Conflicts:
	configure.ac
	docs/Makefile.am
gnetlist: Stop drc2 backend from crashing when output is to stdout.

Fixes bug where emitting to stdout (-o -) and finding errors/warnings
caused crash attempting to emit final 'See output file' message.

Closes-bug: lp-1004757
Reviewed-by: Peter TB Brett <peter@peter-b.co.uk>
gattrib: Make "Add new attribute column" actually insert column.

I first saw bug 698608, which seems to be a duplicate of this bug, and
came up with a patch that corrects the behavior and inserts the empty
data column under the right column heading. The problem was that the
header gets alphabetically sorted into the others (after device,
footprint, and value) but the code immediately following that inserts
the new column after the last column, which seems to be making the
assumption that the headers do not get sorted.

My patch adds a new s_string_list function
(s_string_list_find_in_list()) that searches for a given string in the
list and returns the index (or -1, if it's not there), unlike the
existing function (s_string_list_in_list()) (that I copied from but
didn't touch) which just returns 1 as soon as it finds a matching
string, or 0, if it's not there. I then added code in
s_toplevel_add_new_attrib() that uses the new function to determine
where the new column header was placed and insert the new data column
at that index (instead of at the end).

Closes-bug: lp-698575
Reviewed-by: Peter TB Brett <peter@peter-b.co.uk>
gschem: Draw arrows on 'connected' dangling net ends.

Recently, gschem was changed to not draw anything at a net endpoint
when it thinks the net is connected.  This has the drawback that in
some cases the eye can be fooled into thinking that two nets are
connected together when they are not, with the concomitant risk of
badly breaking a design.

This patch alters gschem to draw an arrow in 'junction colour' on
dangling net segment ends when it thinks the net is properly
connected.  This is not an ideal solution, but should go most of the
way towards solving the "invisible errors wrecking my expensive
boards" problem.

A follow-up patch should probably do the same for printed output.

Affects-bug: lp-1014160
libgeda: Draw arrows on 'connected' dangling net ends.

Follow-on patch from commit 1598b5884ba8, to add arrow endings on printed output.

Affects-bug: lp-1014160
gschem: Add "fully-connected" net to "drawing primitives" example.

Useful for testing how net ends appear, now that the
"connection-tracking" function has been added that affects when
warning markers are printed at the ends of nets.
scheme-api: Add unit test for connections to nets in symbols.

Affects-bug: lp-994361
gschem: fix segfault when multiple windows are closed

Reported-by Vladimir Zhbanov <vzhbanov@gmail.com>, introduced in
commit 8342bddce4487edf4a7214d5d6ab83cb73a066d4.

Add new function gschem_toplevel_alloc_libgeda_toplevel which allocates
the TOPLEVEL and appends new hooks that force pin cues redraw when net
connectivity changes.

Previously each new TOPLEVEL had invalidation hooks attached which had
the GSCHEM_TOPLEVEL hardcoded, pointing at the very first window created
when gschem was launched.

Closes-bug: lp-1070243
Automatic wiki import (Sun Nov 18 15:46:11 UTC 2012)
gsch2pcb: Handle unit suffixes at element update.

gsch2pcb rewrites the Element() line while it updates an element. The
coordinates are interpreted by atoi(). New versions of PCB uses unit
suffixes like 12.4mm. When this read by atoi(), it'll return only the
integer part. It then writes back to the Element, without suffix. PCB
then interpret as micro inches.

Closes-bug: lp-986053

Reviewed-by: Peter TB Brett <peter@peter-b.co.uk>
Merge branch 'wiki-import' into stable-1.8.
Update docs for 1.8.0.