From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Alignment and images Date: Tue, 28 Jun 2016 20:17:00 +0200 Message-ID: References: <831t3hxowt.fsf@gnu.org> <83twgdw9n7.fsf@gnu.org> <83por1w6ng.fsf@gnu.org> <83lh1pw5bt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467138566 4608 80.91.229.3 (28 Jun 2016 18:29:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 18:29:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 20:29:16 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bHxl4-0002uF-5K for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 20:29:14 +0200 Original-Received: from localhost ([::1]:38738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHxl3-0002Yb-Fy for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 14:29:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHxZL-0006HW-UM for emacs-devel@gnu.org; Tue, 28 Jun 2016 14:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHxZH-0007vF-QR for emacs-devel@gnu.org; Tue, 28 Jun 2016 14:17:07 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:58939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHxZH-0007v8-JB; Tue, 28 Jun 2016 14:17:03 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1bHxZE-0005wv-LB; Tue, 28 Jun 2016 20:17:02 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEXNysfj4d/39vW7kY// ///+//7+/v3YXpzkAAACY0lEQVQ4jWWTTZObMAyGJZvN2XI8nG3i2bMTOj3HXq3v7bQ9Q+rm//+E CgL70b7MAPaD0Keh43/U5BJBx/X+pj/7S1vAOB7HMY2jXu/ykHtcgF7AWbZ3pVH/qCs4jen8YVu0 +iAgrRQknQBAG0oaYAVrJBUOKC+v9yEfeItqUUnQtRw5HzGn9g4K4FV2XbaksrW3uAMzO1/utVGs ndUWd5CdsEFxGC5MGLRpGyAOXK2ao0RxJYhq99ExNHZsehJHerRuA6XjyXFsHrxsoTZL/Au4BsT+ lfAA1jIPttvDFWswSJK3KkKK28uukz35ZO+kE8GN+WkDJTkuNpAdAgUw3Mz8CLd+lQ9ugx+srL11 7pS3BB3Xnue5Nln70NF0HR6g41dDwZMSrz7h9JLtDvLMfhqeBQQLV1NU24C3AuxiMSiEocIOggBv +8XCnOt0N24Fim+uGC8JIlE2t2c1rVPCM3OfgX9yLx1h6xpOD+dL62HpuBmLgMZ39QBHvJfiBchs WSKp1taoY0LSC1BD7ScxHbbqetBolj7rEY20r26Nyup2HJ+SfGHbjULk0DYAsR5JX+SfYmHZ0N7a 545f/GSiVNNiTwafNlAV5x5Rccw4h2DMbsEUizsRuIJR8jc+vgGs3enyHczzrPpbWSzqCpTpu+uI TUpoYp+pvQ11fjrzN0QDFOdI/fu0Vxy7cj4KQsq0HJD1V2J5NaPR8SVZA/A+cKKppARf6m+TOsSP IB8vGptHgE5B/AAY7pKBBn3AED+DdNFajqvUMnwGB0lZ9oN7rOsGrnJUf5GJvGsHuePP2sF/qn8B cLPQkdhv/lcAAAAASUVORK5CYII= In-Reply-To: <83lh1pw5bt.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 28 Jun 2016 21:12:22 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204886 Archived-At: Eli Zaretskii writes: >> So... there is no easy way implement this in the current Emacs? > > I don't think so, but maybe someone else will come up with some > rabbit-out-of-the-hat. Using the :align-to specs judiciously (i.e., only inserting them where they are needed), as well as a post-command-hook looking like (defun meme--fix-point () (let ((column (current-column))) (when (get-text-property (point) 'meme-intangible) (if (> column meme-column) (forward-char 1) (backward-char 1)) (setq column (current-column))) (setq meme-column column))) seems to make all movement commands work as expected. It's unfortunate that this is needed, though... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no