From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: no empty (zero) string predicate in Elisp Date: Sat, 25 Apr 2015 05:44:06 +0200 Organization: Aioe.org NNTP Server Message-ID: <87h9s4rhx5.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429933227 24443 80.91.229.3 (25 Apr 2015 03:40:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Apr 2015 03:40:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 25 05:40:20 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ylqx0-0007be-TI for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Apr 2015 05:40:19 +0200 Original-Received: from localhost ([::1]:47218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ylqx0-0001IB-9d for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 23:40:18 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:/n75hgbW0NvKPw7++h6NZD6+qRM= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:211707 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103989 Archived-At: In one of my w3m extensions [1] I have (defun empty-string-p (str) (string= str "") ) which obviously has nothing to do with w3m. Well, it's been known to happen. I can live with having it there. However, the next time I want to use it in some other file the byte-compiler tells me In end of data: wrap-search.el:98:1:Warning: the function `empty-string-p' is not known to be defined. OK, I get that away with (require 'w3m-unisearch) ; get empty-string-p But now I have a mention of w3m, in a file that has nothing to do with w3m, to get empty-string-p, which has nothing to do with w3m! Of course, I can do yet a third file - my-string-predicate.el - and require that from both files. But I feel I shouldn't have to. Such basic things shouldn't have to be solved on a Joe Hacker basis. It should be included. And not in ELPA, in Emacs! I'll report this as a bug unless someone presents really convincing stuff why it shouldn't be included. Or, if there is something equivalent - equivalent in the syntactic sense, I mean - I am aware of (= (length str) 0) and (equal "" str) but it should be a binary operator. [1] http://user.it.uu.se/~embe8573/conf/emacs-init/w3m/w3m-unisearch.el -- underground experts united http://user.it.uu.se/~embe8573