GNU bug report logs - #1771
23.0.60; suggest "both" option for copyright-at-end-flag

Previous Next

Package: emacs;

Reported by: Kevin Ryde <user42 <at> zip.com.au>

Date: Fri, 2 Jan 2009 22:25:03 UTC

Severity: wishlist

To reply to this bug, email your comments to 1771 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1771; Package emacs. (Fri, 02 Jan 2009 22:25:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Ryde <user42 <at> zip.com.au>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 02 Jan 2009 22:25:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Kevin Ryde <user42 <at> zip.com.au>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; suggest "both" option for copyright-at-end-flag
Date: Sat, 03 Jan 2009 09:18:15 +1100
Some perl files have a copyright statement at the start in comments and
then again at the end in the embedded documentation.  A couple of
examples picked at random,

 http://search.cpan.org/src/GUIDO/libintl-perl-1.16/lib/Locale/TextDomain.pm  
 http://search.cpan.org/src/ECOCODE/Finance-Quote-1.15/lib/Finance/Quote.pm

It's a little redundant of course, but the start puts it in front of the
programmer and the end in the POD goes through to the man/html/whatever
docs, so it's not completely outrageous.

It'd be great if copyright-update could update both places.  Maybe a
"both" mode for copyright-at-end-flag, or maybe even an "all" mode to
look for all matches, though I don't suppose three occurances would be
likely.  If the scan is pretty fast it'd be tempting to just look for
all matches, with no options.

I got the "both" effect I wanted from a bit of a hack

(defun my-copyright-update-both ()
  (interactive)
  (when (or (not (boundp 'copyright-update)) ;; if not yet loaded
            copyright-update)
    (copyright-update)
    (let ((copyright-at-end-flag (not copyright-at-end-flag)))
      (setq copyright-update t)
      (copyright-update))))


-------
In GNU Emacs 23.0.60.10 (i586-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2008-12-19 on blah.blah
configured using `configure  'CFLAGS=-O -g' '--prefix=/down/emacs/b/inst' '--with-x-toolkit=gtk''




Severity set to `wishlist' from `normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Sun, 04 Jan 2009 02:15:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.