From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.help Subject: Re: Scroll on save Date: Tue, 14 Jul 2020 18:13:54 +0200 Message-ID: <87y2nmvzul.fsf@gmail.com> References: <20200713223521.jbjgmzyxxp2w45ot.ref@Ergus> <20200713223521.jbjgmzyxxp2w45ot@Ergus> <20200714103220.p4t357hedaujs67o@ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27059"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Ergus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 14 18:14:37 2020 Return-path: Envelope-to: geh-help-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 1jvNZk-0006tK-MT for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Jul 2020 18:14:36 +0200 Original-Received: from localhost ([::1]:56412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvNZj-0003TQ-Mj for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Jul 2020 12:14:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvNZ9-0003Qw-5R for help-gnu-emacs@gnu.org; Tue, 14 Jul 2020 12:13:59 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:39806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jvNZ7-0001Bo-P1 for help-gnu-emacs@gnu.org; Tue, 14 Jul 2020 12:13:58 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id d18so17820458edv.6 for ; Tue, 14 Jul 2020 09:13:57 -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=jyLzuaLLnceAdZtcRPpiKWQIc/MGpI1gHxArqz1XJos=; b=EGO2laM/8c1sFjrUYnh2j8LLW42O249FLd8adhNhOihY7QAEKdeK3AGfRPbC7rzvHa PPcqTPgs34vk4vP3OCBt1YP3BQ+1IpGEl3uHVStarXW1ASLbIwQo0uIYVtMIW1WI+N9N NYk3uIH6S7J2BGgX8p6p2P9TwLXGyb+vTRwdoy3Uq2PariK0LvwTuh8H0aEuf29LM9K5 ZQdvk2xgeyWAPF/KYSD+16vDWHyi1ZYhptm+a44WIVxydQIP6EgiVjOvEcQIMtR/Skpz wuSybuGOUqx+9OLvRoxaX4WczdEAeKBLlONvdu8QewoNzBrGo8gDbjjgKPZZx7+4vBKz 3Sig== 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=jyLzuaLLnceAdZtcRPpiKWQIc/MGpI1gHxArqz1XJos=; b=lp6m7JBRbzYR37aGnLIp8QMTxc2d2aGn6GGeb09VOBlP8m0XZw20m0RCRSX3szPp0+ pewhsZJEKyOdwmxMqvw2bEuyENRGwn0L6xD++KHJ6lExXnWQbm5Fz8FtK4wDe2JY3/dd yxjRsgVeRLNALnOy5yXctpBxIYODqri/8dZ7h+YGq+6hUIIs1Rpm1cnEZsn6NPKkyZCi t+fvdCpW4fCNzV4zU+gTQ4nQ77QK3qCvDQTT90x7apnX04YAF6m0a+2P8IAZwK09jB2J C4Z2wZ8Tpr3blDr4qfmNegV+ecQN2M9hUjEOUiktTxwTqRhR2dLBBbl3RVg9/mMRTAo4 ZKcQ== X-Gm-Message-State: AOAM5308yB4m6Cua4+2gdKLBsldI3pL/MVONkwurpb5HRqUmEANi6KXV j9FcKwP/Uh6Ji/c4cse9it2VxD28Mg== X-Google-Smtp-Source: ABdhPJysYXMGoVcjfTe3C5CcUSDbgw59ca07HODdI3U7bWXDAz+iOXF1zycUDX9UJgD2CVTzKv1XHA== X-Received: by 2002:a50:f385:: with SMTP id g5mr5060852edm.347.1594743235833; Tue, 14 Jul 2020 09:13:55 -0700 (PDT) Original-Received: from vicarie ([2a02:8109:b640:2344::529c]) by smtp.gmail.com with ESMTPSA id o21sm12757587eja.37.2020.07.14.09.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 09:13:55 -0700 (PDT) In-Reply-To: <20200714103220.p4t357hedaujs67o@ergus> (Ergus's message of "Tue, 14 Jul 2020 12:32:20 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=narendraj9@gmail.com; helo=mail-ed1-x533.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123542 Archived-At: Ergus writes: The next thing that I would try is using the command `profiler-start` just before saving the buffer and then `profiler-report` after saving the buffer to narrow your search down to a couple of functions that might be causing this. I am not sure if this would actually help but worth trying. > This is weird, because both hooks are nil. And the problem starts > randomly after some time without apparent reason. > > On Tue, Jul 14, 2020 at 12:38:05AM +0200, Narendra Joshi wrote: >>I would recommend that you check the values for after-save-hook and >>before-save-hook. >> >>On Tue, 14 Jul 2020, 00:35 Ergus, wrote: >> >>> Hi: >>> >>> Recently I have observed that when I save long files (C-x C-s) (either >>> in a C file or Latex); for some reason emacs scrolls to some different >>> place in the buffer. I am pretty sure that it should has to do with my >>> config, but I don't know where to start looking for the problem. >>> >>> Does anyone has an idea or similar experience in the past? Any help to >>> solve it will be fine. >>> >>> Thanks in advance, >>> Ergus. >>> >>> >>> > -- Narendra Joshi