Mosè Giordano <m...@gnu.org> writes: > 2016-07-17 19:28 GMT+02:00 David Kastrup <d...@gnu.org>: >> Mosè Giordano <m...@gnu.org> writes: >> >>> It looks overall good to me, but note that error messages *do not* end >>> with a period (see `error`'s docstring) and you should replace the >>> `message' function with `format' (and I don't think `beep' is needed). >> >> Uh, no? >> >> error is a compiled Lisp function in ‘subr.el’. >> >> (error STRING &rest ARGS) >> >> Signal an error, making a message by passing args to ‘format-message’. >> In Emacs, the convention is that error messages start with a capital >> letter but *do not* end with a period. Please follow this convention >> for the sake of consistency. >> >> Note: (error "%s" VALUE) makes the message VALUE without >> interpreting format characters like ‘%’, ‘`’, and ‘'’. >> >> You don't want to have format-message called twice. So just use >> >> (error "Error skipping s-expressions at point %d." (point)) > > Of course you're right, thanks.
Well, apart from the "*do not* end with a period" bit of course. Copy&paste error. -- David Kastrup _______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel