Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7825073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:49:33+00:00 2026-06-02T08:49:33+00:00

Suppose I have a file with the following marks (or call it tags): test.el:

  • 0

Suppose I have a file with the following marks (or call it tags):

test.el:

;; =====
;; gnus:

some code here

;; ====
;; ECB:

some code here

;; =====
;; code:

some code here

(in elisp)

test.py:

# ========
# imports:

some code here

# =====
# defs:

some code here

# =====
# args:

some code here

(in python)

So I’d like to have a buffer which would list such tags (or call it marks) for a given buffer/file. And it should also facilitate navigation thru this tags in some way – with a mouse or keybindings (something similar to the table of contents functionality of rest-mode).

I wanted to solve this problem by modifing some etags function. But couldn’t find one (that would be a solution since ECB shows etags nicely in a buffer – just as I wanted).

Some other solution might have been using bookmarks – but bookmarks are not file-specific. They are system-specific. That is in bookmark-list You have all the bookmarks – while I wanted to get the bookmarks of the given file only.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T08:49:36+00:00Added an answer on June 2, 2026 at 8:49 am

    Using the Emacs Lisp example code, I solved it with the following that could be added to a hook for emacs-lisp-mode, and should be easy to tweak for other languages.

    (make-local-variable 'outline-regexp)
    (setq outline-regexp ";; =+\n;; ")
    (make-local-variable 'outline-heading-end-regexp)
    (setq outline-heading-end-regexp ":\n")
    (outline-minor-mode 1)
    

    You can now use standard outline mode, which has keybindings like this:

    C-c @ C-p  -> prevous header
    C-c @ C-n  -> next header
    
    C-c @ C-t  -> hide code between headers
    C-c @ C-a  -> show all the code between headers
    

    If you temporarily hide the headers, you will get an outline of your buffer, move where you want, then show the code again.

    For python, just replace the ;; in the regexp with #.

    outline-mode comes with Emacs, and is documented there if you need more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Are file descriptors shared when fork()ing? Suppose I have following code in
Suppose I have a Javascript file function js_main(args){ /* some code */ var x
Suppose I have an XSD file having below lines of code; <xsd:simpleType name=test> <xsd:restriction
Suppose I have the following Java file in a library: package test; public abstract
Suppose I have a file test.c containing the following: // line 1 // line
Suppose we have the following HTML file: <html xmlns=http://www.w3.org/1999/xhtml> <head> <title>Test iframe download</title> <script
Suppose I have the following code in C: FILE* a=fopen(myfile.txt,r); FILE* b,c; There is
Suppose you have the following file: textfield,datetimefield,numfield foo,2008-07-01 17:50:55.004688,1 bar,2008-07-02 17:50:55.004688,2 The Ruby code
Suppose i have a php file named main.php It Contains following code include 'config.php';
Suppose I have the following list: ID3_tag = ['Title','Artist','Album','Track'] And I have a file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.