branch: externals/auctex commit 03885c7627015830963ba0f7d86234ade2ba76bc Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@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 <a...@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)))