unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Evgeny Zajcev <lg.zevlg@gmail.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Buffer local `switch-to-buffer-preserve-window-point'
Date: Mon, 30 Nov 2020 18:30:38 +0100	[thread overview]
Message-ID: <7ea00c29-61f5-5ba2-3760-f47ab65b60dd@gmx.at> (raw)
In-Reply-To: <CAO=W_ZrwFh8S6U5NvVeN+LWF+ai_kW4c1NsmiG0NNhieUrEA=A@mail.gmail.com>

 > Ah, sorry, I thought that is in Emacs, but it was from my init.el :)),
 > replace with (switch-to-buffer (other-buffer))

OK.

 > The problem with their buffer local values is that they are used for buffer
 > logic *before* buffer is set as current, see `switch-to-buffer'.  We should
 > either use `(buffer-local-value NAME buffer)' to get their values in
 > `switch-to-buffer',

Good idea.  Could you write a patch?

martin



  parent reply	other threads:[~2020-11-30 17:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-30  8:03 Buffer local `switch-to-buffer-preserve-window-point' Evgeny Zajcev
2020-11-30  9:06 ` martin rudalics
2020-11-30 10:34   ` Evgeny Zajcev
2020-11-30 17:30 ` martin rudalics [this message]
2020-11-30 17:54   ` Evgeny Zajcev
2020-11-30 17:57     ` Evgeny Zajcev
2020-11-30 19:01       ` martin rudalics
2020-12-01  9:32         ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ea00c29-61f5-5ba2-3760-f47ab65b60dd@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=lg.zevlg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).