<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aliens/nginx-mode, branch indent-closing-brace-with-comment-fix</title>
<subtitle>My fork of Emacs editing mode for Nginx config files.</subtitle>
<id>https://code.ryuslash.org/aliens/nginx-mode/atom?h=indent-closing-brace-with-comment-fix</id>
<link rel='self' href='https://code.ryuslash.org/aliens/nginx-mode/atom?h=indent-closing-brace-with-comment-fix'/>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/'/>
<updated>2024-04-04T21:33:34Z</updated>
<entry>
<title>Allow anything to follow a closing brace at start of line</title>
<updated>2024-04-04T21:33:34Z</updated>
<author>
<name>Tom Willemse</name>
</author>
<published>2024-04-04T21:33:34Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=5a39466285a85077f19f680071546b14e3a545e4'/>
<id>urn:sha1:5a39466285a85077f19f680071546b14e3a545e4</id>
<content type='text'>
Specifically this fixes an indentation issue with this:

    if ($host = example.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

Before this change this would have been indented as:

    if ($host = example.com) {
        return 301 https://$host$request_uri;
        } # managed by Certbot

Because the regular expression was looking for a ‘}’ with nothing following it,
but comments can follow this construct just fine.
</content>
</entry>
<entry>
<title>Merge pull request #19 from jcs-PR/badge</title>
<updated>2021-12-05T21:36:54Z</updated>
<author>
<name>Andrew J. Cosgriff</name>
</author>
<published>2021-12-05T21:36:54Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=6e9d96f58eddd69f62f7fd443d9b9753e16e0e96'/>
<id>urn:sha1:6e9d96f58eddd69f62f7fd443d9b9753e16e0e96</id>
<content type='text'>
Add stable badge</content>
</entry>
<entry>
<title>Add stable badge</title>
<updated>2021-12-05T17:01:22Z</updated>
<author>
<name>Jen-Chieh Shen</name>
</author>
<published>2021-12-05T17:01:22Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=7dc29a8d6f4f55b9a0c6e30caa09383c77e8db5d'/>
<id>urn:sha1:7dc29a8d6f4f55b9a0c6e30caa09383c77e8db5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bump version</title>
<updated>2017-06-12T04:37:24Z</updated>
<author>
<name>Andrew J Cosgriff</name>
</author>
<published>2017-06-12T04:37:24Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=a2bab83c2eb233d57d76b236e7c141c2ccc97005'/>
<id>urn:sha1:a2bab83c2eb233d57d76b236e7c141c2ccc97005</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #17 from joewreschnig/magic-fallback-mode</title>
<updated>2017-06-12T04:36:07Z</updated>
<author>
<name>Andrew J. Cosgriff</name>
</author>
<published>2017-06-12T04:36:07Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=a3ea62939516a24abd1e4efb6194bbcc5981502f'/>
<id>urn:sha1:a3ea62939516a24abd1e4efb6194bbcc5981502f</id>
<content type='text'>
Add top-level Nginx configuration blocks to magic-fallback-mode-alist.</content>
</entry>
<entry>
<title>Add top-level Nginx configuration blocks to magic-fallback-mode-alist.</title>
<updated>2017-06-10T10:30:20Z</updated>
<author>
<name>Joe Wreschnig</name>
</author>
<published>2017-06-10T10:30:20Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=95cb9169e398b7a62916d6c15bc279f2246861a6'/>
<id>urn:sha1:95cb9169e398b7a62916d6c15bc279f2246861a6</id>
<content type='text'>
As mentioned in issue #6, Nginx configuration today is often edited
indirectly as part of a CMS, and the files are often fragments rather
than a single nginx.conf.

By adding the common top-level blocks to a magic mode alist, we can
still automatically detect these files. By choosing the fallback
alist, we still allow other major modes to make a stronger claim based
on extension or literal content / interpreter match.
</content>
</entry>
<entry>
<title>version bump</title>
<updated>2017-05-25T01:12:29Z</updated>
<author>
<name>Andrew J Cosgriff</name>
</author>
<published>2017-05-25T01:12:29Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=9e25e1f696087c412a45fe004b98b9345f610767'/>
<id>urn:sha1:9e25e1f696087c412a45fe004b98b9345f610767</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #16 from Fuco1/patch-1</title>
<updated>2017-05-25T01:11:56Z</updated>
<author>
<name>Andrew J. Cosgriff</name>
</author>
<published>2017-05-25T01:11:56Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=c37ae5ffe8dc30ad991dc7963185fb9995998fdf'/>
<id>urn:sha1:c37ae5ffe8dc30ad991dc7963185fb9995998fdf</id>
<content type='text'>
Remove `run-hook`, it is run automatically.</content>
</entry>
<entry>
<title>Remove `run-hook`, it is run automatically.</title>
<updated>2017-05-24T09:15:59Z</updated>
<author>
<name>Matus Goljer</name>
</author>
<published>2017-05-24T09:15:59Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=47aaf2c9a0beb0a530430b9c12ec148af6a2bd88'/>
<id>urn:sha1:47aaf2c9a0beb0a530430b9c12ec148af6a2bd88</id>
<content type='text'>
Hi.

When using `define-derived-mode` one doesn't need (and shouldn't) use `run-hook` because the macro adds the form `run-mode-hook` itself when expanded (use macroexpand to check!).

This results in the hook being called twice, see

```elisp
(defun my-nginx-mode-init ()
  (message "Hello"))
(add-hook 'nginx-mode-hook 'my-nginx-mode-init)
```

In messages I have

    Hello [2 times]

Simply removing the form and using the one provided by the macro is enough to fix this.</content>
</entry>
<entry>
<title>version bump</title>
<updated>2017-02-13T21:26:04Z</updated>
<author>
<name>Andrew J Cosgriff</name>
</author>
<published>2017-02-13T21:26:04Z</published>
<link rel='alternate' type='text/html' href='https://code.ryuslash.org/aliens/nginx-mode/commit/?id=b58708d15a6659577945c0aa3a63983eebff2e67'/>
<id>urn:sha1:b58708d15a6659577945c0aa3a63983eebff2e67</id>
<content type='text'>
</content>
</entry>
</feed>
