From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Christoph Conrad <christoph.conrad@gmx.de>
Cc: Justus@piater.name, ding@gnus.org
Subject: Re: nnir.el cleanup
Date: Thu, 24 Apr 2008 20:06:30 +0200 [thread overview]
Message-ID: <v9fxtbcel5.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87hcdtep8k.fsf@ID-24456.user.uni-berlin.de> (Christoph Conrad's message of "Tue, 22 Apr 2008 19:52:58 +0200")
On Tue, Apr 22 2008, Christoph Conrad wrote:
>> Could you provide a patch that fixes/silences the Emacs 23 compiler
>> warnings?
[...]
> Changelog entry proposal:
> Fixed byte compiler warnings, deleted unnecessary code.
>
> I also deleted superfluous settings of variables to nil in a let binding.
Thanks. I've committed it with a more verbose ChangeLog entry.
> I also see some suspicious and potentially dangerous code: the
> nnir-run-* functions not supporting the &optional group all define a
> local group variable in a let binding with default value nil which
> occlude the variable of the parameter list. This is IMHO unnecessary
> cause they throw an error at the beginning of the same function when the
> group parameter is not nil.
I see that it is unnecessary, but could you elaborate why it could be
dangerous and/or provide a patch?
Or is this sufficient?
--8<---------------cut here---------------start------------->8---
--- nnir.el 24 Apr 2008 19:36:35 +0200 7.31
+++ nnir.el 24 Apr 2008 20:05:38 +0200
@@ -895,7 +895,7 @@
(save-excursion
(let ((qstring (cdr (assq 'query query)))
(prefix (nnir-read-server-parm 'nnir-wais-remove-prefix server))
- artlist score artno dirnam group)
+ artlist score artno dirnam)
(set-buffer (get-buffer-create nnir-tmp-buffer))
(erase-buffer)
(message "Doing WAIS query %s..." query)
@@ -1176,7 +1176,7 @@
(article-pattern (if (string= server "nnmaildir:")
":[0-9]+"
"^[0-9]+\\(\\.[a-z0-9]+\\)?$"))
- score artno dirnam group filenam )
+ score artno dirnam filenam)
(when (equal "" qstring)
(error "swish++: You didn't enter anything."))
--8<---------------cut here---------------end--------------->8---
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2008-04-24 18:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87y77fiszu.fsf@ID-24456.user.uni-berlin.de>
[not found] ` <87lk3fvw4l.fsf@ID-24456.user.uni-berlin.de>
[not found] ` <873apmapq9.fsf_-_@ID-24456.user.uni-berlin.de>
[not found] ` <x8tfxtm2mqc.fsf@tool.montefiore.ulg.ac.be>
2008-04-16 10:50 ` FIX Christoph Conrad
2008-04-16 18:22 ` nnir.el swish++ interface broken (was: FIX) Reiner Steib
2008-04-17 7:20 ` nnir.el swish++ interface broken Justus-bulk
2008-04-17 7:37 ` Christoph Conrad
2008-04-17 18:01 ` Christoph Conrad
2008-04-19 17:36 ` Reiner Steib
2008-04-20 7:48 ` nnir.el cleanup (was Re: nnir.el swish++ interface broken) Justus
2008-04-20 10:09 ` nnir.el cleanup Reiner Steib
2008-04-20 15:39 ` Christoph Conrad
2008-04-20 20:02 ` Reiner Steib
2008-04-22 17:52 ` Christoph Conrad
2008-04-24 18:06 ` Reiner Steib [this message]
2008-04-24 18:34 ` Christoph Conrad
2008-04-24 18:17 ` Compiler warnings in nnir.el (was: nnir.el cleanup) Reiner Steib
2008-04-25 2:27 ` Compiler warnings in nnir.el Stefan Monnier
2008-04-20 11:03 ` nnir.el cleanup (was Re: nnir.el swish++ interface broken) Christoph Conrad
2008-04-21 13:40 ` Christoph Conrad
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=v9fxtbcel5.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Justus@piater.name \
--cc=Reiner.Steib@gmx.de \
--cc=christoph.conrad@gmx.de \
--cc=ding@gnus.org \
/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.
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 NNTP newsgroup(s).