emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 03885c7627 02/11: Silence compiler warning


From: Tassilo Horn
Subject: [elpa] externals/auctex 03885c7627 02/11: Silence compiler warning
Date: Tue, 31 Jan 2023 10:41:26 -0500 (EST)

branch: externals/auctex
commit 03885c7627015830963ba0f7d86234ade2ba76bc
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Silence compiler warning
    
    * style/inputenc.el (LaTeX-inputenc-package-options): Delete
    `when' with empty body.
---
 style/inputenc.el | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/style/inputenc.el b/style/inputenc.el
index 14ff61c6f7..e2e28cd7a7 100644
--- a/style/inputenc.el
+++ b/style/inputenc.el
@@ -1,6 +1,6 @@
 ;;; inputenc.el --- AUCTeX style for `inputenc.sty'  -*- lexical-binding: t; 
-*-
 
-;; Copyright (C) 2005-2021  Free Software Foundation, Inc.
+;; Copyright (C) 2005-2023  Free Software Foundation, Inc.
 
 ;; Author: Arne Jørgensen <arne@arnested.dk>
 ;; Keywords: tex
@@ -53,18 +53,17 @@
 
             ;; if necessary offer to set the coding system for saving
             ;; this buffer based on the selected input encoding
-            (when (and (null
-                        (coding-system-equal
-                         (coding-system-base
-                          (or coding-system-for-write
-                              buffer-file-coding-system))
-                         (coding-system-base
-                          (latexenc-inputenc-to-coding-system selected))))
-                       (y-or-n-p "Set coding system for saving this buffer? ")
-                       (set-buffer-file-coding-system
+            (and (null (coding-system-equal
+                        (coding-system-base
+                         (or coding-system-for-write
+                             buffer-file-coding-system))
                         (coding-system-base
-                         (latexenc-inputenc-to-coding-system selected)))
-                       (message nil)))
+                         (latexenc-inputenc-to-coding-system selected))))
+                 (y-or-n-p "Set coding system for saving this buffer? ")
+                 (set-buffer-file-coding-system
+                  (coding-system-base
+                   (latexenc-inputenc-to-coding-system selected)))
+                 (message nil))
 
             ;; return selected input encoding
             selected)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]