From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.help Subject: Re: Same file on two buffers - Two different major modes Date: Wed, 4 Nov 2020 12:52:01 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3203"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 04 12:52:53 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 1kaHLR-0000lS-08 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 12:52:53 +0100 Original-Received: from localhost ([::1]:45958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaHLQ-0004h7-1L for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 06:52:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaHKq-0004gx-Us for help-gnu-emacs@gnu.org; Wed, 04 Nov 2020 06:52:16 -0500 Original-Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]:44667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaHKo-0004hM-TS for help-gnu-emacs@gnu.org; Wed, 04 Nov 2020 06:52:16 -0500 Original-Received: by mail-oo1-xc29.google.com with SMTP id o129so4986120ooo.11 for ; Wed, 04 Nov 2020 03:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1WSMm/8oNFq9U/RmlEKdXjEk3uc0duJx+BibdQkxndE=; b=U+T8Wo8nm/8Zx/rhf37WuUKORO8ZQXj2Zw810d3oxxtDTBUGcbmH0DhY/OrgOGczWv mFB9m6mF2vsMxGk8sWCi6UlOQ55VEx2TxcQXMAzWuz4IscpJpUPJyHQ0AhO2SJY6Jk55 VIU72Rxp46DlHwxWmgDp19pgtcRfu2UEtAUXoHSi6VO4qnUl4fAGZ13x+LRVd6OJ3Xt7 verHe6EiM76f9jPBMCzByxUzyrkS9b2s16sQPUBf/WeK4ZwfjcmsC3uD/i8KjFfCY/rA q/t6PrG5fbLsswz7qANIfIFMII4Ssi0cB1CR8PM8Yms1SW93Ha0v727ams5vUPvD1mOb CRKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1WSMm/8oNFq9U/RmlEKdXjEk3uc0duJx+BibdQkxndE=; b=r6s/76ltvYwTA4uYsYIHynC/uXL3glYcDQwQXFT9sf+885g/3rWPbmWBHAKLXvZgAN azGjSCCTWgGwXHJJ2JRnZ5rdp0pihofwg2FTmw+ND8tx0C5sqAn9HGar7q466NWtFTp3 CEnFOM/g7N12wijyE2/D6rLENmx5iX5O9c8J9yihnRRRVO7pSWOXkQ4iQXJIYquxg/8n rmWO9pUM38/GM2F4daRIwPDTG+lph7gbWCxN5QdDn3TNdewn40RVY40AqEYvptAzBu16 wHPVhFFuCtM5/+NXVAnvWThuRkl7STBJ9bCPbLjagtRjK3PUx1BMGlpWakyMbiObe8u+ FkQA== X-Gm-Message-State: AOAM530atAOeyuX9pyZPSVfgY4FEFkhGfP8sXiqVpyyhWFnDfQvNDp15 7KIyaY+yoU6hlFGR/NGcGeuhVuR21mi9vYPSO2c= X-Google-Smtp-Source: ABdhPJxoAVsYFdz8OX96Fc30vLeznUURP95UUWqgtX03ggrwAbYNzaVDenkNIinJmKdaZZm7egwkcL6KtUdEhZB9pn4= X-Received: by 2002:a4a:5404:: with SMTP id t4mr10948423ooa.60.1604490732996; Wed, 04 Nov 2020 03:52:12 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::c29; envelope-from=p.stephani2@gmail.com; helo=mail-oo1-xc29.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:124984 Archived-At: Am Mi., 4. Nov. 2020 um 12:38 Uhr schrieb Christopher Dimech : > > Can one have two buffers of the same file, next to each other, > but in different modes. Yes, see "Indirect Buffers" in the Emacs manual. E.g. you can run C-x 4 c to clone the current buffer, and then switch the major mode in the clone buffer. However, this seems to break font locking. > When I change one buffer, the major mode > of the other is changing automatically. I don't quite understand - if the buffers should have different modes, how would changing the mode in one buffer affect another buffer?