Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] 2 modules, zsh/db, zsh/gdbm, bug-fixes
- X-seq: zsh-workers 41363
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] 2 modules, zsh/db, zsh/gdbm, bug-fixes
- Date: Sun, 25 Jun 2017 15:52:32 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=50tQQ2od7iq/Yc8U3J7aaT/BFEIS5pWhPygat3S8d30=; b=hhvIhXbd4Su51yh2gKewdeTqvAVmSsNLZiDomJEAuMLSkeG34a58yI0p68uYRR9+K2 P3wt/LVt0NsispH6v5tcaLqZ8vRr6xeEzt3UJyIDVBX8zIJmAv5WijZ1bHM0nphOWvoL o4C52cXkjV78TKgFbBuNyDycDuUY2BuS2Dx/kK6uV0kflZy+yuIrPhI3CMwklU4T+R5m +5HIijKvk/LvjnEXwLiq7Uyxt6Boe9cd7cID8Oth+rak0dIIjPNxThlb32uL0PrN9Zvz NWy93Rnff/l4H6gNHs2gmYGRwXLU9Q3JWkflyNuEuY46fRljIvqNlNEkTRm9R3ozc5sf SJIA==
- In-reply-to: <etPan.594f6eec.c84cf44.63ea@zdharma.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.594b8830.59cfcf4a.63ea@zdharma.org> <170623013643.ZM7546@torch.brasslantern.com> <etPan.594f6eec.c84cf44.63ea@zdharma.org>
On Jun 25, 10:06am, Sebastian Gniazdowski wrote:
}
} As for folding, I attach Emacs screenshot, to show it really helps.
} Learned the folds from reading NERDTree source (vim plugin), it was
} huge, but had the folds and they helped.
Is this really more helpful than selective-display?
Ctrl-u 1 Ctrl-x $
Gives you e.g. (copied from builtin.c):
/* Print a builtin */
/**/
static void
printbuiltinnode(HashNode hn, int printflags)
{...
}
/**/
static void
freebuiltinnode(HashNode hn)
{...
}
I find that more useful than a comment with just the function name, and
it's easier to avoid redundancy or the comment being out of date with
respect to what's inside it, as well. Also if the 4-space indentation
has been followed carefully enough, you incrementally unfold by adding
4 to the previous selective-display level, e.g.
Ctrl-u 5 Ctrl-x $
/* Print a builtin */
/**/
static void
printbuiltinnode(HashNode hn, int printflags)
{
Builtin bn = (Builtin) hn;
if (printflags & PRINT_WHENCE_WORD) {...
}
if (printflags & PRINT_WHENCE_CSH) {...
}
if (printflags & PRINT_WHENCE_VERBOSE) {...
}
/* default is name only */
printf("%s\n", bn->node.nam);
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author