From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: =?UTF-8?Q?=C4=B0._?= =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp
	<self@gkayaalp.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#26609: 26.0.50;
	Opening Mercurial-controlled file causes void function error
Date: Sat, 22 Apr 2017 19:14:37 +0300
Message-ID: <87d1c4o1w2.fsf@xi.bootis>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1492877719 28984 195.159.176.226 (22 Apr 2017 16:15:19 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 22 Apr 2017 16:15:19 +0000 (UTC)
To: 26609@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 22 18:15:08 2017
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1d1xgg-0007Fl-I1
	for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Apr 2017 18:15:06 +0200
Original-Received: from localhost ([::1]:36184 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1d1xgm-0000NV-Bv
	for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Apr 2017 12:15:12 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43862)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1d1xgf-0000LQ-FY
	for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2017 12:15:06 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1d1xgc-0006zw-8s
	for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2017 12:15:05 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:36404)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1d1xgc-0006zs-4N
	for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2017 12:15:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1d1xgb-0007pA-Vh
	for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2017 12:15:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: =?UTF-8?Q?=C4=B0._?= =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp
	<self@gkayaalp.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 22 Apr 2017 16:15:01 +0000
Resent-Message-ID: <handler.26609.B.149287769830049@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 26609
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.149287769830049
	(code B ref -1); Sat, 22 Apr 2017 16:15:01 +0000
Original-Received: (at submit) by debbugs.gnu.org; 22 Apr 2017 16:14:58 +0000
Original-Received: from localhost ([127.0.0.1]:34603 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1d1xgY-0007oZ-Ih
	for submit@debbugs.gnu.org; Sat, 22 Apr 2017 12:14:58 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:52846)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <self@gkayaalp.com>) id 1d1xgW-0007oM-CV
	for submit@debbugs.gnu.org; Sat, 22 Apr 2017 12:14:56 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <self@gkayaalp.com>) id 1d1xgO-0006ym-LG
	for submit@debbugs.gnu.org; Sat, 22 Apr 2017 12:14:50 -0400
Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56439)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <self@gkayaalp.com>) id 1d1xgO-0006yh-Ih
	for submit@debbugs.gnu.org; Sat, 22 Apr 2017 12:14:48 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43814)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <self@gkayaalp.com>) id 1d1xgN-0000Ku-4L
	for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2017 12:14:48 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <self@gkayaalp.com>) id 1d1xgI-0006yH-13
	for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2017 12:14:46 -0400
Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:55738)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <self@gkayaalp.com>) id 1d1xgH-0006y8-Qk
	for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2017 12:14:41 -0400
Original-Received: from mfilter16-d.gandi.net (mfilter16-d.gandi.net [217.70.178.144])
	by relay4-d.mail.gandi.net (Postfix) with ESMTP id 86B981720A3
	for <bug-gnu-emacs@gnu.org>; Sat, 22 Apr 2017 18:14:40 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mfilter16-d.gandi.net
Original-Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196])
	by mfilter16-d.gandi.net (mfilter16-d.gandi.net [::ffff:10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id MP0QIAMLmt0q for <bug-gnu-emacs@gnu.org>;
	Sat, 22 Apr 2017 18:14:38 +0200 (CEST)
X-Originating-IP: 95.65.176.216
Original-Received: from xi.bootis.xi.bootis (unknown [95.65.176.216])
	(Authenticated sender: self@gkayaalp.com)
	by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id A9340172095
	for <bug-gnu-emacs@gnu.org>; Sat, 22 Apr 2017 18:14:38 +0200 (CEST)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs/>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
	<bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:131876
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/131876>


Opening a file version-controlled under mercurial causes the following
error:

vc-hg--requirements-understood-p: Symbol=E2=80=99s function definition is v=
oid:
cl-set-difference

And the file is not opened.

Reproduction steps:

$ emacs -Q -file <a-hg-controlled-file>

In `vc-hg.el' `cl-lib' is required in compile time.  Requiring it in
evaluation seems to fix the problem.  Below is the patch that fixes the
problem.

8< --- begin patch --- >8

diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 5348341..37ea928 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -102,10 +102,11 @@
 ;;; Code:
=20
 (eval-when-compile
-  (require 'cl-lib)
   (require 'vc)
   (require 'vc-dir))
=20
+(require 'cl-lib)
+
 (declare-function vc-compilation-mode "vc-dispatcher" (backend))
=20
 ;;; Customization options

8< --- end patch --- >8



In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2017-04-22 built on xi.bootis
Repository revision: eb52828a439f674733ba70844b795c6673733572
Windowing system distributor 'Fedora Project', version 11.0.11899901
Recent messages:
Saving file /home/g/co/GNU-Emacs/lisp/vc/vc-hg.el...
Wrote =E2=80=98/home/g/co/GNU-Emacs/lisp/vc/vc-hg.el=E2=80=99 (54898 charac=
ters)
Finding changes in /home/g/co/GNU-Emacs/lisp/vc/vc-hg.el...done
Saving file /home/g/co/GNU-Emacs/lisp/vc/vc-hg.el...
Wrote =E2=80=98/home/g/co/GNU-Emacs/lisp/vc/vc-hg.el=E2=80=99 (54840 charac=
ters)
Quit
Undo!
Mark set
Saving file /home/g/co/GNU-Emacs/lisp/vc/vc-hg.el...
Wrote =E2=80=98/home/g/co/GNU-Emacs/lisp/vc/vc-hg.el=E2=80=99 (54878 charac=
ters)

Configured using:
 'configure --prefix=3D/home/g/local --with-x-toolkit=3Dgtk3 --with-modules
 --with-file-notification=3Dyes --with-mailutils'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES

Important settings:
  value of $LC_MESSAGES: en_GB.UTF-8
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=3Dibus
  locale-coding-system: utf-8-unix

Major mode: Shell

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message subr-x puny format-spec rfc822
mml mml-sec password-cache epa derived epg epg-config gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils whitespace vc vc-dispatcher vc-git
diff-mode easy-mmode map seq byte-opt gv bytecomp byte-compile cconv
pcmpl-unix shell pcomplete comint ansi-color ring jka-compr find-func
thingatpt help-fns radix-tree help-mode easymenu cl-loaddefs cl-lib
vc-hg dired dired-loaddefs time-date mule-util warnings tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript case-table epa-hook jka-cmpr-hook help
simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 145494 9482)
 (symbols 48 21718 1)
 (miscs 40 99 330)
 (strings 32 24013 4135)
 (string-bytes 1 760543)
 (vectors 16 15386)
 (vector-slots 8 488092 4593)
 (floats 8 63 292)
 (intervals 56 4203 0)
 (buffers 976 21))