On 2016-11-07 17:27, Karl Voit writes: > I'd like to get a "Sorry" message for (1). Easy, if only I know how to > count lines in strings (as opposed to buffers). You could start by doing (split-string the_string "\n" t) (the last 't' says to omit the empty strings). So you get a list, possibly empty, of strings. Would this help for the rest? Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-09: 401.03, 2015-09: 397.63