2002-07-25 Han-Wen <hanwen@cs.uu.nl>
+ * lily/slur.cc (get_first_notecolumn_y): robustness: don't crash
+ if no note-columns.
+
* server.el.patch: new file.
* Documentation/user/refman.itely (Point and click): updates.
@item Emacs. Emacs is an extensible text-editor. It is available from
@uref{http://www.gnu.org/software/emacs/}. You need version 21 to use
column location.
+@item XEmacs. Xemacs is very similar to emacs.
@item NEdit. NEdit runs under Windows, and Unix.
It is available from @uref{http://www.nedit.org}.
@item GVim. GVim is a lightweight GUI variant of VIM, the popular VI
emacsclient --no-wait +%l %f
@end example
@cindex @var{XEDITOR}
-For using Vim, set @var{XEDITOR} to @code{gvim +%l %f}, or use this
+If you use xemacs instead of emacs, you use @code{(gnuserve-start)} in
+your @file{.emacs}, and set @code{XEDITOR} to @code{gnuclient -q +%l %f}
+
+For using Vim, set @code{XEDITOR} to @code{gvim +%l %f}, or use this
argument with xdvi's @code{-editor} option.
@cindex NEdit
-For using NEdit, set @var{XEDITOR} to @code{nc -noask +%l %f}, or
+For using NEdit, set @code{XEDITOR} to @code{nc -noask +%l %f}, or
use this argument with xdvi's @code{-editor} option.
If can also make your editor jump to the exact location of the note
#(set! point-and-click line-column-location)
@end example
@cindex line-colomn-location
-and set @var{XEDITOR} to @code{emacsclient --no-wait +%l:%c %f}.
+and set @code{XEDITOR} to @code{emacsclient --no-wait +%l:%c %f}.
@refbugs
Real
Slur::get_first_notecolumn_y (Grob *me, Direction dir)
{
- Grob *col = dir == LEFT
- ? unsmob_grob (ly_car (scm_reverse (me->get_grob_property
- ("note-columns"))))
- : unsmob_grob
- (ly_car (me->get_grob_property ("note-columns")));
+ SCM cols = me->get_grob_property ("note-columns");
+
+ if(!gh_pair_p (cols))
+ {
+ programming_error ("No note-columns in slur?");
+ me->suicide ();
+ return 0.0;
+ }
+
+ if (dir == LEFT)
+ cols = scm_reverse(cols);
+ Grob *col = unsmob_grob (ly_car (cols));
Grob *common[] =
{
0,