Hi Jamie. On Mon, 28 Nov 2011 06:24:19 -0800, Jameson Graef Rollins <[email protected]> wrote: > On Sat, 26 Nov 2011 02:23:30 +0400, Dmitry Kurochkin > <[email protected]> wrote: > > -(defun notmuch-show-get-header (header) > > +(defun notmuch-show-get-header (header &optional props) > > "Return the named header of the current message, if any." > > - (plist-get (notmuch-show-get-prop :headers) header)) > > + (plist-get (notmuch-show-get-prop :headers props) header)) > > Hey, Dmitry. It looks like the new plist-get call is assuming props is > defined, but it looks like it's only optional in the argument list. > Wouldn't the function fail if the props argument is not supplied? >
If props is not supplied it is bound to nil. There is no special "undefined" value. Regards, Dmitry > jamie. _______________________________________________ notmuch mailing list [email protected] http://notmuchmail.org/mailman/listinfo/notmuch
