From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Set major mode for all visited files by extension Date: Tue, 5 May 2020 09:53:22 -0800 Message-ID: <3e54cef6-0cb1-d11b-cc3d-596c49225a61@akwebsoft.com> References: <82913dab-368c-f955-08cc-e22f8da3585e@akwebsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="48268"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 05 20:05:57 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 1jW1x3-000CRD-Lv for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 20:05:53 +0200 Original-Received: from localhost ([::1]:39992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jW1x2-0003OD-NO for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 14:05:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW1l3-0003Ko-0b for help-gnu-emacs@gnu.org; Tue, 05 May 2020 13:53:29 -0400 Original-Received: from gateway32.websitewelcome.com ([192.185.145.170]:16691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW1l1-0004sc-9h for help-gnu-emacs@gnu.org; Tue, 05 May 2020 13:53:28 -0400 Original-Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 89F7DE2BCCE for ; Tue, 5 May 2020 12:53:25 -0500 (CDT) Original-Received: from host2075.hostmonster.com ([67.20.113.97]) by cmsmtp with SMTP id W1kyjqCEbXVkQW1kzjyUZ5; Tue, 05 May 2020 12:53:25 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tj49.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JqEUw/dBRZEzGlSbg8aOFi4jnPqqsGe1a29JqqD3rzE=; b=Exxnzenym3+w3cRyWAntsZ5vhO Qf2yQO/eUs8JbmPrOiYEOXZfQ6Ctiq0X9KSgDwjUvD6KuM0uaAMfIV8NoBPT47YUTKxdBoCtUEIGV hHaofRdAqON5gsmBHmZJ8nHgA; Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:58562 helo=[192.168.1.6]) by host2075.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1jW1ky-0009qs-HS for help-gnu-emacs@gnu.org; Tue, 05 May 2020 11:53:24 -0600 In-Reply-To: Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2075.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - akwebsoft.com X-BWhitelist: no X-Source-IP: 64.4.232.191 X-Source-L: No X-Exim-ID: 1jW1ky-0009qs-HS X-Source-Sender: tjohnson.mtaonline.net ([192.168.1.6]) [64.4.232.191]:58562 X-Source-Auth: tim@tj49.com X-Email-Count: 1 X-Source-Cap: bW9sZG92YXM7bW9sZG92YXM7aG9zdDIwNzUuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: neutral client-ip=192.185.145.170; envelope-from=tim@akwebsoft.com; helo=gateway32.websitewelcome.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/05 13:53:25 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:123025 Archived-At: On 5/4/20 11:42 PM, Yuri Khan wrote: > On Tue, 5 May 2020 at 04:33, Tim Johnson wrote: > >> (defun reload-buffer () >> "Reload the current buffer" >> (interactive) >> (let ((curfile (buffer-file-name))) >> (kill-this-buffer) >> (find-file curfile))) > The built-in (revert-buffer), which I have bound to C-, works for > me in similar cases (but I don’t use session.el, just desktop.el). > I think they are the same, for sure. I've used emacs for 20 years, and I don't even remember why I wrote that. :) -- Tim tj49.com