From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#7179: 23.2; copyright-update on spanning copyright-limit Date: Tue, 25 Jan 2022 20:33:46 +0200 Message-ID: <87r18vk6lx.fsf@tcd.ie> References: <87ocb4ky9q.fsf@blah.blah> <87pmvfst06.fsf@gnus.org> Reply-To: "Basil L. Contovounesios" Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25724"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Kevin Ryde , 7179@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 25 20:16:06 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCRIT-0006Sn-AA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jan 2022 20:16:05 +0100 Original-Received: from localhost ([::1]:49318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCQfj-0000WZ-7H for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jan 2022 13:36:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCQek-0000WI-Rq for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 13:35:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCQej-00012s-T7 for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 13:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCQej-0008ND-Qj for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 13:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jan 2022 18:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 7179-submit@debbugs.gnu.org id=B7179.164313564432118 (code B ref 7179); Tue, 25 Jan 2022 18:35:01 +0000 Original-Received: (at 7179) by debbugs.gnu.org; 25 Jan 2022 18:34:04 +0000 Original-Received: from localhost ([127.0.0.1]:50080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCQdk-0008Lc-IP for submit@debbugs.gnu.org; Tue, 25 Jan 2022 13:34:04 -0500 Original-Received: from mail-ej1-f42.google.com ([209.85.218.42]:39864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCQde-0008LG-I8 for 7179@debbugs.gnu.org; Tue, 25 Jan 2022 13:33:59 -0500 Original-Received: by mail-ej1-f42.google.com with SMTP id j2so32265855ejk.6 for <7179@debbugs.gnu.org>; Tue, 25 Jan 2022 10:33:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=uAtcUv6dar7UQmRjAMK4pvWii3bmfnj4hViTtJqAfdw=; b=ZtqVeh9fyuPsOXmmdbuk8bteck0GphvSNw5YfAhHNZlH3yv4TMWc0u6liAcF4scKlY Iq7nJZqZv40EJKpTI0FMBY5aZO0YZz9pZu5javsIAWQDWL/gs6Ng2fZ0AfnZogCWr+oT Lwea9SDUcp+MWerZb8bVzctVhjj33wfIybnwfnVL5XYklUbqmjs7pXBIaETmQ5bwrJuD z1F0C2f41sreh3R4KEgF6vcWk0C+VWy8+ZeLfFtKmBrT9/Tffeg84mUJvNTOYc3qDqSZ RzNCsfGEaBkPqdSKamYaOYmRFazyoBrEmburebKJiTMLyuirf3H7rasBsg6ALikdDMeq 2YFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=uAtcUv6dar7UQmRjAMK4pvWii3bmfnj4hViTtJqAfdw=; b=F2urTbOBU3UyQwoay82zAE3Af/sJSIDahet1sFQB5rpJbhGVrp7R5pGIHdH2qUTEh4 OBuD/lXPUwBfvt+AvgKzkZWW322GcnrMML3AjWaBAzjCdytZAX10iqVLuHL6IrcDCX/3 UahKJIf7ImdlFjuTv/jOP/rJ9AA2iduNcx0ZddOHpWADMb4nWaoCdoFjSQAjBYagYF5m MC/3so+cOMqhJkjU1iDVCg463KG8EdM0jvdsAbd4nuPowSD6FbIGhyT9EF6FtNZEiA9q tFG9wk+Kzol6jLJIebBXzXDh90JI8DnDUNfiDC+NVnH1F1SJ6ppHtfu2J1azJMJMUiQI DaLA== X-Gm-Message-State: AOAM530I8oVKoRZpf4sWUytYiUuXm7K6opmTjecTb+ATMwH2e+sUJjM1 XYJ9VepzL9yrc9TJLqbWNs99RQ== X-Google-Smtp-Source: ABdhPJyGZId9LIYOFFZbiwwjljfcWBl/6NuFZormP1In+WPcJlseJF5Y8VrDGSvZfdfwhotzgJ/qmA== X-Received: by 2002:a17:907:a41f:: with SMTP id sg31mr8771532ejc.472.1643135628598; Tue, 25 Jan 2022 10:33:48 -0800 (PST) Original-Received: from localhost (adsl-40.91.140.91.tellas.gr. [91.140.91.40]) by smtp.gmail.com with ESMTPSA id j8sm6577638ejs.136.2022.01.25.10.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 10:33:48 -0800 (PST) In-Reply-To: <87pmvfst06.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 18 Jul 2021 14:31:37 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225215 Archived-At: Lars Ingebrigtsen [2021-07-18 14:31 +0200] wrote: > Kevin Ryde writes: > >> If you're unlucky enough to have a copyright notice spanning the >> `copyright-limit' position in the buffer then M-x copyright-update makes >> a bit of a mess inserting the current year at the wrong place. For >> example, >> >> (progn >> (require 'copyright) >> (switch-to-buffer "foo") >> (erase-buffer) >> (insert (make-string (- copyright-limit 14) ?x) "\n" >> "\nCopyright 2006, 2007, 2008 Foo Bar\n\n") >> (copyright-update)) >> >> gives >> >> Copyright 20, 1006, 2007, 2008 Foo Bar >> >> where I expected >> >> Copyright 2006, 2007, 2008, 2010 Foo Bar > > This should now be fixed in Emacs 28. Thanks, but the fix comes with the following regression when using copyright-at-end-flag: 0. emacs -Q 1. (with-temp-buffer (dotimes (_ 2) (insert "Copyright 2021 FSF\n")) (require 'copyright) (let ((copyright-at-end-flag t) (copyright-query nil)) (copyright-update)) (buffer-string)) 2. C-j Expected result: Copyright 2021 FSF Copyright 2021, 2022 FSF Actual result: Copyright 2021, 2022 FSF Copyright 2021 FSF -- Basil In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu) of 2022-01-25 built on tia Repository revision: 7eca80b20444f7bd7bcb6a66a9054e029f0e7013 Repository branch: wt/emacs-28-nox System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure 'CC=ccache gcc' 'CFLAGS=-O2 -march=native' --config-cache --prefix=/home/blc/.local --program-suffix=-28-nox --enable-checking=structs --with-file-notification=yes --with-x-toolkit=no --without-x' Configured features: ACL DBUS GMP GNUTLS GPM JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER SECCOMP SOUND THREADS XIM ZLIB Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail tool-bar rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils copyright term/xterm xterm byte-opt gv bytecomp byte-compile cconv regexp-opt iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 55789 6257) (symbols 48 6656 1) (strings 32 18347 1803) (string-bytes 1 607048) (vectors 16 10694) (vector-slots 8 126491 7164) (floats 8 24 35) (intervals 56 208 7) (buffers 992 10))