unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Malformed cond form in x-dnd.el
@ 2004-02-05  9:17 David PONCE
  2004-02-05 11:48 ` Jan D.
  0 siblings, 1 reply; 2+ messages in thread
From: David PONCE @ 2004-02-05  9:17 UTC (permalink / raw)


Hi,

While compiling x-dnd.el, the byte-compiler complains that:

In x-dnd-get-local-file-name:
x-dnd.el:284:49:Warning: malformed cond form: `nil'

The patch below fixes that.

Sincerely,
David

Index: x-dnd.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/x-dnd.el,v
retrieving revision 1.4
diff -c -r1.4 x-dnd.el
*** x-dnd.el	3 Feb 2004 21:46:35 -0000	1.4
--- x-dnd.el	5 Feb 2004 09:05:14 -0000
***************
*** 290,296 ****
  		  (substring uri (1- (match-end 0))))
  		 ((string-match "^file:" uri)		; Old KDE, Motif, Sun
  		  (substring uri (match-end 0)))
! 		 nil)))
      (when (and f must-exist)
        (let* ((decoded-f (decode-coding-string 
  			 f
--- 290,296 ----
  		  (substring uri (1- (match-end 0))))
  		 ((string-match "^file:" uri)		; Old KDE, Motif, Sun
  		  (substring uri (match-end 0)))
! 		 )))
      (when (and f must-exist)
        (let* ((decoded-f (decode-coding-string 
  			 f

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Malformed cond form in x-dnd.el
  2004-02-05  9:17 Malformed cond form in x-dnd.el David PONCE
@ 2004-02-05 11:48 ` Jan D.
  0 siblings, 0 replies; 2+ messages in thread
From: Jan D. @ 2004-02-05 11:48 UTC (permalink / raw)
  Cc: emacs-devel

>
> While compiling x-dnd.el, the byte-compiler complains that:
>
> In x-dnd-get-local-file-name:
> x-dnd.el:284:49:Warning: malformed cond form: `nil'
>
> The patch below fixes that.

Thank you, I've been looking for that, but the line number in the
warning message confused me as it does not point to a cond at all.

	Jan D.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-05 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-05  9:17 Malformed cond form in x-dnd.el David PONCE
2004-02-05 11:48 ` Jan D.

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).