From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: string-bytes and coding systems Date: Thu, 09 Mar 2017 22:10:16 -0800 Message-ID: <87pohpwtkn.fsf@ericabrahamsen.net> References: <87r327nyto.fsf@ericabrahamsen.net> <20170309074620.GA2969@workstation> <20170309092328.GA4418@workstation> <87pohqmjy4.fsf@ericabrahamsen.net> <874lz1zpzv.fsf@debian> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489126272 387 195.159.176.226 (10 Mar 2017 06:11:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 06:11:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 07:11:08 2017 Return-path: Envelope-to: geh-help-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 ) id 1cmDlb-0007Hw-7E for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 07:11:07 +0100 Original-Received: from localhost ([::1]:37552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmDla-0004VF-Vm for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 01:11:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmDlA-0004VA-D2 for help-gnu-emacs@gnu.org; Fri, 10 Mar 2017 01:10:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmDl7-0003iv-8J for help-gnu-emacs@gnu.org; Fri, 10 Mar 2017 01:10:40 -0500 Original-Received: from [195.159.176.226] (port=41959 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmDl7-0003hO-00 for help-gnu-emacs@gnu.org; Fri, 10 Mar 2017 01:10:37 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cmDkv-00040B-Ny for help-gnu-emacs@gnu.org; Fri, 10 Mar 2017 07:10:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:WUkVx2qQflOP78RTXHVisC2AHws= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112506 Archived-At: Alexis writes: > Eric Abrahamsen writes: > >> It's not really a user command, I'm exporting vCard objects to a file. > > Might my `org-vcard` package be of any help to you? > > https://github.com/flexibeast/org-vcard > > It very much needs refactoring to separate out the vCard > input-and-output stuff from everything else - i've been struggling to > find the time and energy to do so - but maybe you'll find some of the > machinery useful? Yes! I didn't know this was out there -- it's always good to see other people's approach to the same problems. Thanks! It's true your package is closely tied to Org mode. I'm sure I'll still be able to take some pointers from it, though. Thank god I'm not trying to support vCard 2.1. Here's where I'm at now. It does the escaping, but the line folding (while implemented) isn't actually called; I'm still chewing on Eli's pointers. https://github.com/girzel/ebdb/blob/master/ebdb-vcard.el Eric