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 8387903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:20:37+00:00 2026-06-09T18:20:37+00:00

I have a problem with yasnippet and Emacs 23.4.1 on W7-64. I write a

  • 0

I have a problem with yasnippet and Emacs 23.4.1 on W7-64. I write a blog and having run into difficulties with the WordPress visual editor I am going to see whether it might be easier to simply compose everything in HTML and paste it directly into WordPress’ HTML editor. Accordingly using the rather impressive yasnippet I created the following:

#contributor : blogger
#name : blog picture link
# --
<a href="http://verylongwebsitename.com/wp-content/uploads/2012/${1:mm}/${2:folder}/fig${3:x}_l.png"><img class="alignnone" title="fig$3" src="http://verylongwebsitename.com/wp-content/uploads/2012/$1/$2/fig$3_m.png" alt="${5:alttext}" width="${6:700}" height="${7:500}" /></a>$0

to enter long and fiddly links like the one below, in html-mode:

The problem is that at some point during the process of entering the
snippet it goes funny, like this:

misbehaving yasnippet

If you look you can see that yasnippet has inserted many spaces on each line, causing much ugliness and a broken link. Because of the way that the words are sort of aligned I suspect that it’s something to do with the interaction between yasnippet and tab settings, but despite a bit of scratching around I can’t resolve the problem.

Can anybody suggest what might be causing this?

  • 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-09T18:20:38+00:00Added an answer on June 9, 2026 at 6:20 pm

    After much messing around I have found that the problem was (most likely) an issue with one of Emacs’ fill modes interacting with yasnippet in an odd way. Specifically I had it set to ‘Fill’ in HTML mode and what I apparently needed was ‘Wrap’. My crude solution was to create a keyboard macro to switch modes and assign that to a shortcut key in my .emacs file as follows:

    (fset 'my-html-fill-setup
       [?\M-x ?a ?u ?t ?o ?- ?f ?i ?l ?l ?- ?m ?o ?d ?e return ?\M-x ?v ?i ?s ?u ?a ?l ?- ?l ?i ?n ?e ?- ?m ?o ?d ?e return])
    
    (global-set-key "\C-x\C-k1" 'my-html-fill-setup)
    

    Apologies for any confusion caused. Incidentally, after managing to reinstall yasnippet I am loving it and find it very useful for all kinds of things.

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

Sidebar

Related Questions

I have problem while loading data into html select when users press or click
I have problem adding markers into marker Clusterer of Google Maps. Firebug returns error:
I have problem with sending objects via TCPClient. At first, I serialize them into
I have problem with Visual Studio Designer. When I display design of a form,
I have problem with css styles in aspx.cs file HttpContext.Current.Response.Write(<table class=\'bordered\' cellpadding=\'5\' color: \'red\'
I have problem in my xampp server php file not work if I write
I have problem with dijit.Editor. After removing it's DOM from document and re-appending it,
I have problem setting up CGI scripts to be run on Nginx, so far
I have problem implementing Preference. When i run my app and click on the
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar

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.