Function: easy-menu-intern

easy-menu-intern is a byte-compiled function defined in easymenu.el.gz.

Signature

(easy-menu-intern S)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/easymenu.el.gz
;;; easymenu.el --- support the easymenu interface for defining a menu  -*- lexical-binding:t -*-

;; Copyright (C) 1994, 1996, 1998-2025 Free Software Foundation, Inc.

;; Keywords: emulations
;; Author: Richard Stallman <rms@gnu.org>
;; Package: emacs

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:

;; The `easy-menu-define' macro provides a convenient way to define
;; pop-up menus and/or menu bar menus.
;;
;; This is compatible with easymenu.el by Per Abrahamsen
;; but it is much simpler as it doesn't try to support other Emacs versions.
;; The code was mostly derived from lmenu.el.

;;; Code:

(defsubst easy-menu-intern (s)
  (if (stringp s) (intern s) s))