unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6675: 23.2; field, header and headers
@ 2010-07-20  6:32 Leo
  2010-07-20  9:06 ` Štěpán Němec
  2011-06-30  0:15 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 8+ messages in thread
From: Leo @ 2010-07-20  6:32 UTC (permalink / raw)
  To: 6675

RFC822, 2822, 5322 all seem very clear about the meaning and use of
'field' and 'header'.

However in function names and arguments in message.el and Gnus, header
usually means 'field' and headers means 'header'. Sometimes field is
used directly to mean 'field' as in message-fetch-field.

I find this inconsistency confusing. I think message.el and Gnus should
follow the same terminology used in the RFCs mentioned above and other
files, for example those in mail/, in Emacs to be consistent with their
use of 'field' and 'header'.

HTH,
Leo





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#6675: 23.2; field, header and headers
  2010-07-20  6:32 bug#6675: 23.2; field, header and headers Leo
@ 2010-07-20  9:06 ` Štěpán Němec
  2010-07-20 20:29   ` Leo
  2011-06-30  0:15 ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 8+ messages in thread
From: Štěpán Němec @ 2010-07-20  9:06 UTC (permalink / raw)
  To: Leo; +Cc: 6675

Leo <sdl.web@gmail.com> writes:

> RFC822, 2822, 5322 all seem very clear about the meaning and use of
> 'field' and 'header'.
>
> However in function names and arguments in message.el and Gnus, header
> usually means 'field' and headers means 'header'. Sometimes field is
> used directly to mean 'field' as in message-fetch-field.
>
> I find this inconsistency confusing. I think message.el and Gnus should
> follow the same terminology used in the RFCs mentioned above and other
> files, for example those in mail/, in Emacs to be consistent with their
> use of 'field' and 'header'.

Just in case you didn't know and it might be of some help/reference:

(info "(gnus)Headers")
(info "(gnus)Terminology")

My take on it is: consistency surely is nice, but I never felt this to
be a problem with Gnus (IOW, I see there is a lot of problems with
inconsistent identifier naming, not only in Gnus, but in Emacs in
general (as in any software of its size), but I don't see a problem with
headers/fields in particular); bigger concern for me is that some
not-necessarily-very-careful-and-well-thought-out change to the manual
or even function names as you seem to suggest would make things only
worse.

Štěpán





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#6675: 23.2; field, header and headers
  2010-07-20  9:06 ` Štěpán Němec
@ 2010-07-20 20:29   ` Leo
  0 siblings, 0 replies; 8+ messages in thread
From: Leo @ 2010-07-20 20:29 UTC (permalink / raw)
  To: Štěpán Němec; +Cc: 6675

On 2010-07-20 10:06 +0100, Štěpán Němec wrote:
> Just in case you didn't know and it might be of some help/reference:
>
> (info "(gnus)Headers")
> (info "(gnus)Terminology")

Anyway, having a closer look at mail/, I found it also has
inconsistency.

> My take on it is: consistency surely is nice, but I never felt this to
> be a problem with Gnus (IOW, I see there is a lot of problems with
> inconsistent identifier naming, not only in Gnus, but in Emacs in
> general (as in any software of its size), but I don't see a problem
> with headers/fields in particular); bigger concern for me is that some
> not-necessarily-very-careful-and-well-thought-out change to the manual
> or even function names as you seem to suggest would make things only
> worse.

Gnus seems to be in maintenance mode for years. So I don't suppose
someone would take the trouble to think it out well.

Leo





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#6675: 23.2; field, header and headers
  2010-07-20  6:32 bug#6675: 23.2; field, header and headers Leo
  2010-07-20  9:06 ` Štěpán Němec
@ 2011-06-30  0:15 ` Lars Magne Ingebrigtsen
  2011-06-30  2:28   ` Kevin Rodgers
  2011-06-30  3:14   ` Glenn Morris
  1 sibling, 2 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-06-30  0:15 UTC (permalink / raw)
  To: 6675

tags 6775 wontfix
close 6775
thanks

Leo <sdl.web@gmail.com> writes:

> However in function names and arguments in message.el and Gnus, header
> usually means 'field' and headers means 'header'. Sometimes field is
> used directly to mean 'field' as in message-fetch-field.
>
> I find this inconsistency confusing. I think message.el and Gnus should
> follow the same terminology used in the RFCs mentioned above and other
> files, for example those in mail/, in Emacs to be consistent with their
> use of 'field' and 'header'.

Yes, it's unfortunate that (especially older) functions in Gnus use
"field" where we really mean "header", but changing function names and
breaking third-party code for consistency here isn't worth it.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#6675: 23.2; field, header and headers
  2011-06-30  0:15 ` Lars Magne Ingebrigtsen
@ 2011-06-30  2:28   ` Kevin Rodgers
  2011-06-30  2:34     ` Lars Magne Ingebrigtsen
  2011-06-30  3:14   ` Glenn Morris
  1 sibling, 1 reply; 8+ messages in thread
From: Kevin Rodgers @ 2011-06-30  2:28 UTC (permalink / raw)
  To: 6675

On 6/29/11 6:15 PM, Lars Magne Ingebrigtsen wrote:
> tags 6775 wontfix
> close 6775
> thanks
>
> Leo<sdl.web@gmail.com>  writes:
>
>> However in function names and arguments in message.el and Gnus, header
>> usually means 'field' and headers means 'header'. Sometimes field is
>> used directly to mean 'field' as in message-fetch-field.
>>
>> I find this inconsistency confusing. I think message.el and Gnus should
>> follow the same terminology used in the RFCs mentioned above and other
>> files, for example those in mail/, in Emacs to be consistent with their
>> use of 'field' and 'header'.
>
> Yes, it's unfortunate that (especially older) functions in Gnus use
> "field" where we really mean "header", but changing function names and
> breaking third-party code for consistency here isn't worth it.

defalias + make-obsolete = define-obsolete-function-alias

-- 
Kevin Rodgers
Denver, Colorado, USA






^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#6675: 23.2; field, header and headers
  2011-06-30  2:28   ` Kevin Rodgers
@ 2011-06-30  2:34     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-06-30  2:34 UTC (permalink / raw)
  To: Kevin Rodgers; +Cc: 6675, bugs

tags 6675 wontfix
close 6675
thanks

Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:

>> Yes, it's unfortunate that (especially older) functions in Gnus use
>> "field" where we really mean "header", but changing function names and
>> breaking third-party code for consistency here isn't worth it.
>
> defalias + make-obsolete = define-obsolete-function-alias

Not worth the churn.  Or breaking stuff eventually.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#6675: 23.2; field, header and headers
  2011-06-30  0:15 ` Lars Magne Ingebrigtsen
  2011-06-30  2:28   ` Kevin Rodgers
@ 2011-06-30  3:14   ` Glenn Morris
  2011-06-30 10:56     ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2011-06-30  3:14 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 6675

Lars Magne Ingebrigtsen wrote:

> tags 6775 wontfix
> close 6775
> thanks

FYI this kind of thing has no effect unless you cc (I recommend bcc if
you are including non-control stuff for other addresses) control@debbugs.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#6675: 23.2; field, header and headers
  2011-06-30  3:14   ` Glenn Morris
@ 2011-06-30 10:56     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-06-30 10:56 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 6675, bugs

tags 6675 wontfix
close 6675
thanks

Glenn Morris <rgm@gnu.org> writes:

> FYI this kind of thing has no effect unless you cc (I recommend bcc if
> you are including non-control stuff for other addresses) control@debbugs.

Thanks again.  One of these centuries I'm going to get the hang of using
debbugs, I'm sure...

(This time with Bcc to control.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-30 10:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-20  6:32 bug#6675: 23.2; field, header and headers Leo
2010-07-20  9:06 ` Štěpán Němec
2010-07-20 20:29   ` Leo
2011-06-30  0:15 ` Lars Magne Ingebrigtsen
2011-06-30  2:28   ` Kevin Rodgers
2011-06-30  2:34     ` Lars Magne Ingebrigtsen
2011-06-30  3:14   ` Glenn Morris
2011-06-30 10:56     ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).