From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "=?UTF-8?Q?Jos=C3=A9?= A. Romero L." Newsgroups: gmane.emacs.bugs Subject: bug#19150: 25.0.50; [Easy PG] error in process filter Date: Sat, 22 Nov 2014 13:47:08 +0100 Message-ID: <547085CC.3030402@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1416660502 6449 80.91.229.3 (22 Nov 2014 12:48:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2014 12:48:22 +0000 (UTC) To: 19150@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 22 13:48:16 2014 Return-path: Envelope-to: geb-bug-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 1XsA6p-0006CU-Hh for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Nov 2014 13:48:15 +0100 Original-Received: from localhost ([::1]:45189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsA6p-0007Uj-3k for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Nov 2014 07:48:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsA6h-0007Ua-Do for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 07:48:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsA6c-0003FZ-FT for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 07:48:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsA6c-0003FO-BQ for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 07:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XsA6c-0002EG-47 for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 07:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "=?UTF-8?Q?Jos=C3=A9?= A. Romero L." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Nov 2014 12:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19150 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.14166604568531 (code B ref -1); Sat, 22 Nov 2014 12:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Nov 2014 12:47:36 +0000 Original-Received: from localhost ([127.0.0.1]:41426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsA6B-0002DW-1G for submit@debbugs.gnu.org; Sat, 22 Nov 2014 07:47:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43285) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsA66-0002DJ-Od for submit@debbugs.gnu.org; Sat, 22 Nov 2014 07:47:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsA61-00037l-If for submit@debbugs.gnu.org; Sat, 22 Nov 2014 07:47:30 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsA61-00037R-FI for submit@debbugs.gnu.org; Sat, 22 Nov 2014 07:47:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsA5w-0007Sx-I5 for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 07:47:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsA5o-0002yp-FV for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 07:47:20 -0500 Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:50422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsA5o-0002ye-4Z for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 07:47:12 -0500 Original-Received: by mail-wi0-f172.google.com with SMTP id n3so1692419wiv.5 for ; Sat, 22 Nov 2014 04:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=MbsXstjkApka4VB0ITVKqT70G2Xdve6Jwov1HdIA1No=; b=I6SJlhnpvnPBzVXzoDTO1uz7qaRxacgdtBhV2r0+qKlxiGkwwp3o1KR0+/Wby5NVaF QuKs4NcMHdSgHeOY3iTorxt0b5FqYtr+tMbyDpivgqvgBTwIsH3dBEBG73SQt+6cKQSu Kax/z55+0RNtsKqlYYWXkaKNBWBfDrPPyF0NsT0gNhVQwlxOoL4hV+JgeIc3TPVLhDwU ieVMpdyHnuUJYcq3+3ivIOKrtfV9VY2bmgLrqPUizfOGIpkwJRN3DHLgJ+8GdF9D70ia A6B0Opmc37ouN2C7gWqdh1UPkTe0TEfsFBojSI8xsM8bJkEVymskGiAhrE3aveEEzn/D M8YQ== X-Received: by 10.194.85.83 with SMTP id f19mr17645911wjz.20.1416660431234; Sat, 22 Nov 2014 04:47:11 -0800 (PST) Original-Received: from [192.168.0.12] (89-69-99-218.dynamic.chello.pl. [89.69.99.218]) by mx.google.com with ESMTPSA id gy4sm3158861wib.11.2014.11.22.04.47.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Nov 2014 04:47:10 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96417 Dear Emacs maintainers, There's a little bug in the logic of the Easy PG Assistant: whenever one tries to execute the `epa-decrypt-region' function on any region the following error occurs: error in process filter: epg--process-filter: Wrong type argument: listp, epa-passphrase-callback-function This is caused by an incompatibility between epg.pl and epa.pl, looks like the changes in interface in the former haven't been reflected in the latter. The following patch fixes this specific bug: ====================== CUT HERE ===================================== --- bug/emacs_trunk/lisp/epa.el 2014-11-20 20:11:39.475380000 +0100 +++ fix/emacs_trunk/lisp/epa.el 2014-11-22 13:21:46.191478570 +0100 @@ -853,12 +853,8 @@ (save-excursion (let ((context (epg-make-context epa-protocol)) plain) - (setf (epg-context-passphrase-callback context) - #'epa-passphrase-callback-function) - (setf (epg-context-progress-callback context) - (cons - #'epa-progress-callback-function - "Decrypting...")) + (epg-context-set-passphrase-callback context #'epa-passphrase-callback-function) + (epg-context-set-progress-callback context #'epa-progress-callback-function) (if epa-pinentry-mode (setf (epg-context-pinentry-mode context) epa-pinentry-mode)) (message "Decrypting...") ====================== CUT HERE ===================================== There are other places where `setf' is being still used in epa.el to set different epg values. It'd be good if someone could have a look at that. In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of 2014-11-20 on moksha Repository revision: mina86@mina86.com-20141117204835-paxrwolqd1cgwtdp Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Debian GNU/Linux unstable (sid) Configured using: `configure --prefix=/usr --with-xpm --with-jpeg --with-tiff --with-png --with-rsvg --with-x --with-x-toolkit=gtk --with-xft --with-m17n-flt --with-libotf' 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 Important settings: value of $LC_ALL: pl_PL.UTF-8 value of $LC_CTYPE: pl_PL.UTF-8 value of $LANG: pl_PL.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t global-undo-tree-mode: t undo-tree-mode: t ido-everywhere: t openwith-mode: t recentf-mode: t global-surround-mode: t surround-mode: t evil-mode: t evil-local-mode: t diff-auto-refine-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent messages: Updating buffer list...done Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help Mark set Decrypting... Processing /tmp/epg-input7092jo: ...done Decrypting...done Replace the original text? (y or n) y Malformed quoted-printable text [2 times] (No files need saving) When done with this frame, type C-x 5 0 Load-path shadows: /home/ja/.emacs.d/elpa/sunrise-x-tabs-1.445/sunrise-x-tabs hides ~/emacs/sunrise-x-tabs /home/ja/.emacs.d/elpa/sunrise-commander-6.455/sunrise-commander hides ~/emacs/sunrise-commander /home/ja/.emacs.d/elpa/sunrise-x-checkpoints-1.440/sunrise-x-checkpoints hides ~/emacs/sunrise-x-checkpoints /home/ja/.emacs.d/elpa/sunrise-x-loop-3.423/sunrise-x-loop hides ~/emacs/sunrise-x-loop /home/ja/.emacs.d/elpa/sunrise-x-popviewer-3.444/sunrise-x-popviewer hides ~/emacs/sunrise-x-popviewer /home/ja/.emacs.d/elpa/sunrise-x-tree-1.450/sunrise-x-tree hides ~/emacs/sunrise-x-tree /home/ja/.emacs.d/elpa/sunrise-x-modeline-2.423/sunrise-x-modeline hides ~/emacs/sunrise-x-modeline /home/ja/.emacs.d/elpa/sunrise-x-mirror-2.423/sunrise-x-mirror hides ~/emacs/sunrise-x-mirror /home/ja/.emacs.d/elpa/auto-complete-20141111.2346/auto-complete-config hides ~/emacs/auto-complete/auto-complete-config /home/ja/.emacs.d/elpa/auto-complete-20141111.2346/auto-complete-pkg hides ~/emacs/auto-complete/auto-complete-pkg /home/ja/.emacs.d/elpa/auto-complete-20141111.2346/auto-complete hides ~/emacs/auto-complete/auto-complete ~/emacs/agda/eri hides /usr/share/emacs/site-lisp/agda/eri ~/emacs/agda/agda2-highlight hides /usr/share/emacs/site-lisp/agda/agda2-highlight ~/emacs/agda/annotation hides /usr/share/emacs/site-lisp/agda/annotation ~/emacs/agda/agda2 hides /usr/share/emacs/site-lisp/agda/agda2 ~/emacs/agda/agda-input hides /usr/share/emacs/site-lisp/agda/agda-input ~/emacs/agda/agda2-mode hides /usr/share/emacs/site-lisp/agda/agda2-mode ~/emacs/agda/agda2-abbrevs hides /usr/share/emacs/site-lisp/agda/agda2-abbrevs ~/emacs/agda/agda2-queue hides /usr/share/emacs/site-lisp/agda/agda2-queue /usr/share/emacs/site-lisp/autotest-mode hides /usr/share/emacs/site-lisp/autoconf/autotest-mode ~/emacs/whitespace hides /usr/share/emacs/25.0.50/lisp/whitespace /usr/share/emacs/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/25.0.50/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/25.0.50/lisp/textmodes/rst /usr/share/emacs/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/25.0.50/lisp/textmodes/ispell /home/ja/.emacs.d/elpa/emms-20141104.1238/tq hides /usr/share/emacs/25.0.50/lisp/emacs-lisp/tq Features: (shadow mail-extr emacsbug sendmail qp ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff vc-bzr shell mule-util gnutls parse-time mm-archive network-stream starttls url-http tls url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers finder-inf dabbrev imenu jka-compr debug eieio-opt speedbar sb-image ezimage dframe find-func ibuf-ext ibuffer wdired executable ffap thingatpt url-parse auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core gnus-util password-cache url-vars epa-file vc-git misearch multi-isearch sunrise-x-loop sunrise-x-mirror sunrise-x-modeline sunrise-x-popviewer sunrise-x-tabs sunrise-x-tree sunrise-x-embed sunrise-commander term ehelp sort hl-line find-dired pcomplete comint ansi-color esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-util esh-mode disp-table enriched desktop frameset help-mode epa derived epg smex pp undo-tree diff server ecb-snapshot-autoloads less-autoloads info package epg-config css-mode smie minibuf-isearch browse-url flyspell ispell cl-macs org-install ido-goto-symbol ido openwith recentf tree-widget dired-dd dired-dd-b3-menu dired-x dired-aux evil-numbers surround devilize-nxml evil evil-integration evil-maps evil-commands evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core evil-common windmove rect evil-digraphs evil-vars psvn advice wid-edit cl gv log-edit message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mailabbrev mail-utils gmm-utils mailheader ring pcvs-util add-log diff-mode easy-mmode easymenu edmacro kmacro cl-loaddefs cl-lib slime-autoloads proof-site proof-autoloads pg-vars time-date savehist cus-start cus-load tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 335082 57582) (symbols 48 38224 0) (miscs 40 631 705) (strings 32 83383 17956) (string-bytes 1 2368192) (vectors 16 40004) (vector-slots 8 1387730 187364) (floats 8 200 483) (intervals 56 5099 1052) (buffers 976 38) (heap 1024 84116 15685)) Cheers, -- José A. Romero L. escherdragon@gmail.com "We who cut mere stones must always be envisioning cathedrals." (Quarry worker's creed)