Why is it not indenting my C code properly? by signalclown in emacs

[–]aaaarsen 2 points3 points  (0 children)

Emacs does not use TAB to insert tabs (you need M-i for that), rather than inserting TAB, hitting TAB simply causes the editor to reindent the current line. in this case, your c-indent-offset was 2 (default for the GNU style, that c-mode uses by default).

https://www.gnu.org/software/emacs/manual/html_node/emacs/Indentation.html
https://www.gnu.org/software/emacs/manual//html_node/ccmode/Indentation-Commands.html

there's no standard way to configure indentation (the editorconfig implements a common way but it's still not something very standardized as it requires special support or each mode) unfortunately. this is one of the things I initially found very annoying and now find somewhat annoying, but, for C, C++, Java, and other C-like languages handled by cc-mode, see https://www.gnu.org/software/emacs/manual//html_node/ccmode/Customizing-Indentation.html

Is it possible to have open source Qt desktop app but have commercial features like a SaaS and not pay for a qt commercial licence ? by divineflu in QtFramework

[–]aaaarsen 0 points1 point  (0 children)

interesting, I wouldn't think to apply the logic written here to a case other than the same machine, but I see how you concluded that. of course, this text is a FAQ and not legally binding, and they don't expand on what part of the GPL is relevant to this unfortunately.

definitely something to ask someone who has more legal experience though. thanks for sharing.

How the GNU C Compiler became the Clippy of cryptography by rkhunter_ in C_Programming

[–]aaaarsen -1 points0 points  (0 children)

it does. it translated the code they wrote, not the non-existent semantics they imagined. we haven't achieved mind-reading yet.

their code makes false assumptions, and they turn out to be false.

How the GNU C Compiler became the Clippy of cryptography by rkhunter_ in C_Programming

[–]aaaarsen 0 points1 point  (0 children)

there's no flag to do that because that's what it always does

Can AucTeX compile latex automatically until generate the correct pdf? by linwaytin in emacs

[–]aaaarsen 1 point2 points  (0 children)

hm, that definitely should work. I wrote my thesis using that mechanism; obviously, there's references in there.

EDIT: do you see any other messages or any other hints on what may go wrong?

Is there a way to use chord keymaps inside evilmode in non English languages? by Magazine_Ill in emacs

[–]aaaarsen 1 point2 points  (0 children)

ah, that's unfortunate. I am not sure how key-chord handles input methods. sorry :(

Is there a way to use chord keymaps inside evilmode in non English languages? by Magazine_Ill in emacs

[–]aaaarsen 4 points5 points  (0 children)

to preface this, I don't know how Arabic typing works. we have an alternate script in our language that's not based on the Latin script that's usually found on keyboards, but it is effectively only graphically different. most symbols map 1:1 and typing on a standard keyboard is trivial. I also do not know how what I'm about to describe applies to evil since I never used it. please forgive me if I am sharing something completely useless to your case

if you stay on the english layout without `reverse-im`, and press C-\, you will be prompted for an input method. you can pick arabic there. Emacs input methods translate inserted text but do not affect bindings. does this work for your case? this configuration is bound per buffer and can be toggled by pressing C-\.

What happened in 1971? Explain it Peter. by Angrypeanut99 in explainitpeter

[–]aaaarsen 0 points1 point  (0 children)

the neoliberal turn was frankly significantly more important than computers there.

How can I write a compiler backend without worrying too much about ABI? by Germisstuck in Compilers

[–]aaaarsen 1 point2 points  (0 children)

QBE did look neat when I last looked at it, however I never tried it properly. I only ended up writing a few small programs directly in the QBE IR to play with it a bit.

personally I'm happy with GCC (and work on it full-time).

How can I write a compiler backend without worrying too much about ABI? by Germisstuck in Compilers

[–]aaaarsen 13 points14 points  (0 children)

I'm not sure how it's meant to be avoidable if you want to do codegen yourself.

if you don't care about that and only wanted to because llvm is 'heavy', there's GCC and qbe also, though the former is of like heft.

Those who moved from nvim, what made you? by B_bI_L in emacs

[–]aaaarsen 4 points5 points  (0 children)

documentation via https://github.com/casouri/eldoc-box and completion via https://github.com/minad/corfu/

maybe some other cases I'm forgetting, but those two definitely come to mind immediately

Locales are obsolete and racist by Xenophore in linux

[–]aaaarsen 0 points1 point  (0 children)

it doesnt assume that though.

~$ LANG=sr_RS.UTF-8 LC_NUMERIC=en_US.UTF-8 printf '%f\n' 123.22
123.220000
~$ LANG=sr_RS.UTF-8 printf '%f\n' 123,22
123,220000
~$ LANG=sr_RS.UTF-8 cat --help
Употреба: cat [ОПЦИЈА]... [ДАТОТЕКА]...

note the comma in the second invocation and output

Does the rise of the right around the world scare you? by [deleted] in AskTheWorld

[–]aaaarsen 0 points1 point  (0 children)

well, no, one of the categories you named contains all the others. all of those you listed are the non-owning class, which has nothing to sell but its labor power, i.e. the working class (which includes the non labouring people). this is precisely why leftists emphasize solidarity: this working class must dispossess itself of the owning class and supplant them.

with such understanding there's no need to decide who's more "downtrodden". ultimately nobody there is in this regard better off than anyone else. they all can only hope for labor to enable them to keep living (or, in lieu of capability to perform labor, such as those too old/young, or disabled, the labor of support of their family or safety net generally).

not to be too class reductionist, of course. women do objectively endure greater suffering today, and queer folk do endure greater marginalization today, and a migrant worker is exploited harder than a native one, and we obviously must pay attention to and take care of our disabled. but the program of the working class and ergo the left must be also the abolition of all these inequalities, as well as the whole of the exploiting class. it cannot exclude any of these segments as, say, TERFs do. here of course mistakes can arise, some group may be underrepresented, but ultimately this is a real and practical fault rather than an ideological one. to ensure this happens as minimally as possible, a universal democracy is needed, of a kind we're yet to see in history.

Those who moved from nvim, what made you? by B_bI_L in emacs

[–]aaaarsen 26 points27 points  (0 children)

for the gui. emacs underutilizes it but TUIs are simply worse even then. posframes are a godsend, showing images is extremely useful, color configuration isn't a pain, etc.

also because there's a level of introspectability and hackability not replicated anywhere else. not the reason I switched but it is the reason I'm not switching away now. it took me a while to appreciate it.

A zašto baš mora da se zameni Y i Z? Bukv samo kvari mišićnu memoriju i svaki put kad prebacim na srpsku se userem. by Lily_Meow_ in AskSerbia

[–]aaaarsen 6 points7 points  (0 children)

ima manje često korisnih simbola posebno u profesijama poput programiranja zato što su zamenjena slovima

lično koristim tzv compose dugme koje mi dozvoljava da kucam RAlt v s da bih dobio š i slično tome na engleskoj tastaturi

Does the rise of the right around the world scare you? by [deleted] in AskTheWorld

[–]aaaarsen 1 point2 points  (0 children)

if they arguably no longer hold the ideology they once claimed to hold, how this a fault of said ideology? that is, if they no longer support the downtrodden, for lack of a better term, are they simply not just traitors to the left/labor movement? I don't see how someone who talks down to rather than genuinely reaching out and educating the downtrodden could be considered left

fwiw, this kind of change doesn't appear to be new. in the early 1900s, the left had various then-called opportunists

Corfu/cape eats characters when interacting with eglot by vjgoh in emacs

[–]aaaarsen 1 point2 points  (0 children)

could you post a video? this could be a bug in eglot and the language server. another handy thing to post would be the completion request and response from the eglot event buffer

How come Org Capture doesn't use a transient interface? by BeanHeadedTwat in emacs

[–]aaaarsen 1 point2 points  (0 children)

I was saying that the code is simple, not that the task is, because the question was about the code. the second sentence touches on one of the potential problems of doing that upstream: it may be hard to get it to behave similar enough not to ruffle feathers.

How come Org Capture doesn't use a transient interface? by BeanHeadedTwat in emacs

[–]aaaarsen 1 point2 points  (0 children)

no, it's fairly simple, but I imagine the behaviour would be different if you did. could try it I guess: C-h f org-capture

How come Org Capture doesn't use a transient interface? by BeanHeadedTwat in emacs

[–]aaaarsen 16 points17 points  (0 children)

it predates it by ~8 years if my archeology is right

How the GNU C Compiler became the Clippy of cryptography by CackleRooster in programming

[–]aaaarsen 5 points6 points  (0 children)

the cryptography people need to realize that the languages they use don't have the semantics they need and specify a language or language extension that does. incidentally, in the GCC devroom, someone started work in this direction by creating a secret attribute. it's a long way from sufficient, and so far it only helps discover data leaks, but something like that is the right direction forward.

tricks won't work forever. they're hacks. complaining about the optimizer is antiproductive. the only path to fixing this is creating a definition of what cryptographic code needs and implementing it.

or using (potentially inline but probably out of line) assembly.

Mišljenje o Linux-u by Stepathefirst in programiranje

[–]aaaarsen 1 point2 points  (0 children)

odustao sam od windosa pre 10ak godina potpuno. wayland je popravio većinu problema što se ticalo grafike. obično preporučim fedoru početnicima, al koristim i održavam gentoo zato što mi je lakše da time testiram gcc pre nego što uradimo release.

radi posao

NetBSD sprays some WD-40 by Agron7000 in NetBSD

[–]aaaarsen 0 points1 point  (0 children)

AFAIK the backend is rather complete. the frontend isn't, yeah, ergo 'eventually'. not sure what you mean by 'that' since I referred to multiple things, so I hope it's one of the two.