From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: `vertical-motion', `goto-line' set point to invisible text Date: Tue, 05 Jul 2011 05:55:36 +0300 Message-ID: <83hb71phav.fsf@gnu.org> References: <87ei28f4re.fsf@gmail.com> <8362njqtv8.fsf@gnu.org> <83y60eoz6w.fsf@gnu.org> <87sjql5uv3.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1309834685 25065 80.91.229.12 (5 Jul 2011 02:58:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2011 02:58:05 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Dmitry Kurochkin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 05 04:58:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qdvpm-0007md-EM for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2011 04:57:58 +0200 Original-Received: from localhost ([::1]:38507 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdvpl-0006dq-Ot for ged-emacs-devel@m.gmane.org; Mon, 04 Jul 2011 22:57:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdvpX-0006d9-Iq for emacs-devel@gnu.org; Mon, 04 Jul 2011 22:57:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdvpV-0003Rc-Na for emacs-devel@gnu.org; Mon, 04 Jul 2011 22:57:43 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:40788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdvpU-0003Qz-6v for emacs-devel@gnu.org; Mon, 04 Jul 2011 22:57:40 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LNU00800AV2ZX00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Tue, 05 Jul 2011 05:57:38 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.8.216]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LNU0085DAW1YM70@a-mtaout23.012.net.il>; Tue, 05 Jul 2011 05:57:38 +0300 (IDT) In-reply-to: <87sjql5uv3.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141565 Archived-At: > From: Dmitry Kurochkin > Date: Tue, 05 Jul 2011 06:22:56 +0400 > Cc: emacs-devel@gnu.org > > Still looking for an answer to the following question earlier in this > thread: > > I am looking for a function that does something like what you described > below. I.e. moves point to the next suitable character in the given > direction. At the moment I do it with smth like: > > ;; if point is invisible, skip forward to visible text > (while (invisible-p p) > (setq p (next-single-char-property-change p 'invisible))) I think your code is the right way. I don't think anything ready-to-use exists.