all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: no-spam@cua.dk (Kim F. Storm)
Cc: vinicius@cpqd.com.br
Subject: Recent changes to easy-menu.el breaks "printing.el".
Date: 03 May 2002 20:39:13 +0200	[thread overview]
Message-ID: <5xy9f1qdny.fsf@kfs2.cua.dk> (raw)


I've been using Vinicius Jose Latorre's excellent "printing"
package without a glitch -- until recently.

The printing package does some pretty obscure things to setup
its Printing entry on the Tools menu, and it no longer works
for me.

I traces the problem to a recent change to easy-menu where
strings are now downcased before they are interned.

Since printing.el does not expect this, it fails.

I've fixed it in printing.el with the following small modification.
I'm using version 2.1 which may be out-dated, but I'm unable to find
anything newer.

*** printing.el~	Tue May 23 09:33:13 2000
--- printing.el	Fri May  3 12:28:09 2002
***************
*** 2740,2746 ****
  
  (defun pr-menu-get-item (name-list)
    ;; NAME-LIST is a string or a list of strings.
!   (let ((ipath [menu-bar tools Printing])
  	(len   (and (listp name-list) (length name-list))))
      (and len
  	 (cond ((= len 0) (setq name-list "nil"))
--- 2740,2746 ----
  
  (defun pr-menu-get-item (name-list)
    ;; NAME-LIST is a string or a list of strings.
!   (let ((ipath (vector 'menu-bar 'tools (pr-get-symbol "Printing")))
  	(len   (and (listp name-list) (length name-list))))
      (and len
  	 (cond ((= len 0) (setq name-list "nil"))
***************
*** 2767,2772 ****
--- 2767,2775 ----
  
  
  (defun pr-get-symbol (name)
+   ;; Recent versions of easy-menu downcase names before interning them.
+   (if (fboundp 'easy-menu-name-match)
+       (setq name (downcase name)))
    (or (intern-soft name)
        (make-symbol name)))
  

-- 
Kim F. Storm  <storm@cua.dk>

             reply	other threads:[~2002-05-03 18:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-03 18:39 Kim F. Storm [this message]
2002-05-04  3:36 ` Recent changes to easy-menu.el breaks "printing.el" Richard Stallman
2002-05-04 18:49   ` Kim F. Storm
2002-05-04 18:21     ` Eli Zaretskii
2002-05-23 22:35       ` Kim F. Storm
2002-05-24 11:52         ` Eli Zaretskii
2002-05-25 21:19           ` Richard Stallman
2002-05-26 22:15             ` Kim F. Storm
2002-05-27 22:57               ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5xy9f1qdny.fsf@kfs2.cua.dk \
    --to=no-spam@cua.dk \
    --cc=vinicius@cpqd.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.