From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul K Newsgroups: gmane.emacs.help Subject: org-mode: how to change the way headings are searched Date: Wed, 17 Aug 2016 12:52:34 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1471436655 10168 195.159.176.226 (17 Aug 2016 12:24:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2016 12:24:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 17 14:24:07 2016 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 1bZzt8-0002Cs-9R for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2016 14:24:06 +0200 Original-Received: from localhost ([::1]:47295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZzt5-0006hM-F8 for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2016 08:24:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZySb-0005fb-Vk for help-gnu-emacs@gnu.org; Wed, 17 Aug 2016 06:52:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZySa-0001e1-56 for help-gnu-emacs@gnu.org; Wed, 17 Aug 2016 06:52:36 -0400 Original-Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]:35938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZySa-0001ds-0I for help-gnu-emacs@gnu.org; Wed, 17 Aug 2016 06:52:36 -0400 Original-Received: by mail-it0-x241.google.com with SMTP id j124so8598840ith.3 for ; Wed, 17 Aug 2016 03:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=A+QaVhil4PUB0yDQ8WQjxjq/BU0Td4tS5xQm/GQ8Nxs=; b=rb9ynQ/2O3168D8icR6rtzAt/Z7w/MvKACwswZs3KZZBNr29kQd4eLqCok724LdSBz u7YxHCc8Lcsh1TyviT8oIVTlrof9jxHhJSFg1gpyEYuFSGbD9JjZZlrnvzp+tjFFfou7 5T0FJoBbUB/goPXaMV0qLOSd3fvwcnnjKd6xTndZ5tPnO2D3YuX+yn6ziaZjWK4LM9Sw pBwQAU1c54EN337XHSv0vhkwnSOHmkUUp5tZeqqorCBFOldKqVUFuNHARscD77DhPwGF hSNIp+plqgT2x/r4EHI/3fcg2PyMtuJwOEMbeLxmi6TPRQi8HF+ozv9UFd4c8tvTZZXQ f6iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=A+QaVhil4PUB0yDQ8WQjxjq/BU0Td4tS5xQm/GQ8Nxs=; b=R9iu+CY8SXTjUkJ+1u1zBDA3+MGRq8T5oJjS4Zbtn0xuP6jAghBCfYiLBZhFd1v2l9 VVgEvaLe4thvkivODuCE/mO2LjpEUI/orI9VAa0n2Bs5FpZP50MLxzdCVm2H5YoFIubw dI3o2Dg2TeEaFVy2nXuNDvf/+Q4mnWiI54riDaVYtb1PQyyGjJhdL7Qt38+b2omdB6ku TaIuhe37syEeDxB0lr422V7G0EzsqH/WNpl6pwNCudYZUn/Ps2205lClEXyiRhoDBb+I cJQH1CItU2DcK7ZQjHNWbxAPO4JB56KM8bub4Cm6ME9jEF4inu2fsCuJewG2PGWFkNUy GV3Q== X-Gm-Message-State: AEkoousBqHKPUPGvwbigC9A17XQrNo76PqeivKTCWtNLi7VZt4BvqQse3rDDNnWzSaUyeScCzOx6nzB/+tCpSA== X-Received: by 10.36.209.196 with SMTP id w187mr28852971itg.47.1471431154876; Wed, 17 Aug 2016 03:52:34 -0700 (PDT) Original-Received: by 10.36.119.3 with HTTP; Wed, 17 Aug 2016 03:52:34 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c0b::241 X-Mailman-Approved-At: Wed, 17 Aug 2016 08:23:26 -0400 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:111162 Archived-At: Hallo people. I'm using following org-mode version: 8.3.5 example: I want to search through "dog" string within 1st level headings of my .org file. I've written simple function to do this and bound it to C-xS: (define-key org-mode-map "\C-xS" (lambda () (interactive) (let ((helm-org-headings-max-depth 1)) ;; we want to search through top level headings only. (helm-org-in-buffer-headings)))) now, after issuing C-xS and writing "dog" string, I get list of all headings that contain "dog" string (1), which is ok, but I also get list of strings with any "d" "o" "g" existence, where these three digits are not necessarilly adjacent (2). The invonvinient thing is that search result window presents the headings of group (1) intermixed with headings from group (2). How can I make it present group (1) BEFORE group (2) or, alternativelly disable the group (2) presentation? regards