From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Set major mode for all visited files by extension Date: Tue, 5 May 2020 14:42:07 +0700 Message-ID: References: <82913dab-368c-f955-08cc-e22f8da3585e@akwebsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53171"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Tim Johnson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 05 09:42:41 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 1jVsDx-000Di4-2H for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 09:42:41 +0200 Original-Received: from localhost ([::1]:45674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVsDw-0004NC-2T for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 May 2020 03:42:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVsDc-0004ME-VQ for help-gnu-emacs@gnu.org; Tue, 05 May 2020 03:42:20 -0400 Original-Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]:38620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVsDb-0005Nz-Ps for help-gnu-emacs@gnu.org; Tue, 05 May 2020 03:42:20 -0400 Original-Received: by mail-vs1-xe29.google.com with SMTP id h30so679924vsr.5 for ; Tue, 05 May 2020 00:42:19 -0700 (PDT) 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:content-transfer-encoding; bh=3DrZIJK9RmRfSh0ZrC83xQEugVeDsG3ho90fn5cCByg=; b=AIIFHusD5Bwe0HM9Qe9mNjpc8kcjxEt+rFNpVyOL3IVlbdrfeTJRBjEfTg3NI6iCua 7tf6v6AEvs8vXYkE/qE2TNB4QtqG+UdQj0rHipztowGSAr4WGT5ZuPrWURFPjUgpY/3c 1ucW2ZHXfovcXl7H4ORauaQc+5LEMNmHYyziZAZ/5Z1MVpOOlrtlkrS3Spg2c8qFRP+H rzlTJyj4W6laKbiImhX9t5c3cQsFwCIGyMknQp1cW1UFWF4XSBHSTbj8VQTM0t1+UQTj 4x44VkbG202OD5OFAfHcMq2BaH3ql6OCwtbwK0UpNk3x+vhzHEW+G1xLWnAUJDo24MA5 Ozsw== 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:content-transfer-encoding; bh=3DrZIJK9RmRfSh0ZrC83xQEugVeDsG3ho90fn5cCByg=; b=TZ+F35JNGgI2xU7Avy72uexfgJDi6tQ1SL0b2UhK19HfBJSBIRH58JdcOvzMLlUks3 FNllFCH8AGpnxe5KBvC4knPoX8DPyh/8WcRWtzePZucQ6bixv6EOV+2yoNOm4dzfZi2c g/XB2O1UN7GoaI4/c99SKJ5BXHONHClPkZ4c0/uW3AS/4XuBwrf0pvWGU94KTZsFq60C EHDfjCxV4895qiDZHUl3pFJVaEevCkuS1mAPivWvHYYMc/KDpDvjpd4wfKVi8ceB7KHK OAuFqTAs461rnwQi/4KBq0rWehrUzC5Zb/MSulcYCUh78ooMIzF7PRmNaxD30GBNlId8 WrDw== X-Gm-Message-State: AGi0PuYy2HSJsDAHqHL/CtOidcOnLCQZjV/+FHwFhsrpJGOtb+Ieqmh4 CmhcRI40Ey6xWtSFrpnEU66GkMHVcWgE8Q4NeCEYsQ== X-Google-Smtp-Source: APiQypIjOgGust7ejK1+D2kdxjq2hSsiT/VZNDH8YF/4TyPK4CJPxnSn8MRs45GcqCjuvAWVQTbm59n87DQvMXU1Gc0= X-Received: by 2002:a67:d61c:: with SMTP id n28mr1608769vsj.70.1588664538172; Tue, 05 May 2020 00:42:18 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e29; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe29.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: -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_PASS=-0.001, 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:123022 Archived-At: 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=E2=80=99t use session.el, just desktop.el).