Timeline for How align tabs inside block of string?
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:38 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Dec 31, 2015 at 19:21 | comment | added | ReneFroger |
the Emacs Stackexchange didn't notified me that I got a reply from you. When I added (require 'align) to the code, it worked like a charm! Tobias, your help for us was tremendous! Many, many thanks for that!
|
|
Dec 27, 2015 at 19:48 | history | edited | Tobias | CC BY-SA 3.0 |
added 44 characters in body
|
Dec 27, 2015 at 13:25 | history | edited | Tobias | CC BY-SA 3.0 |
added 1018 characters in body
|
Dec 27, 2015 at 13:10 | comment | added | Tobias |
@ReneFroger I have tested the code. It worked fine for me. It may be that the align library is already loaded in my setup but not in yours. Therefore, I've added (require 'align) to the code. Now, I have tested the code again with emacs -Q to make sure that all prerequisites are correct. It works for me. My emacs-version is 24.3.1. If we need to narrow the problem down I can also list the versions of all the other packages that are required above. In order for sql-indent-string to work correctly the string must be recognized by the major mode syntax. php-mode is fine in this regard.
|
|
Dec 27, 2015 at 12:56 | history | edited | Tobias | CC BY-SA 3.0 |
Added `(require 'align)`
|
Dec 27, 2015 at 12:11 | comment | added | ReneFroger |
By the way, have you tested your code? I got the error Symbol’s value as variable is void: align-rules-list-type when I try to run your code.
|
|
Dec 26, 2015 at 20:42 | comment | added | ReneFroger | you're totally right. I really appreciate all your help, and yes, I saw the modifications, thanks for that! | |
Dec 26, 2015 at 20:11 | comment | added | Tobias |
@ReneFroger UPDATE 2 adds preservation of tab-alignment and customization of alignment. Removal of replace-string serves clean byte code compilation.
|
|
Dec 26, 2015 at 20:08 | history | edited | Tobias | CC BY-SA 3.0 |
see UPDATE 2
|
Dec 26, 2015 at 17:31 | comment | added | Tobias |
@ReneFroger Maybe, you missed the modifications? If the answer of Jordon-Biondo did fully answer your question and if I had not changed anything I would not have posted it as an answer but only referred to the solution of Jordon-Biondo. I had no chance to post the modified code as comment here. Posting a new answer was just the simplest way to help. 1more: I did deactivate indent-tabs-mode to avoid some obscure spacing. Also transferring tab-width and tab-stop-list to the temporary buffer does not help. I am investigating this. But, my spare time is limited...
|
|
Dec 26, 2015 at 14:54 | history | bounty ended | ReneFroger | ||
Dec 26, 2015 at 14:54 | vote | accept | ReneFroger | ||
Dec 26, 2015 at 14:54 | comment | added | ReneFroger | Do you know what? It's actually the answer of @Jordon-Biondo, instead an answer of you. So he would deserve the bounty actually. But propz for finding his solution and linking to it, so you should get the bounty also. Thanks for your support, it's appreciated! | |
Dec 26, 2015 at 5:53 | comment | added | Tobias |
@ReneFroger Seems there is no problem in adding sqlup-capitalize-keywords-in-region . See the update.
|
|
Dec 26, 2015 at 5:49 | history | edited | Tobias | CC BY-SA 3.0 |
add sqlup-capitalize-keywords-in-region
|
Dec 25, 2015 at 23:54 | comment | added | ReneFroger |
Tobias, thanks for your comment after my comment. However, I would like to add calling the function sqlup-capitalize-keywords-in-region from SQLup inside ` sql-indent-string` in order to capitalize the keywords. When I add sqlup-capitalize-keywords-in-region inside the function, and call it from the sql string, I got an empty result. Any tips?
|
|
Dec 25, 2015 at 22:53 | history | answered | Tobias | CC BY-SA 3.0 |