[sane-devel] RFC: New sanei_pv8630 interface

Henning Meier-Geinitz henning@meier-geinitz.de
Mon, 17 Dec 2001 22:20:21 +0100


Hi,

On Sun, Dec 16, 2001 at 05:34:56PM -0700, Marcio Luis Teixeira wrote:
> Is there any way to get XEmacs (not GNUEmacs) to do the "right
> thing"? I've tried playing around with the configuration screen
> for the C mode, but I can't get "Indent line or region"  to convert
> the text into the correct form.

I'm using XEmacs 21.1 and I think indenting is "correct". Example:

static SANE_Status
dev_wait_ready (Mustek_Scanner *s)
{
  if (s->hw->flags & MUSTEK_FLAG_N)
    return n_wait_ready (s);
  else if (s->hw->flags & MUSTEK_FLAG_THREE_PASS)
    return scsi_area_wait_ready (s);
  else if ((s->hw->flags & MUSTEK_FLAG_PARAGON_1) 
	   || (s->hw->flags & MUSTEK_FLAG_PARAGON_2))
    return scsi_inquiry_wait_ready (s);
  else if (s->hw->flags & MUSTEK_FLAG_PRO)
    return scsi_sense_wait_ready (s);
  else return scsi_unit_wait_ready (s);
}

However, it only does indenting, it won't break lines to move braces
to the next line or similar.

That's a job for indent (the program). Until now, I haven't used it
for SANE, however.

Bye,
  Henning