From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dick.r.chiang@gmail.com Newsgroups: gmane.emacs.devel Subject: Re: defadvice bug or something else? Date: Thu, 29 Apr 2021 00:11:06 -0400 Message-ID: <87h7jp4tnp.fsf@dick> References: <87fsz9swcf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7981"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 29 06:11:44 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lby1g-0001yh-Kh for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Apr 2021 06:11:44 +0200 Original-Received: from localhost ([::1]:48090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lby1f-0004M8-NZ for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Apr 2021 00:11:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lby19-0003wu-37 for emacs-devel@gnu.org; Thu, 29 Apr 2021 00:11:11 -0400 Original-Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:35416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lby17-0007NT-HJ for emacs-devel@gnu.org; Thu, 29 Apr 2021 00:11:10 -0400 Original-Received: by mail-qk1-x72b.google.com with SMTP id 66so26431893qkf.2 for ; Wed, 28 Apr 2021 21:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=k0wf4Q/354JsmcxWg3pxGIA3DOn1Hx277fqKhBjdfA4=; b=QU9DKHvb4qLDI6kwRlklvEwjwgvJludLIwtsgAmPNRLuWkqCnkcmkCl2u0jiYbDWZO r0cIVvSVD5eJ3R0vuZD1xfhz7L8jTbO7j5Kp9YM2NPDSgrN0zpJCJ+OevJdfvXChTumB uDPgfZP1cHS/OsxQuE99kEUQahbG1XDS7a3hcGvls7yECJMpSoy8ODrijL6FbO54Semz kBvftT6Vtpnt+ziczvTv9PC5qRV3h2rwwiQ6+1yMbZRSP1PmPqgWtRWqk9HCkBCWjlt2 wumQX6XKx+yFOHXizKTfh7FHGxHZ/Gwq1qq4qNpAVPikBhrzMgPqT9aGKn92pXDtKJ3c gXvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=k0wf4Q/354JsmcxWg3pxGIA3DOn1Hx277fqKhBjdfA4=; b=PlYRawb9PcdCdtpIi/OvHeYGD0YFBVapUu5u/N3qndmNQdDxBBpMZiQCfBguXK4IhE CbMWEA/xHkJ2y1sXGmH10OscNRoPVXWLZC8EUIz+vGJUVIoBy3gFeNFnHB83jABE8ufR sUeUz9cnOo81x1+9TM7LaVarZAEjc0OaJozTB2i+B3ID4gb84PCnMKe9doJU/1lo6spL aGuUtRMEALovOTa0bNMzOsis0EdowqOdLS2sHXRtYb59lqPikj0lYwESQ1YsptTRlNAo h3FRHbL5oOiD3dmajbu9HKh3Du17hYGylhjGS97vRzICiKHi5s5nAm+LY9QfdgtvWSQf GMxQ== X-Gm-Message-State: AOAM533/Tn0qVokTyfTXTP5m7rX02welq8ozFgFIQ0dC0ejETnQdikU9 ZtgulBWk7ef2nkxeyQ2HLcA= X-Google-Smtp-Source: ABdhPJyssZk3sGvB8DnXgAen6VPbuPpY8cajy/Vl99Goxo1LSl107EYdw0Kz8+YMQMz5ue8EuQKtiQ== X-Received: by 2002:a37:a001:: with SMTP id j1mr4881567qke.487.1619669467946; Wed, 28 Apr 2021 21:11:07 -0700 (PDT) Original-Received: from localhost (pool-71-190-212-171.nycmny.fios.verizon.net. [71.190.212.171]) by smtp.gmail.com with ESMTPSA id e15sm1460939qkl.9.2021.04.28.21.11.07 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Apr 2021 21:11:07 -0700 (PDT) In-Reply-To: <87fsz9swcf.fsf@gmail.com> (Tim Cross's message of "Thu, 29 Apr 2021 11:17:09 +1000") Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=dick.r.chiang@gmail.com; helo=mail-qk1-x72b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268598 Archived-At: You make it so hard to help you, what with the syntactically erroneous code, the hand-wavy minimum reproducible example, the verbiage, and the transposition of up versus down (C-v is scroll-up, not scroll-down). emacs -Q --eval \ "(dolist (f (quote (scroll-up-command scroll-down-command))) \ (add-function \ :after (symbol-function f) \ (lambda (&rest _args) \ (redisplay) \ (princ (format \"wstart = %d, wend = %d\n\" (window-start) (window-end)) \ (function external-debugging-output)))))" \ --eval "(save-excursion (apply (function insert) (mapcar (apply-partially \ (function format) \"%d\n\") (number-sequence 1 1000))))" \ --eval "(progn (scroll-up-command) (scroll-up-command) (scroll-down-command) \ (scroll-down-command))" \ --eval "(kill-emacs)" emacs -Q --eval \ "(defun tx-window () \ (redisplay) \ (princ (format \"wstart = %d, wend = %d\n\" (window-start) (window-end)) \ (function external-debugging-output)))" \ --eval "(save-excursion (apply (function insert) (mapcar (apply-partially \ (function format) \"%d\n\") (number-sequence 1 1000))))" \ --eval "(progn (scroll-up-command) (tx-window) (scroll-up-command) (tx-window) \ (scroll-down-command) (tx-window) (scroll-down-command) (tx-window))" \ --eval "(kill-emacs)"